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:
(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.)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
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.
