kyouryuukunn / renpy-ActionEditor3

125 stars 13 forks source link

TypeError: cannot pickle 'weakref' object #18

Closed RenDevA9175 closed 1 year ago

RenDevA9175 commented 1 year ago

Hi, I've run into this issue whilst using actioneditor. Tried both master and AT clause releases. In my script when I call my animation that uses "At" it always crashes when I try to reload renpy with this message. When I remove the at animation it doesn't do this. Any fixes for this? The animation is this- and full crash log is on the bottom

image img look: At("img_look", glitch) pause 0.2 At("img_look", chromatic_offset) pause 0.2 At("img_look", glitch) pause 0.1 At("img_look", chromatic_offset) pause 0.3 At("img_look", chromatic_offset) pause 0.2 At("kimg_look", glitch) pause 0.1 At("img_look", chromatic_offset) pause 1.0 repeat

[code] I'm sorry, but an uncaught exception occurred.

While running game code: File "renpy/common/00keymap.rpy", line 473, in script python hide: File "renpy/common/00keymap.rpy", line 473, in python hide: File "renpy/common/00keymap.rpy", line 497, in _execute_python_hide renpy.save("_reload-1", "reload save game") TypeError: cannot pickle 'weakref' object

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

Full traceback: File "renpy/common/00keymap.rpy", line 473, in script python hide: File "D:\Project Room\Renpy\renpy-8.0.3-sdk\renpy\ast.py", line 1131, in execute renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store) File "D:\Project Room\Renpy\renpy-8.0.3-sdk\renpy\python.py", line 1061, in py_exec_bytecode exec(bytecode, globals, locals) File "renpy/common/00keymap.rpy", line 473, in python hide: File "renpy/common/00keymap.rpy", line 497, in _execute_python_hide renpy.save("_reload-1", "reload save game") File "D:\Project Room\Renpy\renpy-8.0.3-sdk\renpy\loadsave.py", line 403, in save reraise(t, e, tb) File "/home/tom/ab/renpy-build/tmp/install.linux-x8664/lib/python3.9/site-packages/future/utils/init.py", line 441, in raise File "D:\Project Room\Renpy\renpy-8.0.3-sdk\renpy\loadsave.py", line 389, in save dump((roots, renpy.game.log), logf) File "D:\Project Room\Renpy\renpy-8.0.3-sdk\renpy\compat\pickle.py", line 103, in dump pickle.dump(o, f, pickle.HIGHEST_PROTOCOL if highest else PROTOCOL) TypeError: cannot pickle 'weakref' object

Windows-10-10.0.23403 AMD64 Ren'Py 8.0.3.22090809 Serial:Code 0.1 Tue Mar 14 23:24:00 2023 [/code]