"Invalid scene_list instruction, only allowed at the top of startup.txt"?


#1

New to Choicescript, yay!
I’m confused at the error since I thought I had it at the top?

“startup
executing
QUICKTEST FAILED
Error: startup line 4: Invalid scene_list instruction, only allowed at the top of startup.txt”

My code looks like this:

<!nav = new SceneNavigator(["startup"]);
*title dnd campaign tyche

*scene_list
	startup
	history
	nk_observations

*create name "Unknown"
*create class "Unknown"
 -->

Thank you!


#2

what is the <!nav for?


#3

That was the code that came with the OG file. I’ve tried it with and without and I still get the same message. I’m not sure if I need it or not


#4

shooting in the dark but… try this:

*title DnD Campaign Tyche
*author You

*scene_list
   startup
   history
   nk_observations

*create name "unknown"
*create class "unknown"

#5

You don’t need html tags in your code, anywhere. It should just be plain text. If you’re copying that out of something else, you’ll need to remove all those tags.


#6
it's a comment html tag just remove these and you should be fine
<!nav = new SceneNavigator(["startup"]);

-->

If you are still getting an error like you said, try creating a new txt file, name it startup and copy/paste the code without the <!nav…–> part


#7

Thank you all! :grin:

So I think the issue is based on where you have capitalizations, which is okay in some places but not in others. Things like title, author, comments, and text can have capitalized words, but everything else I think is a no go. In my case I changed “Unknown” to “unknown” and the error went away.


#8

You lost me. Anything enclosed in quotes like that can be capitalised any way you like, as can any other text. You must have done something else to get rid of that error.


#9

And that error is unknown.
:kissing:~~

I’ll leave.


#10

Well gosh I thought that was what it was, but you’re right. I capitalized it again and it’s just fine. I thought I had received the same error whether I had " nav = new SceneNavigator([“startup”]); " or not. But it must have been that, I can’t imagine what else. Just incase I created a new startup file with just my intended code. Sorry for the confusion!


#11

The “complete” template for the startup.txt file should look like this:

*title <Story title>
*author <Namae>

*create <variables>
*create <variables>
*create <variables>
(and so on)

*achievement <codename> <visible/hidden> <achievement point> <title>
*achievement <codename> <visible/hidden> <achievement point> <title>
*achievement <codename> <visible/hidden> <achievement point> <title>
(and so on)

The real text/code goes here.

As usual, add, remove, or modify as necessary.


#12

The important thing is that you got it fixed and you’re now on your way :slight_smile: