I’m having trouble with incorporating the ChoiceScriptSavePlugin made by @CJW.
When I’m developing my game and I’m running the CS server (run-server file) the browser window with the preview of my game shows that the plugin is working perfectly. No problems there.
The thing is after I compile the game with the compiler offered by the CoG. After I compile it, when I open the html file, the plugin doesn’t kick in - the menu with the “save”/“load”/“delete” buttons doesn’t show up. Why is that? How can I solve it?
You used to be able to compile games with mods (saves, colour changes etc) so it was possible, but since it had to be changed due to Firefox’s security, I haven’t had success compiling with mods. Not sure if it’s now able to be done.
I’ve been able to use the save feature on compiled html versions on both Firefox and Chrome
I just compile the game, making sure I put the line:
*sm_init nameofthegame | 20
on the end of the startup file (right after the *create or achievements, if there is) (The “10” is the number of slots, you can chose how much do you want)
After I compile, I open the html of the game and the save plugin with Notepad++. Then I search “scenenavigator” on the game html with CTRL+F. Right above the first line found should be a comment of “Dan Fabulich”. I copy all of the code from the save plugin and paste on a line below the Dan Fabulich comment.