Problem with 'return'?

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
User avatar
felisselita
Newbie
Posts: 16
Joined: Thu Jul 21, 2011 12:26 am
Completed: "Starstorm", a BL visual novel game
Tumblr: felisselita
Deviantart: felisselita
itch: felis-selita
Contact:

Problem with 'return'?

#1 Post by felisselita »

I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/script.rpy", line 3449, in script

File "game/script.rpy", line 3449, in script

ScriptError: could not find label '(u'C:\\SELMA\\~CAMPURAN~\\renpy-6.17.6-sdk\\Starstorm/game/script.rpy', 1406243234, 17)'.

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

Full traceback:
File "game/script.rpy", line 3449, in script

File "C:\SELMA\~CAMPURAN~\renpy-6.17.6-sdk\renpy\ast.py", line 1286, in execute
next_node(renpy.game.context().lookup_return(pop=True))
File "game/script.rpy", line 3449, in script

File "C:\SELMA\~CAMPURAN~\renpy-6.17.6-sdk\renpy\script.py", line 549, in lookup
raise ScriptError("could not find label '%s'." % str(label))
ScriptError: could not find label '(u'C:\\SELMA\\~CAMPURAN~\\renpy-6.17.6-sdk\\Starstorm/game/script.rpy', 1406243234, 17)'.

Windows-7-6.1.7601-SP1
Ren'Py 6.17.6.512
Starstorm 0.0
That is the traceback that comes up. Basically I put 'return' in the end of the script, but somehow instead of returning/ending to main menu, this error comes up. I'm sorry if this has been asked before, I really don't know what's the name of this error and have no idea how to look for it here.

Can anyone help me? Thank you very much. :)
Image
Starstorm by felisselita, a BL visual novel with minigames! Get it here: https://felis-selita.itch.io/starstorm

Rietr
Newbie
Posts: 8
Joined: Sat Jun 28, 2014 1:15 pm
Contact:

Re: Problem with 'return'?

#2 Post by Rietr »

May I suggest posting (part of) your script?
Without that it's really hard to troubleshoot this problem.

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Problem with 'return'?

#3 Post by xela »

This usually means that one of your files can no longer be parsed. Delete all .rpyc files and try again, if the error persists, we'll need to see the relevant code..
Like what we're doing? Support us at:
Image

User avatar
felisselita
Newbie
Posts: 16
Joined: Thu Jul 21, 2011 12:26 am
Completed: "Starstorm", a BL visual novel game
Tumblr: felisselita
Deviantart: felisselita
itch: felis-selita
Contact:

Re: Problem with 'return'?

#4 Post by felisselita »

@Rietr and @Xela: Thank you for your help. I also thought of posting the script but it was very long and I didn't know which part to post. But I have tried deleting the .rpyc files and running it again, and now all the code work well. Thank you again for your help, have a nice day :)
Image
Starstorm by felisselita, a BL visual novel with minigames! Get it here: https://felis-selita.itch.io/starstorm

Post Reply

Who is online

Users browsing this forum: No registered users