Error that I just have no clue about.

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
radu32167
Newbie
Posts: 24
Joined: Wed Nov 23, 2016 10:25 am
Contact:

Error that I just have no clue about.

#1 Post by radu32167 » Fri Aug 02, 2019 9:28 am

Hi
I'm developing a small game with renpy
Recently some people have reported that they can't seem to be able to open they're old save games.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00keymap.rpy", line 456, in 
  File "renpy/common/00keymap.rpy", line 466, in _execute_python_hide
AttributeError: 'renpy.display.matrix.Matrix2D' object has no attribute 'state'

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

Full traceback:
  File "00start.rpyc", line 204, in script call
  File "00keymap.rpyc", line 456, in script
  File "C:\Users\Biydo\OneDrive\renpy\ast.py", line 912, in execute
  File "C:\Users\Biydo\OneDrive\renpy\python.py", line 2008, in py_exec_bytecode
  File "renpy/common/00keymap.rpy", line 456, in 
  File "renpy/common/00keymap.rpy", line 466, in _execute_python_hide
  File "C:\Users\Biydo\OneDrive\renpy\loadsave.py", line 760, in load
  File "C:\Users\Biydo\OneDrive\renpy\loadsave.py", line 63, in loads
  File "matrix.pyx", line 69, in renpy.display.matrix.Matrix.__setstate__
AttributeError: 'renpy.display.matrix.Matrix2D' object has no attribute 'state'

This is the error they've reported.
Can't seem to be able to replicate it on my own machine, and I honestly just have no clue.

Does anyone here know anything.
Thanks in advance.

rames44
Veteran
Posts: 232
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: Error that I just have no clue about.

#2 Post by rames44 » Fri Aug 02, 2019 10:27 am

This is just a guess, but have you changed versions of Ren'py since those saves were made?

This has the look of a situation where an instance of a class was saved (Matrix2D in this case) and when it's restored, something is different about the way the class is implemented in the version of Ren'py that's doing the restoring. The class that's being complained about is obviously one of PyTom's, so I'm wondering if the save was made with a different version of Ren'py that used a slightly different definition of Matrix2D.

If so, you might have to get someone to send you one of the offending saves and dump its contents to figure out what the offending saved variable is, and then see if you can hack your way around it.

radu32167
Newbie
Posts: 24
Joined: Wed Nov 23, 2016 10:25 am
Contact:

Re: Error that I just have no clue about.

#3 Post by radu32167 » Sat Aug 03, 2019 1:16 pm

Yes. I have changed versions.

Thanks.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], span4ev