I got an error message told me that label xxx couldn't be found.
Before I deleted the .rpyc files, I can go until the end, the the game will be reloaded normally to the main menu. Again, there's no change on the script.
I wonder what's happened that made a simple script, with a similar structure to my game.
And I got the same issue as well.
The script is:
Code: Select all
label start:
e "You've created a new Ren'Py game."
e "Once you add a story, pictures, and music, you can release it to the world!"
call a
return
label a:
"test"
jump b
label b:
"test1"
return
Launch the game>save at the point I mentioned below>quit the game, delete all .rpyc files>launch the game again and load the save file.
*If I save at "e "You've created a new Ren'Py game."" >>everything will work fine even if the .rpyc is deleted once.
*But if I save at "test1" (label b) , just before the game ends, an error message below will be displayed when you loaded the game and go further until the game's end.
Code: Select all
I'm sorry, but an uncaught exception occurred.
ScriptError: could not find label '('D:\\test/game/script.rpy', 1305052070, 5)'.
While running game code:
- script at line 26 of D:\test/game/script.rpy
- script at line 26 of D:\test/game/script.rpy
-- Full Traceback ------------------------------------------------------------
File "D:\renpy-6.12.0\renpy\bootstrap.py", line 279, in bootstrap
File "D:\renpy-6.12.0\renpy\main.py", line 320, in main
File "D:\renpy-6.12.0\renpy\main.py", line 93, in run
File "D:\renpy-6.12.0\renpy\execution.py", line 259, in run
File "D:\renpy-6.12.0\renpy\ast.py", line 1082, in execute
File "D:\renpy-6.12.0\renpy\execution.py", line 317, in lookup_return
File "D:\renpy-6.12.0\renpy\script.py", line 480, in lookup
ScriptError: could not find label '('D:\\test/game/script.rpy', 1305052070, 5)'.
While running game code:
- script at line 26 of D:\test/game/script.rpy
- script at line 26 of D:\test/game/script.rpy
Ren'Py Version: Ren'Py 6.12.0e
And this issue really makes me stressed since it means I can't release a patch which the player can use without deleting the old save data T-T
Any help?
*I just found a similar question about issue on save/load within the forum.
And I guess the problem is within the call function, since if the .rpyc is changed, renpy can't detect where did you call the function from when it met the return function...
*I'll guess I'll separate the script with call function and not then. And .rpyc with a call function should not be deleted. Am I right? OTL