I’m having trouble with the compiler using both the new and an old version of ChoiceScript. I tried CSW’s idea to check the log with f12 when trying to compile and got this:
Extracting js data from:
compile.html:17 version.js
compile.html:17 ../persist.js
compile.html:17 ../alertify.min.js
compile.html:17 ../util.js
compile.html:17 ../ui.js
compile.html:17 ../scene.js
compile.html:17 ../navigator.js
compile.html:17 ../ChoiceScriptSavePlugin.js
compile.html:17 mygame.js
compile.html:91 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'split')
at slurpFileLines (compile.html:91:23)
at generateMygame (mygamegenerator.js:121:15)
at compile (compile.js:115:19)
at compile.js:87:30
Anyone else having this issue? I figured maybe I had setup the save plugin wrong but when pulling up my archived folder of CS, which was working before, I’m getting the same issue.
I can open the run-compile.bat, and it looks like it’s doing things, but I don’t know anything about anything. Can someone help me with the compile.html or run-compile.bat?
I was able to resolve this by downloading a fresh version of Choicescript on a Windows computer (I mostly use a Mac). The compile.html still didn’t work, but run-compile.html did, creating a file called “output.html” in the main Choicescript folder when I used Edge (Mozilla and Chrome did not work; nothing worked on Mac).
Double-clicking on a runner script for the compiler.
On Windows, double-click on run-compile.bat
On macOS, double-click on compile.command
Double-clicking on compile.html. You’ll have to do a fake “upload” of your ChoiceScript folder, so it can access your other files.
This third way was broken, but is now fixed. (This is the least convenient way to run the compiler, but it is the oldest way, so I guess a lot of people are still used to it.)