Renpy trying to find return label when there is none

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
dramaticaluniweeb
Newbie
Posts: 15
Joined: Sun Jun 12, 2016 1:28 am
Contact:

Renpy trying to find return label when there is none

#1 Post by dramaticaluniweeb » Sun Jun 12, 2016 6:29 pm

So it's me again (hi) and now I have ANOTHER PROBLEM.

Renpy is giving me an error code that's saying that in line 94, it can't find the return label. However, line 94 is completely BLANK. It's just a space, and it's smack-dab in the middle of the story. I don't really understand how it can even pick up on a return label being there.

Here is the traceback report:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
Exception: Could not find return label (u'C:\\Users\\emdepillis\\Downloads\\Happy Birth/game/script.rpy', 1465763838, 24).

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "lib/windows-i686/00start.rpyc", line 94, in script
  File "C:\Users\edps\Downloads\renpy-6.99.10-sdk\renpy\ast.py", line 1368, in execute
    next_node(renpy.game.context().lookup_return(pop=True))
  File "C:\Users\edps\Downloads\renpy-6.99.10-sdk\renpy\execution.py", line 523, in lookup_return
    raise Exception("Could not find return label {!r}.".format(self.return_stack[-1]))
Exception: Could not find return label (u'C:\\Users\\edps\\Downloads\\Happy Birth/game/script.rpy', 1465763838, 24).

Windows-7-6.1.7601-SP1
Ren'Py 6.99.10.1227
Happy Birth 0.0
My story is only 593 lines long, and line 523 has a sentence, not a return label, so I don't understand why the error report is looking for lines in the 1000s or occupied lines. Does anyone know how to solve this issue? If not, does anyone else have this issue?

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Renpy trying to find return label when there is none

#2 Post by trooper6 » Sun Jun 12, 2016 8:32 pm

We can't help if you don't post your code. Looking at your last post, it looks like you have indentation problems. I'd recommend posting the whole code, or attaching a zip of the project to your next post.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: Renpy trying to find return label when there is none

#3 Post by IrinaLazareva » Mon Jun 13, 2016 2:33 am

it is only my assumption, but...

when you test the project after modification don't use save/loading (old saves are damaged).
start from beginning (use "Fast Skip" mode, if it is necessary).

And there is a good button "Delete Persistent" :wink:

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]