Heyo Nanoff, really excited to check out the update! Had the same problem though the "line 712" etc is a little different. For me, it happened when I tried to save a game with my character's name as "Anon". I was trying to pick into the VIP room. Now, the save and load functions result in the aforementioned error. Think the save file is broken - how do I delete it from my PC?
Viewing post in Exception Occurs Trying to Save or Load!
Hi Nanoff, here's the traceback. The error occurred after I saved in the VIP room. I can't recall the exact scene my main save is at, but it would be at the restaurant after the opening of the hotel. Kota is the manager with Khebish as the third employee brought in via the Arts background.
While running game code:
File "game/extra_screens_menu_screens.rpy", line 318, in execute
screen mobileLoadMenu():
File "game/extra_screens_menu_screens.rpy", line 318, in execute
screen mobileLoadMenu():
File "game/extra_screens_menu_screens.rpy", line 332, in execute
use mobileFileSlots(_("Load"), 'load')
File "game/extra_screens_menu_screens.rpy", line 685, in execute
screen mobileFileSlots(title, saveLoad):
File "game/extra_screens_menu_screens.rpy", line 685, in execute
screen mobileFileSlots(title, saveLoad):
File "game/extra_screens_menu_screens.rpy", line 692, in execute
fixed:
File "game/extra_screens_menu_screens.rpy", line 699, in execute
grid gui.file_slot_cols gui.file_slot_rows:
File "game/extra_screens_menu_screens.rpy", line 706, in execute
for i in range(gui.file_slot_cols * gui.file_slot_rows):
File "game/extra_screens_menu_screens.rpy", line 708, in execute
button:
File "game/extra_screens_menu_screens.rpy", line 714, in execute
has vbox
File "game/extra_screens_menu_screens.rpy", line 720, in execute
if FileSaveName(slot)=="":
File "game/extra_screens_menu_screens.rpy", line 724, in execute
if "@" in FileSaveName(slot):
File "game/extra_screens_menu_screens.rpy", line 735, in execute
text FileSaveName(slot) xalign 0.5 size 24
NameError: Name '#eccb37' is not defined.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "renpy/common/_layout/screen_main_menu.rpym", line 28, in script
python hide:
File "renpy/ast.py", line 922, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "renpy/python.py", line 2218, in py_exec_bytecode
exec(bytecode, globals, locals)
File "renpy/common/_layout/screen_main_menu.rpym", line 28, in <module>
python hide:
File "renpy/common/_layout/screen_main_menu.rpym", line 35, in _execute_python_hide
ui.interact()
File "renpy/ui.py", line 298, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "renpy/display/core.py", line 3276, in interact
repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, **kwargs)
File "renpy/display/core.py", line 3693, in interact_core
root_widget.visit_all(lambda i : i.per_interact())
File "renpy/display/core.py", line 567, in visit_all
d.visit_all(callback, seen)
File "renpy/display/core.py", line 567, in visit_all
d.visit_all(callback, seen)
File "renpy/display/core.py", line 567, in visit_all
d.visit_all(callback, seen)
File "renpy/display/core.py", line 567, in visit_all
d.visit_all(callback, seen)
File "renpy/display/screen.py", line 432, in visit_all
callback(self)
File "renpy/display/core.py", line 3693, in <lambda>
root_widget.visit_all(lambda i : i.per_interact())
File "renpy/display/screen.py", line 443, in per_interact
self.update()
File "renpy/display/screen.py", line 631, in update
self.screen.function(**self.scope)
File "game/extra_screens_menu_screens.rpy", line 318, in execute
screen mobileLoadMenu():
File "game/extra_screens_menu_screens.rpy", line 318, in execute
screen mobileLoadMenu():
File "game/extra_screens_menu_screens.rpy", line 332, in execute
use mobileFileSlots(_("Load"), 'load')
File "game/extra_screens_menu_screens.rpy", line 685, in execute
screen mobileFileSlots(title, saveLoad):
File "game/extra_screens_menu_screens.rpy", line 685, in execute
screen mobileFileSlots(title, saveLoad):
File "game/extra_screens_menu_screens.rpy", line 692, in execute
fixed:
File "game/extra_screens_menu_screens.rpy", line 699, in execute
grid gui.file_slot_cols gui.file_slot_rows:
File "game/extra_screens_menu_screens.rpy", line 706, in execute
for i in range(gui.file_slot_cols * gui.file_slot_rows):
File "game/extra_screens_menu_screens.rpy", line 708, in execute
button:
File "game/extra_screens_menu_screens.rpy", line 714, in execute
has vbox
File "game/extra_screens_menu_screens.rpy", line 720, in execute
if FileSaveName(slot)=="":
File "game/extra_screens_menu_screens.rpy", line 724, in execute
if "@" in FileSaveName(slot):
File "game/extra_screens_menu_screens.rpy", line 735, in execute
text FileSaveName(slot) xalign 0.5 size 24
File "renpy/text/text.py", line 1541, in __init__
self.set_text(text, scope, substitute)
File "renpy/text/text.py", line 1660, in set_text
i, did_sub = renpy.substitutions.substitute(i, scope, substitute)
File "renpy/substitutions.py", line 270, in substitute
s = formatter.vformat(s, (), kwargs)
File "/home/tom/ab/renpy-build/tmp/install.android-x86_64/lib/python2.7/string.py", line 563, in vformat
File "/home/tom/ab/renpy-build/tmp/install.android-x86_64/lib/python2.7/string.py", line 585, in _vformat
File "/home/tom/ab/renpy-build/tmp/install.android-x86_64/lib/python2.7/string.py", line 646, in get_field
File "/home/tom/ab/renpy-build/tmp/install.android-x86_64/lib/python2.7/string.py", line 605, in get_value
File "renpy/substitutions.py", line 228, in __getitem__
raise NameError("Name '{}' is not defined.".format(key))
NameError: Name '#eccb37' is not defined.
Windows-10-10.0.22000
Ren'Py 7.4.6.1693
Minotaur Hotel 0.6.1.1
Sat May 7 21:01:49 2022
I found exactly where the issue is: you have to save between getting your background and either ending chapter 1 or going into the VIP room for the error to trigger.
It's very specific which is why none of the poeple playtesting it found it.
Now that i identified the source of the issue I'm rolling out a 0.6.1.2 that should fix the bug so it doesn't happen to anyone else, AND would handle your messed up save file so it doesn't throw an error, no work on your part. There's nothing wrong with the save file itself so don't worry about that, renpy just has a hard time parsing the save name.
Sorry for the inconvenience and thank you for helping me fix this.