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.
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)'.
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.
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..
@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