GuideMe (TeaseMe v2.0) - Current Build 0.4.4

Webteases are great, but what if you're in the mood for a slightly more immersive experience? Chat about Tease AI and other offline tease software.

Moderator: 1885

philo
Explorer At Heart
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

Post by philo »

altce wrote:Most USB single microproxxessor boards do have a USB port that (once plugged in) emulates a serial port (supported by windows, or a driver provided with the board) , so a setting is needed to adapt the portnumber (may be as high as 15) , a setting for the baud rate and a word/parity combination (8N1 is common)
The board i talked about just accepts single line ascii commands followed by CRLF.
The send data part is not that difficult most of the time, but reading data may be more tricky.
I have some experience with VB6 in this, but JAVA is unknown to me.
I will be happy to give feedback if you want to give it a try, and to compare the code to VB6 examples if that is relevant.
Thanks...
If you have some working VB6 code I should be able to knock something up in Java that does the same.
I have programmed in at least 15 different languages, I have lost count :lol: .
Have done a fair amount in VB 4, 6 and .net (I am even old enough to have programmed in microsoft basic in dos).

If you want to PM or email me the code I will put something together to try, if we can get it working I will add it to guide me.
Baron Hardpenis von Steele
Explorer
Explorer
Posts: 21
Joined: Thu Nov 28, 2013 6:21 pm
Gender: Male
Sexual Orientation: Straight
I am a: None of the above

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post by Baron Hardpenis von Steele »

philo wrote:hot keys are a good idea, how would you see them working?
I.e. an & before the letter to under line it like windows menus, or specified as an attribute on the button
Attributes might be more flexible (if you wanted ampersands in button text), but either would work.
philo wrote:For the latter how would the user know a hotkey existed?
Maybe: (X) Edge ?

Edit: never mind, just noticed the update :thumbsup:

My teases
Cumquest: the Quest for Cum! - Freely explore a fantastic world full of women allergic to clothing who have nothing better to do but make you stroke and edge and send you on menial errands!
Gotta Edge 'Em All! - An orgasm delaying slideshow. Highly configurable to suit your style.
meson1
Explorer
Explorer
Posts: 93
Joined: Sun Sep 26, 2010 3:28 pm
Gender: Male
Sexual Orientation: Straight

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post by meson1 »

Hi philo,

I'm having trouble making the classes defined in CSS work. I'm using version 0.0.6.

As you see from the code below, I define a paragraph class called speech for which text should be pink. And I've used it in the text of a page. However, when the guide is run, the text stays resolutely white.

Code: Select all

<CSS>    html { overflow-y: auto; }    body { color: white; background-color: black; font-family: Tahoma; font-size: 16px }    p.speech { color:lightpink; background-color: black; }</CSS><Pages>   <Page id="start">      <Text>        <p class="speech">Hey there!</p>      </Text>  ... etc
Any idea what I'm doing wrong, please?
philo
Explorer At Heart
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

Post by philo »

meson1 wrote:Hi philo,

I'm having trouble making the classes defined in CSS work. I'm using version 0.0.6.
Try it all on one line.
It is currently coded to grab the first chunk of text, if it is on multiple lines it does not work.
Have corrected it for the next release.

Code: Select all

<CSS>html { overflow-y: auto; } body { color: white; background-color: black; font-family: Tahoma; font-size: 16px } p.speech { color: lightpink; background-color: black; }</CSS><Pages>   <Page id="start">      <Text>        <p class="speech">Hey there!</p>      </Text>  ... etc
meson1
Explorer
Explorer
Posts: 93
Joined: Sun Sep 26, 2010 3:28 pm
Gender: Male
Sexual Orientation: Straight

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post by meson1 »

philo wrote:
meson1 wrote:Hi philo,

I'm having trouble making the classes defined in CSS work. I'm using version 0.0.6.
Try it all on one line.
It is currently coded to grab the first chunk of text, if it is on multiple lines it does not work.
Have corrected it for the next release.

Code: Select all

<CSS>html { overflow-y: auto; } body { color: white; background-color: black; font-family: Tahoma; font-size: 16px } p.speech { color: lightpink; background-color: black; }</CSS><Pages>   <Page id="start">      <Text>        <p class="speech">Hey there!</p>      </Text>  ... etc
That worked! I look forward to version 0.0.7 then. :-)
meson1
Explorer
Explorer
Posts: 93
Joined: Sun Sep 26, 2010 3:28 pm
Gender: Male
Sexual Orientation: Straight

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post by meson1 »

