CensoredUsername / unrpyc

A ren'py script decompiler
Other
837 stars 149 forks source link

Ren'Py 7.3.0 support #80

Closed NWPlayer123 closed 5 years ago

CensoredUsername commented 5 years ago

Do you have any list of features that need to be added or a test case that fails?

NWPlayer123 commented 5 years ago

Just a test case that fails, half of them don't decompile and then when it boots it gives an error

NWPlayer123 commented 5 years ago
Traceback (most recent call last):
  File "<unrpyc>", line 30, in decompile_game
  File "<unrpyc>", line 22, in decompile_rpyc
  File "<unrpyc>", line 17, in read_ast_from_file
  File "<magic>", line 141, in safe_loads
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/pickle.py", line 858, in load
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/pickle.py", line 1133, in load_reduce
  File "<magic>", line 24, in __new__
FakeUnpicklingError: <class 'collections.OrderedDict'> was instantiated with unexpected arguments ([],), {}

map.zip

CensoredUsername commented 5 years ago

Thanks, I'll take a look at it. Seems interesting.

CensoredUsername commented 5 years ago

Should be fixed in v1.0.13 that was just published!

NWPlayer123 commented 5 years ago

The log still spits out a bunch of errors. Tried 1.0.14

CRC32: E0135D7B
MD5: A532C2216FFF3229558F48734821467F
SHA-1: 719D1D5D9A99E944B96C32051CC7BD1FDC00DFC8

Here's some more files to check,

Failed at decompiling ch/audrey/images.rpyc
Traceback (most recent call last):
  File "<unrpyc>", line 36, in decompile_game
  File "<unrpyc>", line 28, in decompile_rpyc
  File "<unrpyc>", line 23, in read_ast_from_file
  File "<magic>", line 141, in safe_loads
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/pickle.py", line 858, in load
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/pickle.py", line 1133, in load_reduce
  File "<magic>", line 24, in __new__
FakeUnpicklingError: <class 'collections.OrderedDict'> was instantiated with unexpected arguments ([[u'attribute_function', u'Picker(audrey)']],), {}

images.zip

Failed at decompiling bg/gym.rpyc
Traceback (most recent call last):
  File "<unrpyc>", line 36, in decompile_game
  File "<unrpyc>", line 28, in decompile_rpyc
  File "<unrpyc>", line 23, in read_ast_from_file
  File "<magic>", line 141, in safe_loads
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/pickle.py", line 858, in load
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/pickle.py", line 1133, in load_reduce
  File "<magic>", line 24, in __new__
FakeUnpicklingError: <class 'collections.OrderedDict'> was instantiated with unexpected arguments ([],), {}

gym.zip

CensoredUsername commented 5 years ago

Whoops, looks like I fixed in the command line tool but I typoed the fix in un.rpyc, Could you test if it works with https://github.com/CensoredUsername/unrpyc/releases/tag/v1.0.15 ? I don't have a recent enough game to test it with.

NWPlayer123 commented 5 years ago

All better, thanks 👍