GuideMe Scripting Engine

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

User avatar
PlayfulGuy
Experimentor
Experimentor
Posts: 1068
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

Post by PlayfulGuy »

whdmusic wrote: Mon Feb 27, 2023 11:29 pm sorry for my late answer.
I did find a solution. Instead of using an array I used variables with numbers what comes out to the same behavior like an array.

See attachment, which works fine.

At last, the most disturbing point is the delay from pushing button "edge" to changing screen to "hold it". But everything else runs as wanted. I might try also to include video instead of pictures, but I am afraid, speed will slow down too much. But trying is better than guessing.

array like variables:
--------------------------
PageEdged:
set UserEdged
if ( NumberEdges > 0 ) NumberEdges = NumberEdges - 1
EdgeListLength = EdgeListLength + 1
EdgeList<EdgeListLength> = <GirlNumber>
----------------------------
I store the edging girlnumber in the last position of the "array". Instead from an array with name EdgeListXY (XY as position in the array), I use single variables with name EdgeList and a counter. This works fine. Since I read out a random girl out of the "array", sort order is not important.
Hey, thanks for sharing that! I'll check it out. Your solution is very similar to something I've used myself in the past for choosing images. Did you know that you can use a page command like

Code: Select all

<GirlName>/<ImageNumber>.jpg { Using variables for folder and image name }
In my current version of the script engine code I have a function for counting the number of images in a folder, and when I get it released I'll be including ones to sort the list of images too.

Got busy updating the tease downloader this week, but I've been working on the script engine too and plan to get the new version released in the next week or so.

Thanks again!

PG
adaamm
Curious Newbie
Curious Newbie
Posts: 3
Joined: Sun May 04, 2025 2:25 pm

Re: GuideMe Scripting Engine

Post by adaamm »

Hello,

I'm encountering a "Damn! Something went wrong." error in GuideMe. Here are the steps I took:

1. Unzipped GuideMe-v0.4.5-Windows.64-bit into a folder named "GuideMe".

2. Unzipped ScriptTeases1.53 into the same "GuideMe" folder.

3. Ran start.bat and attempted to load GuidemeScripts.xml.

To isolate the issue, I performed a test:

Successful Case: I can successfully load and run the "GamesRoom-OnTheEdge.xml" tease, which was unzipped in another folder. This confirms that GuideMe itself is installed and running correctly.

The error appears immediately after loading the XML file. Any suggestions?

Thank you~
User avatar
PlayfulGuy
Experimentor
Experimentor
Posts: 1068
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

Post by PlayfulGuy »

adaamm wrote: Tue Oct 07, 2025 11:49 am Hello,

I'm encountering a "Damn! Something went wrong." error in GuideMe. Here are the steps I took:

1. Unzipped GuideMe-v0.4.5-Windows.64-bit into a folder named "GuideMe".

2. Unzipped ScriptTeases1.53 into the same "GuideMe" folder.

3. Ran start.bat and attempted to load GuidemeScripts.xml.

To isolate the issue, I performed a test:

Successful Case: I can successfully load and run the "GamesRoom-OnTheEdge.xml" tease, which was unzipped in another folder. This confirms that GuideMe itself is installed and running correctly.

The error appears immediately after loading the XML file. Any suggestions?

Thank you~
That version of the script engine was written for a much older version of GuideMe.
Just to confirm, the script engine should be unzipped into the folder for the tease you will be "scripting" (not the GuideMe folder), and the ScriptEngine.js file will then be in a subfolder named "common". To fix your issue, edit the ScriptEngine.js file and delete the lines shown below, 2 at the very beginning of the file, and 2 more at the very end.

Code: Select all

// At beginning of ScriptEngine.js
<GlobalJavascript>
<![CDATA[

//... body of script engine

//.. then at the very end
]]>
</GlobalJavascript>
It should then work. Have a quick look at any other *.js files in the common folder and do the same for those. If memory serves it should only be the ScriptEngine.js file, but just in case...

