Problem with run-server.bat Export to HTML

I’m having trouble with the “Export to HTML” function in the run_server.bat batch file. It will say that a file doesn’t exist. For example, I have *scene_list with chapter1. chapter1 has a command
*gosub_scene eric_fights fight
It will say “file not found” when it gets to that line.
if I include eric_fights in *scene_list, then it will include it. Does this mean that the export to HTML function does not check each file in *scene_list for gosub_scene commands? So I will need to include every file in the *scene_list for it to be compiled?

1 Like

If you are exporting a file to .html, every scene needs to be listed under the scene list, even if you plan to access those scenes via *goto_scene and not *finish.

You could put these extra scenes at the back of your scene list, and use *ending on the final chapter scene to ensure that you don’t just roll down these extra scenes by mistake when playing.

If you’re running choicescript locally on your computer, or using dashingdon/cogdemos, then it’s not necessary to have all scenes under scene list as long as these scenes are accessible by commands like *goto_scene.

1 Like

Thank you! I’ll include the list of all referenced scenes in the scene list then. Should be fairly easy, since it will throw an error if I forget any.

1 Like