Philo,

A new issue. I'm using javascript to control a slideshow. However, the text now refuses to display in the right hand pane; it's just completely blank. I'm not touching the text pane in the js at all.

Pages before this one display their text fine. But pages afterward (i.e. ordinary pages with no js) also refuse to display their text.

Here's my code:

Code: Select all

    <Page id="bj01page01">      <javascript>        <![CDATA[          function pageLoad() {            // Initialise slideshow for task            scriptVars.put("intDelayRemaining", "300");            scriptVars.put("intDelay", "30");            scriptVars.put("strImages", "bj01-1.jpg,bj01-2.jpg,bj01-3.jpg,bj01-4.jpg,bj01-5.jpg,bj01-6.jpg,bj01-7.jpg,bj01-8.jpg,bj01-9.jpg,bj01-10.jpg");            scriptVars.put("strThisPage", "bj01page01a");            scriptVars.put("strNextPage", "bj01page02");            }        ]]>      </javascript>      <Delay target="bj01page01a" seconds="0" style="hidden" />    </Page>    <Page id="bj01page01a">      <javascript>        <![CDATA[          function pageLoad() {            // Display successive picture on each page load            var intDelayRemaining = parseInt(scriptVars.get("intDelayRemaining"));            var intDelay = parseInt(scriptVars.get("intDelay"));            var strImages = scriptVars.get("strImages");            var strThisPage = scriptVars.get("strThisPage");            var strNextPage = scriptVars.get("strNextPage");                        var arrImages = strImages.split(",");            var strImage = arrImages[0];            var arrRest = arrImages.slice(1);            overRide.image = strImage;            arrImages = arrRest.concat(strImage)            strImages = arrImages.join();            scriptVars.put("strImages", strImages);             if (intDelayRemaining <= intDelay)              { overRide.setDelay(strNextPage, intDelayRemaining, "", "normal", "", "", ""); }            else              { overRide.setDelay(strThisPage, intDelay, intDelayRemaining, "normal", "", "", ""); }            intDelayRemaining = intDelayRemaining - intDelay;            scriptVars.put("intDelayRemaining", intDelayRemaining);            }        ]]>      </javascript>      <Text>        <p>She clamps her mouth around your cock and begins sucking slowly.</p>        <p></p>        <p class="instruct">Stroke once every 4 seconds.</p>      </Text>      <Button target="bj01page03">Edging</Button>    </Page> 
Can you help?
philo
Explorer At Heart
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

Post by philo »

meson1 wrote:Philo,

A new issue. I'm using javascript to control a slideshow. However, the text now refuses to display in the right hand pane; it's just completely blank. I'm not touching the text pane in the js at all.

Pages before this one display their text fine. But pages afterward (i.e. ordinary pages with no js) also refuse to display their text.

Can you help?
scriptVars.put("intDelayRemaining", intDelayRemaining);
needs to be
scriptVars.put("intDelayRemaining", intDelayRemaining.toString());

At the moment all scriptVars need to be stored as strings, intDelayRemaining was a double.
This was causing an error which was stopping the text being displayed.

I have added some extra error handling around the code, this would mean <span>intDelayRemaining</span> would still not work, but the rest of the text will display (in your case it would not be an issue as you are not displaying the variable anyway)
meson1
Explorer
Explorer
Posts: 93
Joined: Sun Sep 26, 2010 3:28 pm
Gender: Male
Sexual Orientation: Straight

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post by meson1 »

philo wrote:scriptVars.put("intDelayRemaining", intDelayRemaining);
needs to be
scriptVars.put("intDelayRemaining", intDelayRemaining.toString());

At the moment all scriptVars need to be stored as strings, intDelayRemaining was a double.
This was causing an error which was stopping the text being displayed.

I have added some extra error handling around the code, this would mean <span>intDelayRemaining</span> would still not work, but the rest of the text will display (in your case it would not be an issue as you are not displaying the variable anyway)
Wow. I'd never had guessed it'd be that. Anyway, the toString() did the trick. It's now working perfectly. Huge thanks.

Good to find all these little niggles and quirks.
User avatar
kong
Explorer At Heart
Explorer At Heart
Posts: 234
Joined: Sun Mar 04, 2012 6:24 pm

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post by kong »

1 Playing the skrimish It lagged much in the end.
2 Lv 1 21/10 xp, I couldn't advance to lv 2?
Baron Hardpenis von Steele
Explorer
Explorer
Posts: 21
Joined: Thu Nov 28, 2013 6:21 pm
Gender: Male
Sexual Orientation: Straight
I am a: None of the above

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post by Baron Hardpenis von Steele »

I spent some time this weekend working on a tease. Here are my impressions:
  • Was there a v0.0.5? I downloaded v0.0.4 from d3vi0n's first post and copied the v0.0.6 changes on top. I wonder if that's why I'm having problems.
  • I'd love a way to quickly reload and restart a tease. What does "restart" do? I'm not positive, but I think there were a few cases where restarting didn't completely clear all the session data, so I've started quitting and restarting GuideMe every time I change the .xml.
  • I tried to use the 'selected' attribute on an <option> form element and it broke.
  • Is there a way to view scriptVars when debugging? This would be so helpful.
  • What does debug mode do?
  • What can you store in scriptVars? Just strings? In my tease, I need some arrays so I created functions like this:

    Code: Select all

            function addToColl(collName, newMember) {            var count = parseInt(scriptVars.get("coll_" + collName + "_count"));            if (!(count)) { count = 0; }            count += 1;            scriptVars.put("coll_" + collName + "_" + count, newMember);            scriptVars.put("coll_" + collName + "_count", count.toString());
    Is there an easier way?
  • On that same note, it'd be nice to have a place to put javascript code to be included in every page.
  • It's been slow going, mostly because there is no syntax checking for the javascript. This, I think, is going to be a major hindrance for authors. If a page doesn't load, then I have to meticulously read the code for that page and make guesses at what the problem is. Is there any way to see javascript errors?
  • What functions are available in overRide?

My teases
Cumquest: the Quest for Cum! - Freely explore a fantastic world full of women allergic to clothing who have nothing better to do but make you stroke and edge and send you on menial errands!
Gotta Edge 'Em All! - An orgasm delaying slideshow. Highly configurable to suit your style.
User avatar
computergeek
Explorer At Heart
Explorer At Heart
Posts: 136
Joined: Sat Jul 14, 2012 11:59 am
Gender: Male
Sexual Orientation: Straight
I am a: Master
Contact:

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post by computergeek »

New dream request should upgrades come around, a global function header. Being able to write a javascript function in one single location, then call it from the pages. I know I am dreaming, but thinking something like:

Code: Select all

      <Global Javascript>            <javascript>                <![CDATA[                        function test1() {                            var test001 = "Test 1";                            scriptVars.put("test001", ""+test001);                        }                ]]>                 </javascript>     </Global Javascript>     <Pages>         <Page id="start">            <Text><span style="color:#FFFFFF">            <p>Test</p>            </span></Text>            <Image id="*.jpg" />            <Button target="test001">Test 001</Button>        </Page>         <Page id="test001">            <Text><span style="color:#FFFFFF"><p>            <span>test001</span>            </p></span></Text>            <Image id="*.jpg" />            <Button target="start">Back</Button>            <javascript>                <![CDATA[                    function pageLoad() {                        test1();                    }                ]]>                 </javascript>        </Page> 
User avatar
computergeek
Explorer At Heart
Explorer At Heart
Posts: 136
Joined: Sat Jul 14, 2012 11:59 am
Gender: Male
Sexual Orientation: Straight
I am a: Master
Contact:

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post by computergeek »

philo wrote:
Include Files
New Include node.
The file needs to be in the media directory
Anything inside the top level node will be inserted where the include node is
So to add pages do the following

Code: Select all

  <Pages>    <Include file="SWTPortTest1.xml" /> SWTPortTest1.xml    <?xml version="1.0"?><Ignored>    <Page id="start">      .......    </Page></Ignored>
YAY! THANK YOU!
philo
Explorer At Heart
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

Post by philo »

  • Was there a v0.0.5? I downloaded v0.0.4 from d3vi0n's first post and copied the v0.0.6 changes on top. I wonder if that's why I'm having problems.
    6 just fixed the memory leak (5 was never released), all the code is in a single .jar file so it does not need every patch applied. There were some additional files for user preferences in 6
  • I'd love a way to quickly reload and restart a tease. What does "restart" do? I'm not positive, but I think there were a few cases where restarting didn't completely clear all the session data, so I've started quitting and restarting GuideMe every time I change the .xml.
    File load will reload the xml (and start at the page you were last on). Restart resets all the variables (apart from any guide preferences which would need to be manually reset)
  • I tried to use the 'selected' attribute on an <option> form element and it broke.
    will have a look
  • Is there a way to view scriptVars when debugging? This would be so helpful.
  • What does debug mode do?
    Turning on debug mode will display a delay button if there is a delay, it will also display the current page name rather than autor / tease title.
    there is also extensive logging turned on.
    there are two log files guideme.log which has logging on what the internals of guideme is doing.
    it will show what pages were visited and in which order.what random pictures it found and which one was chosen.
    what flags were set etc.
    javascript.log shows what went into the script and what came out, you can also add log statements in your java script to display the values in a variable or within conditional code to show whether code within an if statement was triggered
    it will also log errors generated when the java script is wrong
  • What can you store in scriptVars? Just strings? In my tease, I need some arrays so I created functions like this:

    Code: Select all

            function addToColl(collName, newMember) {            var count = parseInt(scriptVars.get("coll_" + collName + "_count"));            if (!(count)) { count = 0; }            count += 1;            scriptVars.put("coll_" + collName + "_" + count, newMember);            scriptVars.put("coll_" + collName + "_count", count.toString());
    Is there an easier way?
    I think I will revisit scriptvars and make it objects rather than strings. My initial thoughts was to keep it simple, anything can be stored in a string. At the moment I would use split and join to convert from an array to a string and back.
  • On that same note, it'd be nice to have a place to put javascript code to be included in every page.
    Good idea will add this
  • It's been slow going, mostly because there is no syntax checking for the javascript. This, I think, is going to be a major hindrance for authors. If a page doesn't load, then I have to meticulously read the code for that page and make guesses at what the problem is. Is there any way to see javascript errors?
    I want to write a javascript test harness at some point that would allow testing in isolation. There is a specific log file see above.
    You can write to the log using this command
    jscriptLog(String logMessage) writes a message to the javascript log
  • What functions are available in overRide?
    overRide
    overRide.addButton(String target, String text, String set, String unSet, String jScript, String image)
    overRide.setDelay(String target, String delay, String startWith, String style, String set, String unSet, String jScript)
    overRide.setVideo(String id, String startAt, String stopAt, String target, String set, String unSet, String repeat, String jscript)
    overRide.setAudio(String id, String startAt, String stopAt, String target, String set, String unSet, String repeat, String jscript)
    overRide.setMetronome(String bpm, int resolution, int loops, String rhythm)
    overRide.setHtml(String html)
    overRide.setImage(String id)
    overRide.setPage(String page)
meson1
Explorer
Explorer
Posts: 93
Joined: Sun Sep 26, 2010 3:28 pm
Gender: Male
Sexual Orientation: Straight

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post by meson1 »

computergeek wrote:New dream request should upgrades come around, a global function header. Being able to write a javascript function in one single location, then call it from the pages. I know I am dreaming, but thinking something like:

Code: Select all

      <Global Javascript>            <javascript>                <![CDATA[                        function test1() {                            var test001 = "Test 1";                            scriptVars.put("test001", ""+test001);                        }                ]]>                 </javascript>     </Global Javascript>     <Pages>         <Page id="start">            <Text><span style="color:#FFFFFF">            <p>Test</p>            </span></Text>            <Image id="*.jpg" />            <Button target="test001">Test 001</Button>        </Page>         <Page id="test001">            <Text><span style="color:#FFFFFF"><p>            <span>test001</span>            </p></span></Text>            <Image id="*.jpg" />            <Button target="start">Back</Button>            <javascript>                <![CDATA[                    function pageLoad() {                        test1();                    }                ]]>                 </javascript>        </Page> 
I was just about to write a post suggesting this exact same thing. So +1 vote for something like this.
meson1
Explorer
Explorer
Posts: 93
Joined: Sun Sep 26, 2010 3:28 pm
Gender: Male
Sexual Orientation: Straight

Re: GuideMe (TeaseMe v2.0): BETA Thread

Post by meson1 »

Also, is there a way in js to get the current page id?
Post Reply