Also, I have a much newer and more advanced version of the script engine that I keep not getting around to releasing. If you're interested in helping out, I will put together a package with some notes and sample scripts and send it to you for testing. It's far better than the old version, with more features, but I keep procrastinating and getting busy with other stuff (like doing teases, working on the downloader, etc), and you're the first person to ask about the script engine in ages. I could use the help getting motivated :-)

Regards,

PG
adaamm
Curious Newbie
Curious Newbie
Posts: 3
Joined: Sun May 04, 2025 2:25 pm

Re: GuideMe Scripting Engine

Post by adaamm »

PlayfulGuy wrote: Wed Oct 08, 2025 2:41 pm
adaamm wrote: Tue Oct 07, 2025 11:49 am Hello,

I'm encountering a "Damn! Something went wrong." error in GuideMe. Here are the steps I took:

1. Unzipped GuideMe-v0.4.5-Windows.64-bit into a folder named "GuideMe".

2. Unzipped ScriptTeases1.53 into the same "GuideMe" folder.

3. Ran start.bat and attempted to load GuidemeScripts.xml.

To isolate the issue, I performed a test:

Successful Case: I can successfully load and run the "GamesRoom-OnTheEdge.xml" tease, which was unzipped in another folder. This confirms that GuideMe itself is installed and running correctly.

The error appears immediately after loading the XML file. Any suggestions?

Thank you~
That version of the script engine was written for a much older version of GuideMe.
Just to confirm, the script engine should be unzipped into the folder for the tease you will be "scripting" (not the GuideMe folder), and the ScriptEngine.js file will then be in a subfolder named "common". To fix your issue, edit the ScriptEngine.js file and delete the lines shown below, 2 at the very beginning of the file, and 2 more at the very end.

Code: Select all

// At beginning of ScriptEngine.js
<GlobalJavascript>
<![CDATA[

//... body of script engine

//.. then at the very end
]]>
</GlobalJavascript>
It should then work. Have a quick look at any other *.js files in the common folder and do the same for those. If memory serves it should only be the ScriptEngine.js file, but just in case...

Also, I have a much newer and more advanced version of the script engine that I keep not getting around to releasing. If you're interested in helping out, I will put together a package with some notes and sample scripts and send it to you for testing. It's far better than the old version, with more features, but I keep procrastinating and getting busy with other stuff (like doing teases, working on the downloader, etc), and you're the first person to ask about the script engine in ages. I could use the help getting motivated :-)

Regards,

PG
Hi PG,

