V2 - Crash: Save Game
Opened this issue · 0 comments
brando56894 commented
Traceback (most recent call last):
File "main.py", line 132, in <module>
menu(new_player)
File "main.py", line 108, in menu
choices[choice](player)
File "/mnt/c/Users/bran/dungeon-quest/actions.py", line 283, in save_game
pickle.dump(player,oput,pickle.HIGHEST_PROTOCOL)
File "/usr/lib/python2.7/pickle.py", line 1370, in dump
Pickler(file, protocol).dump(obj)
File "/usr/lib/python2.7/pickle.py", line 224, in dump
self.save(obj)
File "/usr/lib/python2.7/pickle.py", line 331, in save
self.save_reduce(obj=obj, *rv)
File "/usr/lib/python2.7/pickle.py", line 419, in save_reduce
save(state)
File "/usr/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/lib/python2.7/pickle.py", line 649, in save_dict
self._batch_setitems(obj.iteritems())
File "/usr/lib/python2.7/pickle.py", line 681, in _batch_setitems
save(v)
File "/usr/lib/python2.7/pickle.py", line 286, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/lib/python2.7/pickle.py", line 748, in save_global
(obj, module, name))
pickle.PicklingError: Can't pickle <function <lambda> at 0x7fdfa2767d70>: it's not found as character.<lambda>