-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggested changes from #146 / Support renpy 7.5.0 #154
Conversation
With these fixes I could unrpyc all files from AMomentOfBliss 2.1 and 2.2 |
The main thing is making sure that pre-7.5.0 still works with these fixes, I haven't had a chance to test yet. |
I'll try some older games that I did without these patches and report back later |
Testing on a set of 3288 rpyc files from various games: So it's not backwards compatible as is... |
On a bigger corpus (26972) of files: current 'master/develop' branch has issues with 47 rpyc files from various renpy 7 games and 110 files from various renpy 8 games ( 580 out of 690 files decompiled) But starting with this branch shows lots of files not decompiling, so it works for everything I have that fails on 'master', but is not backwards compatible. |
For some reason the game 'High School Days' fails with Error is the same |
This might help: #156 (comment) |
Thanks @sigio and @MARLBORO-NEW. Great work! I tested it and so far its mostly error free.
Error while decompiling /home/olli/.xlib/RPG/_TRY_OUT/_test/Raptus_RedStarStudios-pc/game/mapscreens.rpyc:
Traceback (most recent call last):
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 203, in worker
return decompile_rpyc(filename, args.clobber, args.dump, decompile_python=args.decompile_python,
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 167, in decompile_rpyc
ast = read_ast_from_file(in_file)
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 140, in read_ast_from_file
data, stmts = magic.safe_loads(raw_contents, class_factory, {"_ast", "collections"})
File "/home/olli/Code/Git/unrpyc/decompiler/magic.py", line 604, in safe_loads
encoding=encoding, errors=errors).load()
File "/usr/lib/python3.10/pickle.py", line 1213, in load
dispatch[key[0]](self)
File "/usr/lib/python3.10/pickle.py", line 1698, in load_setitems
dict[items[i]] = items[i + 1]
TypeError: 'RevertableDict' object does not support item assignment
Greets |
No description provided.