It's in the startup file? Do I need to do testings in the startup file? I just made an untitled file to do testing. I didn't write anything in the startup file tho so the error can't be from there
Omg just checked startup and yes I did write something in there😭😭. Gods my goldfish memory. I'm so sorry but I still seem to not have a hold of this coding
when you run a test, it tests the whole choicescript, not just the file you’re in. so it’s testing “startup”, “choicescript_stats”, and “untitled” in that order. since startup comes first (like it should, so no worries there!), that’s where the test starts. unfortunately, that does mean that startup needs to be completed/passable before it can test the rest of your code. for this one, the error is showing “line 6 of startup”. so something within there is triggering the test to stop and alert you before it moves on to test anything else.
all good! you’re self-teaching a new skill, you’re bound to run into hurdles. it’s great that you’re learning. you could make a super bare bones startup page if you’re more interested in writing the base of the story first.
something like:
*title blah
*scene_list startup untitled (make sure to indent these two scene names, though. Reddit won’t let me on the post)
hmmm unfortunately i’m not sure why one would work over the other since it looks like they all have the same amount of indents, which is what the code is telling you is wrong for the second one. if you’re using the same amount of spaces and not tab then it should read correctly :/
try replacing finish in the test file with ending to rule out that it's not just hiccuping over no more files on the file list.
edit: if that doesn't help try changing the choices in startup to *fake_choice, put the flavortext in the choices but remove the finish and put it under the choicebody instead (no indents for the finish then)
Were you able to get the app installed? The first time you boot the app, it asks you where do you want to store your files. I recommend your downloads folder. If you have an existing project just add it to that folder and it’ll show up in the app.
If you’re having trouble using the app or navigating the UI, then dm me and I can walk you through it.
12
u/Spare-College-3370 9d ago
the error code is showing in your startup file, but it looks like the screenshot you shared is from your untitled file
7
u/BearableBastard 9d ago edited 9d ago
https://github.com/UnbearableBastard/ChoiceScript-Mobile-App/tree/main
I made this specifically for coding on android because I hate having to be stuck to my desktop in order to code it properly.
3
u/MeltingPenguinsPrime 9d ago
what are the errors?