save/load inaccessible after botched custom save name

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
Lora
Regular
Posts: 25
Joined: Sat Jan 04, 2014 4:55 am
Projects: High Fog
Location: Texas
Contact:

save/load inaccessible after botched custom save name

#1 Post by Lora » Wed Apr 30, 2014 6:22 am

Alright, I've kinda dug myself into this one here.

I was being quite ambitious with the file picker/save/load screen in my game and I absentmindedly attempted to put a style property (outlines...) into the $save_name text. I do believe it allowed me to save a game with this flawed code. However, after creating the save file, the save/load interface now absolutely will not load.

I thought I could fix it if I manually deleted (in this case, moved) the save games from the game/saves folder - no dice.

Here's the traceback:
While running game code:
File "renpy/common/_layout/screen_main_menu.rpym", line 29, in script
File "game/screens.rpy", line 356, in python
File "game/screens.rpy", line 337, in python
KeyError: u'(1, #384b40)'

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

Full traceback:
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\execution.py", line 294, in run
node.execute()
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\ast.py", line 732, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\python.py", line 1382, in py_exec_bytecode
exec bytecode in globals, locals
File "renpy/common/_layout/screen_main_menu.rpym", line 29, in <module>
$ ui.interact()
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\ui.py", line 237, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\display\core.py", line 2059, in interact
scene_lists.replace_transient()
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\display\core.py", line 577, in replace_transient
self.remove(layer, tag)
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\display\core.py", line 851, in remove
self.hide_or_replace(layer, remove_index, "hide")
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\display\core.py", line 775, in hide_or_replace
d = oldsle.displayable._hide(now - st, now - at, prefix)
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\display\screen.py", line 189, in _hide
hid.update()
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\display\screen.py", line 270, in update
self.screen.function(**self.scope)
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\screenlang.py", line 1236, in __call__
renpy.python.py_exec_bytecode(self.code.bytecode, locals=scope)
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\python.py", line 1382, in py_exec_bytecode
exec bytecode in globals, locals
File "game/screens.rpy", line 356, in <module>
use file_picker
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\display\screen.py", line 599, in use_screen
screen.function(**scope)
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\screenlang.py", line 1236, in __call__
renpy.python.py_exec_bytecode(self.code.bytecode, locals=scope)
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\python.py", line 1382, in py_exec_bytecode
exec bytecode in globals, locals
File "game/screens.rpy", line 337, in <module>
text description
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\ui.py", line 442, in __call__
w = self.function(*args, **keyword)
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\text\text.py", line 1165, in __init__
self.set_text(text, scope, substitute)
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\text\text.py", line 1223, in set_text
i = renpy.substitutions.substitute(i, scope, substitute)
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\substitutions.py", line 223, in substitute
s = formatter.vformat(s, (), kwargs)
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/string.py", line 549, in vformat
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/string.py", line 571, in _vformat
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/string.py", line 632, in get_field
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/string.py", line 591, in get_value
File "C:\Users\Lora\Downloads\renpy-6.17.4-sdk\renpy\substitutions.py", line 192, in __getitem__
raise KeyError(key)
KeyError: u'(1, #384b40)'

Windows-post2008Server-6.2.9200
Ren'Py 6.18.0.409
High Fog 0.0
(the second part of KeyError: u'(1, #384b40)' is some kind of leftover from my attempts to get the outlines to work. I'm embarrassed.)

Nothing much appears to have been actually modified in the renpy folder, or the game folder itself, since the flawed save was created. (And the files which were modified, I tried to replace.) I deleted the persistent data to be sure. Now, I'm at a loss.

I don't want to go recklessly deleting/replacing possibly critical files in the hopes that it will fix my problem, at least without some idea of which file I should replace. Hopefully it's something simple to someone who understands renpy better than I do!

Thanks in advance for any help anyone can give me. :)

User avatar
Lora
Regular
Posts: 25
Joined: Sat Jan 04, 2014 4:55 am
Projects: High Fog
Location: Texas
Contact:

Re: save/load inaccessible after botched custom save name

#2 Post by Lora » Wed Apr 30, 2014 6:47 am

Aha, silly me.

After some trial and error I was able to get at least one page of saves to load (the one without the toxic file) and discovered that, no matter how many times I "deleted" my saves, they were still, somehow, there.

Ran a search for files of type *.save on my computer and remembered the AppData/Roaming/Renpy folder on windows (rather than in the folder where all my other renpy stuff was kept).

Deleted the saves *for real* and now everything is fixed!

User avatar
Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: save/load inaccessible after botched custom save name

#3 Post by Asceai » Wed Apr 30, 2014 6:53 am

Ren'Py 6.18.0.409
How did you get this? Even the nightly release channel only goes up to 6.18.0.201 for me.

EDIT: Huh, 409 is the last value of the current release, so maybe upgrading to nightly from the latest doesn't cause that one to change for some reason. My nightly renpy was an older version previously.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], _ticlock_