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~