.RPYC and Save Issue (T-T)

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
Chu-3
Veteran
Posts: 424
Joined: Fri Oct 01, 2010 12:01 am
Completed: CAFE 0~The Drowned Mermaid~,duplicity~Beyond the Lies~, East Tower Series,How to Take Off Your Mask,CAFE 0 ~The Sleeping Beast~, How to Fool a Liar King
Projects: How to Fool a Liar King
Organization: roseVeRte
Tumblr: roseverte
itch: roseverte
Contact:

.RPYC and Save Issue (T-T)

#1 Post by Chu-3 »

I just deleted my .rpyc files, then launch the game again, load the save data (I didn't change the script at all) and continue the game until the end, but it won't end.
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
Then do this:
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
This happened in renpy 6.12.0 and 6.12.1.
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

User avatar
inahochama
Regular
Posts: 39
Joined: Tue Dec 15, 2009 12:38 am
Contact:

Re: .RPYC and Save Issue (T-T)

#2 Post by inahochama »

EDIT: My suggestion was completely off the mark XD
Last edited by inahochama on Wed May 11, 2011 4:23 am, edited 1 time in total.

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: .RPYC and Save Issue (T-T)

#3 Post by PyTom »

Basically, what you have to do is to drop the old .rpyc files in, and then let Ren'Py create new ones. Ren'Py uses the data in the old .rpyc files to ensure saves can migrate from one version to another (usually).
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot]