Page 1 of 1

Could not find return label

Posted: Thu Jul 23, 2020 1:44 am
by C Kitsune
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.

Re: Could not find return label

Posted: Thu Jul 23, 2020 11:02 am
by hemspekilegur
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.

Re: Could not find return label

Posted: Mon Jul 27, 2020 6:13 pm
by AlexNumbers
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