Thank you so much for your detailed explanation earlier — removing the <GlobalJavascript> and <![CDATA[ lines worked, and GuideMe now loads without the initial XML error.

However, I’ve run into another issue when running one of the scripts. After loading, I get an error message that says:

Evaluation of expression
if ( CardDrawn=="NoMoreCards" )
failed with error
"CardDrawn" is not defined.

Similar errors also occur when I try to run other teases — usually something like a variable not being defined or initialized. This makes me wonder if some of the older teases are incompatible with the current version of the Script Engine.

Just for context, I have a basic understanding of computers and software setup, but I’m not a coding expert, so I might be missing some technical detail here.

Also, I saw your note about the newer and more advanced version of the Script Engine — I’d be very interested in helping you test it! If you’re still open to sharing that version and a few sample scripts, I’d be happy to provide feedback and help test it out.

Thanks again for your continued work on GuideMe; it’s still a fantastic project and I really appreciate your effort in keeping it alive.

Best regards~
User avatar
PlayfulGuy
Experimentor
Experimentor
Posts: 1068
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

Post by PlayfulGuy »

adaamm wrote: Mon Oct 13, 2025 4:23 am
Spoiler: show
PlayfulGuy wrote: Wed Oct 08, 2025 2:41 pm
adaamm wrote: Tue Oct 07, 2025 11:49 am Hello,

I'm encountering a "Damn! Something went wrong." error in GuideMe. Here are the steps I took:

1. Unzipped GuideMe-v0.4.5-Windows.64-bit into a folder named "GuideMe".

2. Unzipped ScriptTeases1.53 into the same "GuideMe" folder.

3. Ran start.bat and attempted to load GuidemeScripts.xml.

To isolate the issue, I performed a test:

Successful Case: I can successfully load and run the "GamesRoom-OnTheEdge.xml" tease, which was unzipped in another folder. This confirms that GuideMe itself is installed and running correctly.

The error appears immediately after loading the XML file. Any suggestions?

Thank you~
That version of the script engine was written for a much older version of GuideMe.
Just to confirm, the script engine should be unzipped into the folder for the tease you will be "scripting" (not the GuideMe folder), and the ScriptEngine.js file will then be in a subfolder named "common". To fix your issue, edit the ScriptEngine.js file and delete the lines shown below, 2 at the very beginning of the file, and 2 more at the very end.

Code: Select all

// At beginning of ScriptEngine.js
<GlobalJavascript>
<![CDATA[

//... body of script engine

//.. then at the very end
]]>
</GlobalJavascript>
It should then work. Have a quick look at any other *.js files in the common folder and do the same for those. If memory serves it should only be the ScriptEngine.js file, but just in case...

Also, I have a much newer and more advanced version of the script engine that I keep not getting around to releasing. If you're interested in helping out, I will put together a package with some notes and sample scripts and send it to you for testing. It's far better than the old version, with more features, but I keep procrastinating and getting busy with other stuff (like doing teases, working on the downloader, etc), and you're the first person to ask about the script engine in ages. I could use the help getting motivated :-)

Regards,

PG
Hi PG,

Thank you so much for your detailed explanation earlier — removing the <GlobalJavascript> and <![CDATA[ lines worked, and GuideMe now loads without the initial XML error.

However, I’ve run into another issue when running one of the scripts. After loading, I get an error message that says:

Evaluation of expression
if ( CardDrawn=="NoMoreCards" )
failed with error
"CardDrawn" is not defined.

Similar errors also occur when I try to run other teases — usually something like a variable not being defined or initialized. This makes me wonder if some of the older teases are incompatible with the current version of the Script Engine.

Just for context, I have a basic understanding of computers and software setup, but I’m not a coding expert, so I might be missing some technical detail here.

Also, I saw your note about the newer and more advanced version of the Script Engine — I’d be very interested in helping you test it! If you’re still open to sharing that version and a few sample scripts, I’d be happy to provide feedback and help test it out.

Thanks again for your continued work on GuideMe; it’s still a fantastic project and I really appreciate your effort in keeping it alive.

Best regards~
You're welcome, and glad that helped.

It seems like you're trying one of the sample scripts provided. The specific error you listed above referencing CardDrawn indicates the tease is using the PlayingCards code, which is actually an addition to the main script engine. In the Cards subfolder of the ScriptEngine you'll find PlayingCards.js. You need to make the same edit to that file to remove the GlobalJavascript lines as described previously.

You'll also need to update htmlTools.js in the Common subfolder. I think that's all of them.

If there are still issues after that, check the GuideMe log (in the logs subfolder of your Guideme folder) and see if there are errors about files not being found.

I'll work on putting together a package of the newer script engine and some samples and send it via PM when I have it ready.
I appreciate your willingness to help out.

Cheers!

PG
adaamm
Curious Newbie
Curious Newbie
Posts: 3
Joined: Sun May 04, 2025 2:25 pm

Re: GuideMe Scripting Engine

Post by adaamm »

Hi PG,

Just wanted to let you know that everything’s working perfectly now — removing the <GlobalJavascript> and <![CDATA[ lines from both PlayingCards.js and htmlTools.js did the trick!

Thank you so much for your detailed guidance and patience throughout this process. I really appreciate how clearly you explained each step — it made troubleshooting much easier even though I’m not a coding expert.

I’d still be very happy to help you test the newer version of the Script Engine whenever it’s ready. It sounds like a great improvement, and I’d love to contribute feedback if it can help with development.

Thanks again for keeping this project alive and for your support!

Best regards~
Post Reply