GuideMe (TeaseMe v2.0) - Current Build 0.4.4
Moderator: 1885
-
- Explorer At Heart
- Posts: 831
- Joined: Sun Jan 08, 2012 3:10 pm
- Gender: Male
- Sexual Orientation: Straight
- Location: UK
Re: GuideMe (TeaseMe v2.0): BETA Thread
@desertfox
Some interesting suggestions.
Originally my idea was to add java script for the more complex stuff and leave the base TeaseMe functionality the same.
From the feed back in the thread I am revisiting that as people are struggling with java script more than I expected (I spend too little time with people who don't do coding for a living )
I am putting more time into adding more into the non java script stuff.
1) I will add more into the new <timer> node, currently it only allows a java script funtion to be run
I will add being able to set the image and the text as well which will give you pretty much the same as sequence
2) I will have a think on the best way to add the loop and random order sequence
3) It is very complex to parse free text, I wouldn't have the time to write something like that, I may look to see if there is an open source project that can be adapted and integrated but for the moment I think it would be too much effort.
Some interesting suggestions.
Originally my idea was to add java script for the more complex stuff and leave the base TeaseMe functionality the same.
From the feed back in the thread I am revisiting that as people are struggling with java script more than I expected (I spend too little time with people who don't do coding for a living )
I am putting more time into adding more into the non java script stuff.
1) I will add more into the new <timer> node, currently it only allows a java script funtion to be run
I will add being able to set the image and the text as well which will give you pretty much the same as sequence
2) I will have a think on the best way to add the loop and random order sequence
3) It is very complex to parse free text, I wouldn't have the time to write something like that, I may look to see if there is an open source project that can be adapted and integrated but for the moment I think it would be too much effort.
GuideMe
viewtopic.php?f=26&t=12944
viewtopic.php?f=26&t=12944
-
- Explorer At Heart
- Posts: 365
- Joined: Mon Dec 03, 2012 7:26 pm
- Gender: Male
- Sexual Orientation: Straight
- I am a: None of the above
Re: GuideMe (TeaseMe v2.0): BETA Thread
Yeah I hear that! I'd probably blow my head off writing that parser :)
And if I didn't say so already, I'm super impressed with everything done already in the program! I code in my day life and I can never seem to find motivation or time to continue doing so after I get home.
I think the idea of sacrificing some creative freedom with the tool, eg do anything html/js for some structured sequences at times would be really useful. Basically the thought being you lose freedom due to the fixed structure, but save a lot of time writing it because the nature of the fixed structure lets the code fill in more information for you.
And if I didn't say so already, I'm super impressed with everything done already in the program! I code in my day life and I can never seem to find motivation or time to continue doing so after I get home.
I think the idea of sacrificing some creative freedom with the tool, eg do anything html/js for some structured sequences at times would be really useful. Basically the thought being you lose freedom due to the fixed structure, but save a lot of time writing it because the nature of the fixed structure lets the code fill in more information for you.
-
- Explorer At Heart
- Posts: 201
- Joined: Sat Mar 10, 2012 9:55 am
Re: GuideMe (TeaseMe v2.0): BETA Thread
philo wrote:Guideme is not specifc, it is the libraries it uses that are specific to mac.Sisyphuster wrote: Also, is the 0.1.3 build of GuideMe available for Mac yet?
overwriting the 0.1.2 guideme.jar with the one from 0.1.3 should work.
Hey Philo, I tried replacing the guideme.jar file with the one from 0.1.3 as you suggested, but when I load the game, it still says 09.1.2 at the top of the window, and I'm getting a lot of the same errors. Is there a full 0.1.3 mac install anywhere?
Thanks!
- PlayfulGuy
- Explorer At Heart
- Posts: 797
- Joined: Sat Jul 07, 2012 10:08 pm
- Gender: Male
- Sexual Orientation: Bisexual/Bi-Curious
- I am a: Switch
- Dom/me(s): No domme
- Sub/Slave(s): No sub
- Location: British Columbia, Canada
Re: GuideMe (TeaseMe v2.0): BETA Thread
Works like a charm!philo wrote:Just had a look at this and there is a way to do it alreadyPlayfulGuy wrote:@Philo,
[*]There should be a way to delete scriptVars that are no longer needed. I can find no way to do it now
It is a java hashmap so any of the functions should work
http://docs.oracle.com/javase/7/docs/ap ... shMap.html
This will delete all variables
scriptVars.clear();
This will delete the variable vehicle2
scriptVars.remove("vehicle2");
Thanks.
I'd rather be stroking!
New tease downloader for GuideMe with EOS support.
Downloads of teases I've converted to GuideMe
New tease downloader for GuideMe with EOS support.
Downloads of teases I've converted to GuideMe
- PlayfulGuy
- Explorer At Heart
- Posts: 797
- Joined: Sat Jul 07, 2012 10:08 pm
- Gender: Male
- Sexual Orientation: Bisexual/Bi-Curious
- I am a: Switch
- Dom/me(s): No domme
- Sub/Slave(s): No sub
- Location: British Columbia, Canada
Re: GuideMe (TeaseMe v2.0): BETA Thread
I agree. Some very interesting suggestions. I do find it cumbersome trying to handle the different branches of a dialog in the current format. This method you propose looks intriguing.philo wrote:@desertfox
Some interesting suggestions.
philo wrote: 2) I will have a think on the best way to add the loop and random order sequence
Check out nlp_compromise. I got looking into natural language parsing for a virtual dom/me idea I had for guideme. I've actually been working on it since January, and really wanted the main interface to be like a chat interface (an idea that 1885 has also been working on).philo wrote:
3) It is very complex to parse free text, I wouldn't have the time to write something like that, I may look to see if there is an open source project that can be adapted and integrated but for the moment I think it would be too much effort.
Anyway, also take a look at the nlp_compromise home page, particularly the Justification section. It turns out that relatively few words make up the bulk of written text. In specific contexts, like teases, it's fairly easy to make educated guesses about the words people will be using most. After spending a bunch of time trying to figure out how it all works, I ultimately decided it was easier to start writing my own parser and see how it went. So far I'm liking how it's going, but I'm in the very early stages. Maybe I'll post a demo when I get it to a stage I'm happy with.
On another note, It would be super cool if the Guideme window were really a single browser window with the left pane and right pane being html <div>'s or something like that so that the entire window is available, and the left and right sides could talk to each other. A little more food for thought.
Cheers!
PG
I'd rather be stroking!
New tease downloader for GuideMe with EOS support.
Downloads of teases I've converted to GuideMe
New tease downloader for GuideMe with EOS support.
Downloads of teases I've converted to GuideMe
-
- Explorer
- Posts: 93
- Joined: Sun Sep 26, 2010 3:28 pm
- Gender: Male
- Sexual Orientation: Straight
Re: GuideMe (TeaseMe v2.0): BETA Thread
Is there a way to use a delay to trigger a JS script WITHOUT then going on to refresh the page?
Because at the moment, if you have a delay, whether it's defined via XML or via JS, you HAVE to specify a target page. So Guideme forces you to branch to whatever page you specify. You can put in the current page, but once again that causes the current page to be reloaded.
I want to do something like running a brief JS routine every 5 or 10 seconds without always having to reload the page so I can do some semi 'realtime' processing.
Because at the moment, if you have a delay, whether it's defined via XML or via JS, you HAVE to specify a target page. So Guideme forces you to branch to whatever page you specify. You can put in the current page, but once again that causes the current page to be reloaded.
I want to do something like running a brief JS routine every 5 or 10 seconds without always having to reload the page so I can do some semi 'realtime' processing.
-
- Explorer At Heart
- Posts: 831
- Joined: Sun Jan 08, 2012 3:10 pm
- Gender: Male
- Sexual Orientation: Straight
- Location: UK
Re: GuideMe (TeaseMe v2.0): BETA Thread
You can use a timer node which is new in 0.1.3.meson1 wrote:Is there a way to use a delay to trigger a JS script WITHOUT then going on to refresh the page?
Because at the moment, if you have a delay, whether it's defined via XML or via JS, you HAVE to specify a target page. So Guideme forces you to branch to whatever page you specify. You can put in the current page, but once again that causes the current page to be reloaded.
I want to do something like running a brief JS routine every 5 or 10 seconds without always having to reload the page so I can do some semi 'realtime' processing.
if you go back a page or two in this thread there is some example code.
GuideMe
viewtopic.php?f=26&t=12944
viewtopic.php?f=26&t=12944
-
- Explorer
- Posts: 93
- Joined: Sun Sep 26, 2010 3:28 pm
- Gender: Male
- Sexual Orientation: Straight
Re: GuideMe (TeaseMe v2.0): BETA Thread
Blimey. Fast response. I'll check that out. Thanks.philo wrote:You can use a timer node which is new in 0.1.3.meson1 wrote:Is there a way to use a delay to trigger a JS script WITHOUT then going on to refresh the page?
Because at the moment, if you have a delay, whether it's defined via XML or via JS, you HAVE to specify a target page. So Guideme forces you to branch to whatever page you specify. You can put in the current page, but once again that causes the current page to be reloaded.
I want to do something like running a brief JS routine every 5 or 10 seconds without always having to reload the page so I can do some semi 'realtime' processing.
if you go back a page or two in this thread there is some example code.
I suppose there's a second part to the question. Can JS affect changes to the page content on the fly without reloading the page? For instance, if I change the text area, or add a button or something, will it be rendered without reloading the whole page?
-
- Explorer At Heart
- Posts: 831
- Joined: Sun Jan 08, 2012 3:10 pm
- Gender: Male
- Sexual Orientation: Straight
- Location: UK
Re: GuideMe (TeaseMe v2.0): BETA Thread
you can definetly change text and probably images. I don't think buttons work but I would have to check.meson1 wrote:Blimey. Fast response. I'll check that out. Thanks.philo wrote:You can use a timer node which is new in 0.1.3.meson1 wrote:Is there a way to use a delay to trigger a JS script WITHOUT then going on to refresh the page?
Because at the moment, if you have a delay, whether it's defined via XML or via JS, you HAVE to specify a target page. So Guideme forces you to branch to whatever page you specify. You can put in the current page, but once again that causes the current page to be reloaded.
I want to do something like running a brief JS routine every 5 or 10 seconds without always having to reload the page so I can do some semi 'realtime' processing.
if you go back a page or two in this thread there is some example code.
I suppose there's a second part to the question. Can JS affect changes to the page content on the fly without reloading the page? For instance, if I change the text area, or add a button or something, will it be rendered without reloading the whole page?
I have been working on the next version which will allow a lot more.
if you look at the closed issues on github any thing marked 0.1.4 is in the next version.
GuideMe
viewtopic.php?f=26&t=12944
viewtopic.php?f=26&t=12944
-
- Explorer
- Posts: 93
- Joined: Sun Sep 26, 2010 3:28 pm
- Gender: Male
- Sexual Orientation: Straight
Re: GuideMe (TeaseMe v2.0): BETA Thread
Aye. I've been keeping an eye on that.philo wrote:I have been working on the next version which will allow a lot more.
if you look at the closed issues on github any thing marked 0.1.4 is in the next version.
Good work. Looking forward to it.
- PlayfulGuy
- Explorer At Heart
- Posts: 797
- Joined: Sat Jul 07, 2012 10:08 pm
- Gender: Male
- Sexual Orientation: Bisexual/Bi-Curious
- I am a: Switch
- Dom/me(s): No domme
- Sub/Slave(s): No sub
- Location: British Columbia, Canada
overRide.setMetronome
@Philo (or whoever)
Can you clarify how overRide.setMetronome is supposed to work? I'm trying to establish a page that plays a simple random metronome of 30, 60, 90... beats per minute.
overRide.setMetronome(60, 0, 0, ""); gives me silence, as expected I think.
I expected overRide.setMetronome(60, 1, 0, "") to give me 60 beats per minute, but I got 15 (one every 4 seconds).
overRide.setMetronome(60, 2, 0, "") gave me 30 beats per minute
overRide.setMetronome(60, 4, 0, "") finally gave me the 60 per minute I was after.
I don't get it. I really think the second argument should just be eliminated, and have the first specify a beats per minute. This current setup is confusing at best.
PG
Can you clarify how overRide.setMetronome is supposed to work? I'm trying to establish a page that plays a simple random metronome of 30, 60, 90... beats per minute.
overRide.setMetronome(60, 0, 0, ""); gives me silence, as expected I think.
I expected overRide.setMetronome(60, 1, 0, "") to give me 60 beats per minute, but I got 15 (one every 4 seconds).
overRide.setMetronome(60, 2, 0, "") gave me 30 beats per minute
overRide.setMetronome(60, 4, 0, "") finally gave me the 60 per minute I was after.
I don't get it. I really think the second argument should just be eliminated, and have the first specify a beats per minute. This current setup is confusing at best.
PG
I'd rather be stroking!
New tease downloader for GuideMe with EOS support.
Downloads of teases I've converted to GuideMe
New tease downloader for GuideMe with EOS support.
Downloads of teases I've converted to GuideMe
-
- Explorer At Heart
- Posts: 831
- Joined: Sun Jan 08, 2012 3:10 pm
- Gender: Male
- Sexual Orientation: Straight
- Location: UK
Re: overRide.setMetronome
It uses the standard Java midi interface and I pretty much implemented it without thinking too much about it.PlayfulGuy wrote:@Philo (or whoever)
Can you clarify how overRide.setMetronome is supposed to work? I'm trying to establish a page that plays a simple random metronome of 30, 60, 90... beats per minute.
overRide.setMetronome(60, 0, 0, ""); gives me silence, as expected I think.
I expected overRide.setMetronome(60, 1, 0, "") to give me 60 beats per minute, but I got 15 (one every 4 seconds).
overRide.setMetronome(60, 2, 0, "") gave me 30 beats per minute
overRide.setMetronome(60, 4, 0, "") finally gave me the 60 per minute I was after.
I don't get it. I really think the second argument should just be eliminated, and have the first specify a beats per minute. This current setup is confusing at best.
PG
for overRide where you are just implementing a regular beat you need (BPM,4,0,"")
the 4 is the beats per bar with the default being 4.
not intuitive so I may change it
GuideMe
viewtopic.php?f=26&t=12944
viewtopic.php?f=26&t=12944
- PlayfulGuy
- Explorer At Heart
- Posts: 797
- Joined: Sat Jul 07, 2012 10:08 pm
- Gender: Male
- Sexual Orientation: Bisexual/Bi-Curious
- I am a: Switch
- Dom/me(s): No domme
- Sub/Slave(s): No sub
- Location: British Columbia, Canada
Re: GuideMe (TeaseMe v2.0): BETA Thread
Philo, is there a way to read the contents of a local file from javascript?
Ideally I just want to be able to read the lines of the file into an array, one line per array element.
Or perhaps a way to get the text content of an XML node but retain the line breaks. I can get the text from a node but it always collapses the text into a single (one line) string.
I've looked over some of the magical things Nezhul was doing earlier in the thread but they're not exactly what I'm looking for.
PG
Ideally I just want to be able to read the lines of the file into an array, one line per array element.
Or perhaps a way to get the text content of an XML node but retain the line breaks. I can get the text from a node but it always collapses the text into a single (one line) string.
I've looked over some of the magical things Nezhul was doing earlier in the thread but they're not exactly what I'm looking for.
PG
I'd rather be stroking!
New tease downloader for GuideMe with EOS support.
Downloads of teases I've converted to GuideMe
New tease downloader for GuideMe with EOS support.
Downloads of teases I've converted to GuideMe
-
- Explorer At Heart
- Posts: 831
- Joined: Sun Jan 08, 2012 3:10 pm
- Gender: Male
- Sexual Orientation: Straight
- Location: UK
Re: GuideMe (TeaseMe v2.0): BETA Thread
There is an example of accessing an xml file on the wiki.PlayfulGuy wrote:Philo, is there a way to read the contents of a local file from javascript?
Ideally I just want to be able to read the lines of the file into an array, one line per array element.
Or perhaps a way to get the text content of an XML node but retain the line breaks. I can get the text from a node but it always collapses the text into a single (one line) string.
I've looked over some of the magical things Nezhul was doing earlier in the thread but they're not exactly what I'm looking for.
PG
I think it was added for d3vi0n's tease.
I can't remember if there is anything for loading a flat file into an array, I will check when I get time.
It would be easy to add if it does not already exist.
*Edit
jsReadFile reads the contents of a file to a string which you could then split into an array in javascript.
something like this should give you an array in the variable lines
Code: Select all
var text = comonFunctions.jsReadFile("file.txt"); var lines = text.match(/^.*([\n\r]+|$)/gm);
Code: Select all
var modelsxml; --Read file into a stringmodelsxml = comonFunctions.jsReadFile("models.xml"); --Convert the string to an xml objectvar modelsxmlobj = new XML(modelsxml); var modelobj; --loop round the top level nodes to process the contentsfor (var i = 0; i < modelsxmlobj.model.length(); i++) { modelobj = modelsxmlobj.model[i]; jscriptLog(modelobj.name); jscriptLog(modelobj.category); jscriptLog(modelobj.haircolor); }
I am also adding a new function jsReadFileArray that will return a string array with each line in a separate element.
Code: Select all
var lines = comonFunctions.jsReadFileArray("file.txt");
GuideMe
viewtopic.php?f=26&t=12944
viewtopic.php?f=26&t=12944
- PlayfulGuy
- Explorer At Heart
- Posts: 797
- Joined: Sat Jul 07, 2012 10:08 pm
- Gender: Male
- Sexual Orientation: Bisexual/Bi-Curious
- I am a: Switch
- Dom/me(s): No domme
- Sub/Slave(s): No sub
- Location: British Columbia, Canada
Re: GuideMe (TeaseMe v2.0): BETA Thread
Thanks Philo,
I'll look at those and see where it goes. I've been fiddling around today with some code in a browser but I'm not sure how it will work within Guideme.
I had seen that XML sample from the wiki ages ago and forgotten about. That may be close to what I need.
*Edit* Well that didn't work. I copied the code from the wiki and tried it out. The jsreadfile line does read the XML file and I can dump it to the log so I know it's working, but the next line dies.
My entire script is
On the last line I get the error in the spoiler below.
PG
I'll look at those and see where it goes. I've been fiddling around today with some code in a browser but I'm not sure how it will work within Guideme.
I had seen that XML sample from the wiki ages ago and forgotten about. That may be close to what I need.
*Edit* Well that didn't work. I copied the code from the wiki and tried it out. The jsreadfile line does read the XML file and I can dump it to the log so I know it's working, but the next line dies.
My entire script is
Code: Select all
modelsxml = comonFunctions.jsReadFile("models.xml"); jscriptLog("modelsxml=" + modelsxml); var modelsxmlobj = new XML(modelsxml);
- Spoiler: show
PG
philo wrote:There is an example of accessing an xml file on the wiki.PlayfulGuy wrote:Philo, is there a way to read the contents of a local file from javascript?
Ideally I just want to be able to read the lines of the file into an array, one line per array element.
Or perhaps a way to get the text content of an XML node but retain the line breaks. I can get the text from a node but it always collapses the text into a single (one line) string.
I've looked over some of the magical things Nezhul was doing earlier in the thread but they're not exactly what I'm looking for.
PG
I think it was added for d3vi0n's tease.
I can't remember if there is anything for loading a flat file into an array, I will check when I get time.
It would be easy to add if it does not already exist.
*Edit
jsReadFile reads the contents of a file to a string which you could then split into an array in javascript.
something like this should give you an array in the variable lines
the example on the wiki then converts that to an xml structure for an xml fileCode: Select all
var text = comonFunctions.jsReadFile("file.txt"); var lines = text.match(/^.*([ ]+|$)/gm);
Code: Select all
var modelsxml; --Read file into a stringmodelsxml = comonFunctions.jsReadFile("models.xml"); --Convert the string to an xml objectvar modelsxmlobj = new XML(modelsxml); var modelobj; --loop round the top level nodes to process the contentsfor (var i = 0; i < modelsxmlobj.model.length(); i++) { modelobj = modelsxmlobj.model[i]; jscriptLog(modelobj.name); jscriptLog(modelobj.category); jscriptLog(modelobj.haircolor); }
I am also adding a new function jsReadFileArray that will return a string array with each line in a separate element.
Code: Select all
var lines = comonFunctions.jsReadFileArray("file.txt");
I'd rather be stroking!
New tease downloader for GuideMe with EOS support.
Downloads of teases I've converted to GuideMe
New tease downloader for GuideMe with EOS support.
Downloads of teases I've converted to GuideMe
Who is online
Users browsing this forum: Google [Bot], markus, subm13 and 12 guests