Page 1 of 1

label start not found error in script.rpy

Posted: Thu Dec 27, 2018 2:25 pm
by sunshine1010
When I launch my project it opens, but when I hit start the game crashes and sends me an error message, 'could not find label 'start'' (error message screenshot included below)
I have also included a screenshot of my script.rpy code, which does include "label start:" I don't understand why it can't find it.

Re: label start not found error in script.rpy

Posted: Fri Dec 28, 2018 12:25 am
by Karl_C
Check, if your 'script.rpy' is really in the project's 'game' folder.

Re: label start not found error in script.rpy

Posted: Sat Dec 29, 2018 4:37 am
by Imperf3kt
I'd suggest using the "force recompile" option found in the launcher.

Re: label start not found error in script.rpy

Posted: Sat Dec 29, 2018 10:32 am
by Remix
I'd also suggest renaming All your other labels to Not start with a number and do Not use periods within a label name (they are only used as first character when defining a local label within a previous global)

Code: Select all

label g1:
    e "..."
    
label .a1:
    # this is actually label g1.a1 now
    e "..."

Re: label start not found error in script.rpy

Posted: Thu Jan 03, 2019 3:48 pm
by lacticacid
///

Re: label start not found error in script.rpy

Posted: Thu Jan 03, 2019 4:24 pm
by Imperf3kt
Labels do NOT need indenting and Will cause issues if you do that.
The code posted in the opening post is indented correctly (as best I can tell from an image, text would have been preferred)