Closed Bexa2 closed 2 years ago
Hmm. That comparison ought to be valid in python 2. Is this by any chance from a game that is on the nightly ren'py 8.0 release channel?
Edit: decompiles fine with python 2, so another case of #92
Hmm. That comparison ought to be valid in python 2. Is this by any chance from a game that is on the nightly ren'py 8.0 release channel?
I checked actually out of curiosity if another bright game-dev decided to use a nightly for productive work, but no. Its RenPy 7.4.8 in this game and i also got NO decompile problem with newest(1.1.8) "un.rpyc" version.
Reason must be something else like a somehow changed game or a additional file.
First I try with
unrpyc.decompile_rpyc
and if it fails with aobject has no attribute xxxxxx
I try withunrpyc.decompile_rpyc(encoding='utf-8')
(I took care to pass encoding toread_ast_from_file
anddeobfuscate.read_ast
and so on until it reachessafe_loads
)files.zip
scripts.rpyc
is the file that failsscripts_from_game.rpy
is the file that comes with the gamescripts_from_unrpyc.rpy
is the file that unrpyc tried to create fromscripts.rpyc
Here's the
scripts.rpy
that comes with the game: