Mistress Experimental Open Source Interface and Game

Selfbondage software and other kinky developments

Moderators: Riddle, Shannon SteelSlave

Mistress Experimental Open Source Interface and Game

Postby zappy1 » 26 Sep 2021, 22:21

http://gamefun.mygamesonline.org/instuct_play.htm

This is a javascript talking animated image mistress that gives masturbation instructions I wrote for fun. The instructions are timed randomly and has randomly created responses. The reason for javascript is that it is available for people to improve on and customize. I wrote a simple cam movement software that I would like to integrate with this and the server side javascript would make it very safe to use because it can be used offline and all code can be read. The interface can be used for all sorts of routines.

The best part of this is the randomly created responses. Never says the same thing twice, for a very, long time. I would like to add user input.

With the code open source, anyone can add their own keywords or avatar image. Just change the words. Code is accessed by view/source.

The idea of this is that people can create functions that can be accessed by the keywords. I have a daily dresser function I created that can be added to this, because this is something that people here seem to be interested in. People can add to it as they go. A function to control the on/off of a toy can be added.

Javascript does have its problems. I am am having problems with it turning the video on and off with the keywords. Javascript does not scale up very well. It also starts with a male voice. It works best in the Brave browser, the talking avatar and/or the voice does not work well in Edge or Chrome. You need to change the number for the voice for female in Edge and Chrome. In chrome it speaks female from the beginning, but the animation does not work.


PROBLEMS to be SOLVED
1. The button to start and pause works when it is just the code for videos. But when combined to the chatterbot code the buttons do not work. The goal is get the play/pause to work with the randomizer and the cam.

2. The voice starts male. Anyway to get it to start female? I tried to get it to have an opening, as in "Welcome to the Game" to cover up the problem with the wait time, but then it says nothing.

3. What is a simple way to use video from xhamster?

Customize Lines
VIDEO: videoId: '01vnvo7cMmo'
VOICE: speech.voice = voices[1]; // Female - Browsers Brave: 1 , Edge: UK 2 , US 4
AVATAR: <img id=talky src='animated_rest.gif' height=370px width=335px>
TEXT: fruit = ['faster', 'slower', 'stop', 'keep going', 'stroke it']

The Webpage: http://gamefun.mygamesonline.org/instuct_play.htm
zappy1
*
 
Posts: 24
Joined: 28 Dec 2019, 05:37

Re: Mistress Experimental Open Source Interface and Game

Postby kinbaku » 26 Sep 2021, 23:20

Nice program. It works also in Firefox 92.0.1. :D
User avatar
kinbaku
*****
 
Posts: 2242
Joined: 10 Jan 2020, 19:26
Location: Belgium

Re: Mistress Experimental Open Source Interface and Game

Postby zappy1 » 27 Sep 2021, 03:32

kinbaku wrote:Nice program. It works also in Firefox 92.0.1. :D

Thank you, but would you happen to know the reason the video play/pause buttons will not work when combined with the other code? The video code works when separate from the rest of the program. My goal is to play/pause if certain keywords come up.
zappy1
*
 
Posts: 24
Joined: 28 Dec 2019, 05:37

Re: Mistress Experimental Open Source Interface and Game

Postby kinbaku » 27 Sep 2021, 06:33

zappy1 wrote:
kinbaku wrote:Nice program. It works also in Firefox 92.0.1. :D

Thank you, but would you happen to know the reason the video play/pause buttons will not work when combined with the other code? The video code works when separate from the rest of the program. My goal is to play/pause if certain keywords come up.

I have tried your 2 links. First I pressed start and then I can manually start and stop the video with both links while the voice continues to speak. Both via pressing the play/pause on the video and via the Enable play and pause buttons.
User avatar
kinbaku
*****
 
Posts: 2242
Joined: 10 Jan 2020, 19:26
Location: Belgium

Re: Mistress Experimental Open Source Interface and Game

