CensoredUsername / unrpyc

A ren'py script decompiler
Other
852 stars 154 forks source link

Support the rpyc2 format #45

Closed CensoredUsername closed 8 years ago

CensoredUsername commented 9 years ago

Starting from ren'py 6.99.5, the .rpyc save format has changed significantly. This format can be distinguished by a new header in the files.

Total of things that have been altered:

New header: RENPY RPC2. New archive format. The header is followed by a table of slot/offset/length pointing to locations in the file. These locations contain the compressed pickled AST. Way the AST is pickled. Now uses new instead of setstate. I'm not sure if this is an issue. Currently the format is used in a simple way. slot 1 contains the old-fashioned rpyc data, slot 2 contains the same data with static transformations (like translation) applied.

ffleader1 commented 8 years ago

image I got this error. Could it be due to newer ren'py version?

CensoredUsername commented 8 years ago

This might very well be the case. The changes necessary to decompile this format are still on the dev branch, you could test it with this if you want.

ffleader1 commented 8 years ago

Steamgirl on lemmasoft forum helped me. By deleting the first 46 characters, the decompiler works!

CensoredUsername commented 8 years ago

It should work fine now, closing this.