GuideMe Scripting Engine
Moderator: 1885
- PlayfulGuy
- Explorer At Heart
- Posts: 792
- 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 Scripting Engine
So, after posting that last I went and gave more thought to changing the page definition, and started experimenting with my "SarasTease" script that I wrote for the initial release to see how it would affect things.
It actually makes some things easier, solves the problem of multi-line text and mixed formatting pretty nicely, and didn't take a whole lot to rework the script. It's a fair bit of code restructuring, but that's just work.
I'm gonna go play now and stop thinking about it for a while, but right now I'm pretty certain I will be re-working it as outlined in the previous post.
Bye for now.
It actually makes some things easier, solves the problem of multi-line text and mixed formatting pretty nicely, and didn't take a whole lot to rework the script. It's a fair bit of code restructuring, but that's just work.
I'm gonna go play now and stop thinking about it for a while, but right now I'm pretty certain I will be re-working it as outlined in the previous post.
Bye for now.
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: 792
- 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 Scripting Engine
Maybe. It wasn't all that hard to write so far. It will be interesting to see how that unfolds.philo wrote:The next version of guideme has the ability to change images and text on the page based on timers, so it will make the engine a lot easier to write.
I'm hoping the code I'm working on can serve as a good base for you. I'm not sure how converting the script to pages on the fly will make it easier to debug them. I don't get your thinking there.philo wrote: longer term I want to write a .scr parser that would load .scr files.
my current plan is to try to convert the scr lines to guideme pages on the fly.
this should make debugging scr scripts a lot easier.
Something to keep in mind: My code basically updates the page elements of a single page on the fly. Take the case of my test tease - SarasTease.scr. The entire tease really only consists of two guideme pages, some javascript and a script file. I've noticed during my testing that it is Very fast. Most page updates don't even flicker. I've had the page change right before my eyes and almost not noticed.
Sounds great!philo wrote: I am also thinking of adding an scr node to the guideme xml so scr scripts can be mixed with more complex xml pages giving the best of both worlds.
Fucking awesome! That will make me soooooo happy!philo wrote: ... the whole window as a single html page and converting all the java controls to html, that way the author can over ride everything on the screen.
I'm really looking forward to the evolution of all this.
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: 365
- Joined: Mon Dec 03, 2012 7:26 pm
- Gender: Male
- Sexual Orientation: Straight
- I am a: None of the above
Re: GuideMe Scripting Engine
I think it all sounds good! Keep comma as a parser, it is way more intuitive and easy to type than anything odd.
I honestly think that player responses as buttons is sort of an awkward thing anyway and it would be cool to have a more 'game like' text that highlights on mouse over for those who are doing the more game-like exploration/story heavy teases. I know you could do that with css/javascript probably right now but might be a touch overkill, but might be food for thought down the line when formatting the single page scripting engine.
For buttons I actually had to keep catching myself for doing the button, label, target order of things, it does seem more natural as you usually think... am making a button, it says XYZ, and its going to <target>. I like the * and ** indicators for buttons a lot too, really saves a lot of typing in the long run, and the page definitions are not too bad.
Would pages still carry over state as what was there previously as before? Using the last image with the " is a bit of a life saver as i'm finding I like having the dialog on each page be very short and having the user click through a continue button or player response as a button to progress. Have been interspersing buttonless delay pages for timing as well.
Either way the page definitions I think would be really nice. Having the buttons on the bottom makes it easier to read through what you have in order of the way things are.
Also, for what he was saying about guideme turning everything into pages, the benefit might be that you can now use the debug interface of guideme to jump to specific page numbers.
Performance wise it seems ok though there can be some delay. I was using probably large image sizes and a few times when rapidly clicking to catch up to where I was debugging it would end up with the click events queued up faster than the pages were being flipped. I haven't power clicked through a normal guide though to see if similar slow downs happened. When playing at human speeds it is perfectly fine though.
I honestly think that player responses as buttons is sort of an awkward thing anyway and it would be cool to have a more 'game like' text that highlights on mouse over for those who are doing the more game-like exploration/story heavy teases. I know you could do that with css/javascript probably right now but might be a touch overkill, but might be food for thought down the line when formatting the single page scripting engine.
For buttons I actually had to keep catching myself for doing the button, label, target order of things, it does seem more natural as you usually think... am making a button, it says XYZ, and its going to <target>. I like the * and ** indicators for buttons a lot too, really saves a lot of typing in the long run, and the page definitions are not too bad.
Would pages still carry over state as what was there previously as before? Using the last image with the " is a bit of a life saver as i'm finding I like having the dialog on each page be very short and having the user click through a continue button or player response as a button to progress. Have been interspersing buttonless delay pages for timing as well.
Either way the page definitions I think would be really nice. Having the buttons on the bottom makes it easier to read through what you have in order of the way things are.
Also, for what he was saying about guideme turning everything into pages, the benefit might be that you can now use the debug interface of guideme to jump to specific page numbers.
Performance wise it seems ok though there can be some delay. I was using probably large image sizes and a few times when rapidly clicking to catch up to where I was debugging it would end up with the click events queued up faster than the pages were being flipped. I haven't power clicked through a normal guide though to see if similar slow downs happened. When playing at human speeds it is perfectly fine though.
- PlayfulGuy
- Explorer At Heart
- Posts: 792
- 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 Scripting Engine
Just a quick note to let you know I'm still alive and still working on this. Been a busy few weeks, but I've made major progress on this. You will be thrilled with the new features. I'm working on some fine-tuning, and need to polish up the tutorial to cover all the new features, but here's a quick summary.
Text can span multiple lines by enclosing it in braces and button commands can appear anywhere within the text block.
Added Audio and AudioFolder commands for playing sounds
A button or goto target may now be a guideme page as well as a script label
Added goSub and return commands for making subroutines
Added set and unset commands for setting and clearing flags
Added ifSet and ifNotSet commands for conditional branching
Added ability to assign variables with
variable = value
Added "Include" command to include one script file into another
Added named styles for formatting text;
The first word of every line of text is checked to see if it's a known style name
In a text block each line can have a different style as in
I'm totally loving it! This is going to be great for my own use, even if no one else uses it.
Stay tuned!
Text can span multiple lines by enclosing it in braces and button commands can appear anywhere within the text block.
Code: Select all
image1.jpg {
Page text line 1
Page text line 2
button Continue
}
A button or goto target may now be a guideme page as well as a script label
Added goSub and return commands for making subroutines
Added set and unset commands for setting and clearing flags
Added ifSet and ifNotSet commands for conditional branching
Added ability to assign variables with
variable = value
Added "Include" command to include one script file into another
Added named styles for formatting text;
Code: Select all
style BigRed = "font-size:150%; color: red;"
Code: Select all
image,delay,metronome style text
Code: Select all
image, {
Style1 This text uses style Style1
Style2 This text uses style Style2
}
Stay tuned!
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: 365
- Joined: Mon Dec 03, 2012 7:26 pm
- Gender: Male
- Sexual Orientation: Straight
- I am a: None of the above
Re: GuideMe Scripting Engine
Definitely tuned in!
Was very slooowly goofing around in javascript with some other stuff inspired by the way you have the script engine running (eg staying on page submitting to itself but doing different things depending how the vars are arranged).
It is hard enough to find time to create anything in the days and even worse to find private time to work on a tease. I can really appreciate how hard everyone works to get anything done at all.
Was very slooowly goofing around in javascript with some other stuff inspired by the way you have the script engine running (eg staying on page submitting to itself but doing different things depending how the vars are arranged).
It is hard enough to find time to create anything in the days and even worse to find private time to work on a tease. I can really appreciate how hard everyone works to get anything done at all.
- PlayfulGuy
- Explorer At Heart
- Posts: 792
- 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 Scripting Engine
Another quick update - I have all the coding done and tested. Made a few changes like Delays and Metronomes no longer carry over from page to page by default - In my testing I found it was causing me more problems than it was worth. You can turn that behavior on and off with a flag though.
I've updated the tutorial and added some documentation, now I just need to finish re-testing the sample tease to make sure those last changes haven't broken something else, then package it up and it will be ready.
I'm away for the next 10 days or so, so it probably won't happen until after that.
I'll be really happy to get this finished, for one because I earn myself an orgasm when it's done, and because then I can get back to my main project which is even more awesome.
Later....
I've updated the tutorial and added some documentation, now I just need to finish re-testing the sample tease to make sure those last changes haven't broken something else, then package it up and it will be ready.
I'm away for the next 10 days or so, so it probably won't happen until after that.
I'll be really happy to get this finished, for one because I earn myself an orgasm when it's done, and because then I can get back to my main project which is even more awesome.
Later....
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: 792
- 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 Scripting Engine
At long last, here it is! The new, incredibly powerful version of the GuideMe Script Engine!
Download
This will download a zip file named ScriptTeases.zip. Unzip it to your Guides folder.
This will create a folder named "ScriptTeases", and will put several files in your guides folder.
Next open GuideMe and load the Guide "GuidemeScripts.xml". Start with the tutorial, and then have fun writing teases.
You will also find a text file named "ScriptEngine-Readme.txt" in your guides folder. There's more useful info in there.
If you have the original version of the script engine see the notes in this spoiler.
PlayfulGuy
Download
This will download a zip file named ScriptTeases.zip. Unzip it to your Guides folder.
This will create a folder named "ScriptTeases", and will put several files in your guides folder.
Next open GuideMe and load the Guide "GuidemeScripts.xml". Start with the tutorial, and then have fun writing teases.
You will also find a text file named "ScriptEngine-Readme.txt" in your guides folder. There's more useful info in there.
If you have the original version of the script engine see the notes in this spoiler.
- Spoiler: show
- Spoiler: show
PlayfulGuy
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: 365
- Joined: Mon Dec 03, 2012 7:26 pm
- Gender: Male
- Sexual Orientation: Straight
- I am a: None of the above
Re: GuideMe Scripting Engine
Sweet! Going to try to dig in tonight! I've been on and off writing some story and gathering some pic sets (that always seems to take up more time than writing ;) ), going to try to find time to plug it in. Will let you know how it goes!
-
- 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 Scripting Engine
Was able to read through all the new stuff and started converting the small bits I had over. So far so good! Really keeps the simplicity of the first version and adds a lot more features to access, as well as the nice blending of dropping into regular guideme stuff then back out again.
I haven't worked with it enough for any more detailed comments though, but looks really good so far. I hope more people have tried this out than just myself, it's a really, really easy way to write a tease, I can't say this enough.
I haven't worked with it enough for any more detailed comments though, but looks really good so far. I hope more people have tried this out than just myself, it's a really, really easy way to write a tease, I can't say this enough.
Re: GuideMe Scripting Engine
Great program,
need to experiment with it a little bit longer. But it's a simple way to create teases.
Will be videos supported in next versions?
need to experiment with it a little bit longer. But it's a simple way to create teases.
Will be videos supported in next versions?
- PlayfulGuy
- Explorer At Heart
- Posts: 792
- 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 Scripting Engine
Thanks Xaron. Glad you like it so far.Xaron wrote:Great program,
need to experiment with it a little bit longer. But it's a simple way to create teases.
Will be videos supported in next versions?
I hadn't given any thought to supporting videos, but it would not be difficult to add. Probably something like
Code: Select all
PlayVideo path-to-video
Code: Select all
Playvideo path-to-video start-time end-time
I'll add it to the list of possible enhancements.
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
- Captnfappin
- Explorer
- Posts: 50
- Joined: Thu May 01, 2014 3:29 pm
- Gender: Male
- Sexual Orientation: Straight
- I am a: Switch
- Location: Shibuya-Cho
Re: GuideMe Scripting Engine
This is awesome!
How do I make a random metronome with the slideshows? I don't know what to do to make that happen.
Like during the slideshow. The metronome randomly switches tempo between each slide.
How do I make a random metronome with the slideshows? I don't know what to do to make that happen.
Like during the slideshow. The metronome randomly switches tempo between each slide.
Re: GuideMe Scripting Engine
I have the same problem. Specifically what I want to do is start a metronome, leave it playing and change the picture or text and process user clicks and so on. The best you can do, I think, is just start the metronome at the same pace on each page and it should be roughly in step.Captnfappin wrote:How do I make a random metronome with the slideshows? I don't know what to do to make that happen.
Like during the slideshow. The metronome randomly switches tempo between each slide.
Similarly I would also like to start an audio file playing and have the tease progress while that is playing.
I think this sort of thing is just a limitation of GuideMe which is inherently "page based"
It is indeed.Captnfappin wrote:This is awesome!
- PlayfulGuy
- Explorer At Heart
- Posts: 792
- 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 Scripting Engine
Sorry I haven't been by in a while. For the metronome (or the delay) you can specify a random one likeCaptnfappin wrote:This is awesome!
How do I make a random metronome with the slideshows? I don't know what to do to make that happen.
Like during the slideshow. The metronome randomly switches tempo between each slide.
Code: Select all
imagejpg,,30..60 Page text
To get a better result you can use RandomFrom or ChooseFrom.
You use ChooseFrom like this:
Code: Select all
image.jpg,,<Choosefrom 30,60,90> Page text
Code: Select all
<Choosefrom 30,60,90,30,60,120,30>
You can also use <Randomfrom 30,120,30> which will give you a random number from 30 to 120 in steps of 30, which results in one of 30, 60, 90 or 120.
<Randomfrom 30,120,15> will give you a random number from 30 to 120 in steps of 15, resulting in values like 30, 45, 60, 75 etc...
This you can do by setting the flag KeepMetronomes (requires the latest script engine version). With this flag set the metronome value is reused for every page until it's changed or turned off.figroll wrote: I have the same problem. Specifically what I want to do is start a metronome, leave it playing and change the picture or text and process user clicks and so on. The best you can do, I think, is just start the metronome at the same pace on each page and it should be roughly in step.
Code: Select all
set KeepMetronomes
Metronome 60
image01.jpg Page1 text
image02.jpg Page2 text
image03.jpg Page3 text
Metronome 30
image04.jpg Page4 text
image05.jpg Page5 text
Code: Select all
image01.jpg,10,60 Page1 text
Unfortunately you are correct on this one. The new version of GuideMe, which is in testing right now is supposed to allow you to set timers to make the page text change three or four times while keeping the same image, and I believe audio as well, but we won't know for sure until it's released.figroll wrote: Similarly I would also like to start an audio file playing and have the tease progress while that is playing.
I think this sort of thing is just a limitation of GuideMe which is inherently "page based"
I'm glad you're liking the engine so far.
Have fun!
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
Re: GuideMe Scripting Engine
Can you give me some information on how to use variables? Can I use a variable to set the delay or metronome? How do I change a variable? Like if I wanted to add 20 to my variable. Thanks I'm really enjoying the simplicity of writing a tease using this!
Who is online
Users browsing this forum: Ahrefs [Bot] and 38 guests