Postby Vladimir Lem » 27 Sep 2021, 07:42

zappy1 wrote:PROBLEMS to be SOLVED
1. The button to start and pause works when it is just the code for videos. But when combined to the chatterbot code the buttons do not work. The goal is get the play/pause to work with the randomizer and the cam.

2. The voice starts male. Anyway to get it to start female? I tried to get it to have an opening, as in "Welcome to the Game" to cover up the problem with the wait time, but then it says nothing.


1. From a quick glance: Check the exceptions shown in the dev console! You are using strict mode, that means all variables must be declared. In onYouTubeIframeAPIReady you try to assign a value to the undeclared variable "player".
Code: Select all
Uncaught ReferenceError: player is not defined
    at onYouTubeIframeAPIReady (instuct_play.htm:114)
    at www-widgetapi.js:847
    at www-widgetapi.js:847


You are also mixing let and var declarations. I would suggest sticking to either var or using let/const consistently.


2. Let the user pick the voice they want from a select with a button to test the voice with a sample phrase. The available voices don't just differ by browser, but also by OS, system language and probably other factors as well. Some voice names include the gender (e.g. "Google UK English Female"), some have "normal" names (MS "Zira", "Mark"), ... if you want to default to a female voice you would have to use reference lists for their names (for MS: https://support.microsoft.com/en-us/win ... cc64300f01 ) or in the case of google's voices (and possibly some others) search for "female" in the voice name.
Vladimir Lem
*
 
Posts: 11
Joined: 21 Jun 2011, 15:07

Re: Mistress Experimental Open Source Interface and Game

Postby zappy1 » 30 Sep 2021, 00:37

Vladimir Lem wrote:You are also mixing let and var declarations. I would suggest sticking to either var or using let/const consistently.

2. Let the user pick the voice they want from a select with a button to test the voice with a sample phrase. The available voices don't just differ by browser, but also by OS, system language and probably other factors as well. Some voice names include the gender (e.g. "Google UK English Female"), some have "normal" names (MS "Zira", "Mark"), ... if you want to default to a female voice you would have to use reference lists for their names (for MS: https://support.microsoft.com/en-us/win ... cc64300f01 ) or in the case of google's voices (and possibly some others) search for "female" in the voice name.

Thank you for your help! The video is now linked to the strings. When there is now the string "stop" it stops. I added an alert box with an introduction. A random name is now picked for the player and is used in the array for voice output.

With modifications: http://gamefun.mygamesonline.org/instuct_play.htm

The voice is very difficult to work with. Most of the google voices do not work.

I am now trying to get it integrated with a web cam. All javascript for safety, user can play off-line with all code visible. Below is a cam movement detection routine. I would like to integrate it with the chatbot so it will know if the player is following the instructions of start or stop. I would prefer to use a .js file.
http://gamefun.mygamesonline.org/webcam_detect_only.js
Last edited by zappy1 on 30 Sep 2021, 00:42, edited 1 time in total.
zappy1
*
 
Posts: 24
Joined: 28 Dec 2019, 05:37

Re: Mistress Experimental Open Source Interface and Game

Postby zappy1 » 30 Sep 2021, 00:41

kinbaku wrote:I have tried your 2 links. First I pressed start and then I can manually start and stop the video with both links while the voice continues to speak.

It is now working ok. It is linked to a string in an array. The video stop/start depending on the string.
zappy1
*
 
Posts: 24
Joined: 28 Dec 2019, 05:37

Re: Mistress Experimental Open Source Interface and Game

Postby kinbaku » 30 Sep 2021, 10:27

zappy1 wrote:With modifications: http://gamefun.mygamesonline.org/instuct_play.htm

The STOP works good by Firefox on a Linux Mint 20.2 computer. :D
User avatar
kinbaku
*****
 
Posts: 2242
Joined: 10 Jan 2020, 19:26
Location: Belgium


Return to Software

Who is online

Users browsing this forum: No registered users and 4 guests