label start not found error in script.rpy

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
sunshine1010
Newbie
Posts: 3
Joined: Wed Dec 26, 2018 4:08 pm
Contact:

label start not found error in script.rpy

#1 Post 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.
Attachments
Screen Shot 2018-12-27 at 10.22.16 AM.png
Screen Shot 2018-12-27 at 9.56.45 AM.png

User avatar
Karl_C
Veteran
Posts: 232
Joined: Sun Mar 31, 2013 6:18 am
Contact:

Re: label start not found error in script.rpy

#2 Post by Karl_C »

Check, if your 'script.rpy' is really in the project's 'game' folder.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: label start not found error in script.rpy

#3 Post by Imperf3kt »

I'd suggest using the "force recompile" option found in the launcher.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: label start not found error in script.rpy

#4 Post 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 "..."
Frameworks & Scriptlets:

lacticacid
Regular
Posts: 36
Joined: Fri Nov 23, 2018 6:44 pm
Contact:

Re: label start not found error in script.rpy

#5 Post by lacticacid »

///
Last edited by lacticacid on Wed Mar 20, 2019 7:09 am, edited 1 time in total.
~There is almost always a better, easier way to approach a problem.~

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: label start not found error in script.rpy

#6 Post 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)
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Post Reply

Who is online

Users browsing this forum: Kocker