HTML Compile File Missing?

So, I figured out how to compile my game into HTML. I get all my files pasted in:

It compiles fine. But when I went to play the compiled version, it thinks a file is missing:

It’s definitely there when I compile it so I’m not sure what to do?

1 Like

I’m not totally sure what you’re trying to do - when you compile an html file it doesn’t involve pasting anything, instead you need to follow the instructions here.

Are you trying to add your txt files to cogdemos?

cogdemos just won’t work for my project for some reason, so I was trying to compile HTML instead. I followed those instructions. It says to put your files in the choicescript-main>web>scenes folder. I do that. But when I actually compile it, it doesn’t recognize one of the files is there.

Ah I understand now, thanks! Do the other scene files work - eg does the first page where the settings are first set display right?

Yes, the first few pages work fine. If I test the same files in vscode or CSIDE I don’t have an issue accessing the so-called missing file.

Make sure the file names and extensions in your scenes folder match exactly with what’s in your code. Even small mistakes, like different capital letters or missing extensions, can cause this error.

Make sure the scene is specified under a *scene_list command in your startup.txt.

There’s no issues with that. This is code that’s been working for about a year now.

The file I’m having issues with is a subroutine. I don’t think those need to be in the *scene_list, right?

Not for running from CSIDE, but for compiling into HTML, they do.

1 Like

I’ll give that a shot, then. Thanks!