Could not find return label

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
C Kitsune
Newbie
Posts: 5
Joined: Mon May 11, 2020 5:59 pm
itch: c-kitsune.itch.io
Contact:

Could not find return label

#1 Post by C Kitsune » Thu Jul 23, 2020 1:44 am

Hello. I've run into an odd error. When I try and finish the game it comes up with this:

CODE: SELECT ALL

I'm sorry, but an uncaught exception occurred.

While running game code:
I'm sorry, but an uncaught exception occurred.

While running game code:
File "renpy/common/00start.rpy", line 120, in script
return
Exception: Could not find return label (u'game/script.rpy', 1595482289, 16).

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

Full traceback:
File "renpy/common/00start.rpy", line 120, in script
return
File "C:\Users\João\Desktop\Ren'py\renpy-7.1.3-sdk\renpy\ast.py", line 1470, in execute
next_node(renpy.game.context().lookup_return(pop=True))
File "C:\Users\João\Desktop\Ren'py\renpy-7.1.3-sdk\renpy\execution.py", line 664, in lookup_return
raise Exception("Could not find return label {!r}.".format(self.return_stack[-1]))
Exception: Could not find return label (u'game/script.rpy', 1595482289, 16).

Windows-8-6.2.9200
Ren'Py 7.1.3.1092
KZ A Holocaust Tale DEMO 1.0
Thu Jul 23 02:40:25 2020

I have no idea how to solve this by my own, i will need your help.

hemspekilegur
Newbie
Posts: 8
Joined: Mon May 28, 2018 7:56 pm
Soundcloud: hemspekilegur
itch: hemspekilegur
Location: Georgia, USA
Contact:

Re: Could not find return label

#2 Post by hemspekilegur » Thu Jul 23, 2020 11:02 am

I'm also a beginner with ren'py so this could be totally off but do you have a

Code: Select all

 return 
label at the end of your script. Is it alligned with

Code: Select all

 label start: 
and all other endings to your script. This could be totally unrelated but is worth checking since the error message says "could not find return label", it's definitely where I would start.

User avatar
AlexNumbers
Newbie
Posts: 13
Joined: Sat May 11, 2019 11:11 am
Projects: Treis Zoes, Eyepieces' glares
Organization: FlyingFantasy Team
Location: Russian Federation, Kogalym
Contact:

Re: Could not find return label

#3 Post by AlexNumbers » Mon Jul 27, 2020 6:13 pm

You may find something here
Or try to delete all the save files in the game directory. The old saves may cause the problem if you changed your code
«The sun has escaped from my realm.
No. I sent it away.
My world is too perfect for it.
Green lightnings will light up my world».

(Ifest)

Post Reply

Who is online

Users browsing this forum: Google [Bot]