Can't Save // Attribute Error: 'NoneType object has no attribute 'encode'
Posted: Mon Apr 29, 2024 2:56 am
Hey there I am completely beyond stumped with this traceback error I'm getting every time I try to save my game.
I recently made tons of stylistic changes all over the game and have no idea what's causing it and windows is telling me I don't have an app installed to be able to open up any of the common/ rpy scripts to try and decipher this (even though I've been using VScode for everything else). Any idea where this might be coming from?
The full traceback report (some personal data scrubbed from file locations):
Code: Select all
While running game code:
File "renpy/common/00gamemenu.rpy", line 174, in script
$ ui.interact()
File "renpy/common/00gamemenu.rpy", line 174, in <module>
$ ui.interact()
File "renpy/common/00action_file.rpy", line 414, in __call__
renpy.save(fn, extra_info=save_name)
AttributeError: 'NoneType' object has no attribute 'encode'
The full traceback report (some personal data scrubbed from file locations):
Code: Select all
Full traceback:
File "renpy/common/00gamemenu.rpy", line 174, in script
$ ui.interact()
File "C:\Users\renpy-8.2.1-sdk\renpy\ast.py", line 823, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\python.py", line 1178, in py_exec_bytecode
exec(bytecode, globals, locals)
File "renpy/common/00gamemenu.rpy", line 174, in <module>
$ ui.interact()
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\ui.py", line 301, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\display\core.py", line 2165, in interact
repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, pause_modal=pause_modal, **kwargs) # type: ignore
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\display\core.py", line 3201, in interact_core
rv = root_widget.event(ev, x, y, 0)
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\display\layout.py", line 1202, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Users\Hibiya\Desktop\renpy-8.2.1-sdk\renpy\display\transition.py", line 53, in event
return self.new_widget.event(ev, x, y, st) # E1101
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\display\layout.py", line 1202, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\display\layout.py", line 1202, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\display\screen.py", line 793, in event
rv = self.child.event(ev, x, y, st)
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\display\layout.py", line 1202, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Usersa\Desktop\renpy-8.2.1-sdk\renpy\display\layout.py", line 1426, in event
rv = super(Window, self).event(ev, x, y, st)
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\display\layout.py", line 288, in event
rv = d.event(ev, x - xo, y - yo, st)
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\display\layout.py", line 1202, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Users\Hibiya\Desktop\renpy-8.2.1-sdk\renpy\display\layout.py", line 1202, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\display\behavior.py", line 1174, in event
return handle_click(self.clicked)
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\display\behavior.py", line 1095, in handle_click
rv = run(action)
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\display\behavior.py", line 388, in run
new_rv = run(i, *args, **kwargs)
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\display\behavior.py", line 395, in run
return action(*args, **kwargs)
File "renpy/common/00action_file.rpy", line 414, in __call__
renpy.save(fn, extra_info=save_name)
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\loadsave.py", line 460, in save
location.save(slotname, sr)
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\savelocation.py", line 464, in save
l.save(slotname, record)
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\savelocation.py", line 161, in save
record.write_file(filename)
File "C:\Users\Desktop\renpy-8.2.1-sdk\renpy\loadsave.py", line 361, in write_file
zf.writestr("extra_info", self.extra_info.encode("utf-8"))
AttributeError: 'NoneType' object has no attribute 'encode'