Closed renkerenke closed 2 years ago
I can confirm the bug report, that usually indicates some class definition made it into the rpyc file that unrpyc doesn't know about, often through the use of custom AST nodes. I'll investigate.
Looks like some very low-level ren'py AST nodes gained a py
attribute that we didn't know about. It's fixed now.
Looks like some very low-level ren'py AST nodes gained a attribute that we did
看起来一些非常低级的 ren'py AST 节点获得了一个我们不知道的属性。现已修复。
py
Error while decompiling C:\Users\25378\Desktop\D\unrpyc-master\work\screens.rpyc: Traceback (most recent call last): File "C:\Users\25378\Desktop\D\unrpyc-master\unrpyc.py", line 202, in worker tag_outside_block=args.tag_outside_block, init_offset=args.init_offset, try_harder=args.try_harder) File "C:\Users\25378\Desktop\D\unrpyc-master\unrpyc.py", line 165, in decompile_rpyc ast = read_ast_from_file(in_file) File "C:\Users\25378\Desktop\D\unrpyc-master\unrpyc.py", line 138, in read_ast_from_file data, stmts = magic.safe_loads(raw_contents, class_factory, {"_ast", "collections"}) File "C:\Users\25378\Desktop\D\unrpyc-master\decompiler\magic.py", line 599, in safe_loads encoding=encoding, errors=errors).load() File "C:\Python27\lib\pickle.py", line 864, in load dispatchkey File "C:\Python27\lib\pickle.py", line 1139, in load_reduce value = func(*args) File "C:\Users\25378\Desktop\D\unrpyc-master\decompiler\magic.py", line 113, in new raise FakeUnpicklingError("{0} was instantiated with unexpected arguments {1}, {2}".format(cls, args, kwargs)) FakeUnpicklingError: <class 'set'> was instantiated with unexpected arguments ([],), {}
你好,我在反编译时出现了这两个问题,这两个问题有办法解决吗?
@llw12138 this issue is closed already, and this does not seem related directly. I also don't speak Chinese so I'm having a hard time figuring out what you want.
Dark Magic 0.15.5 cannot be decompiled anymore, 0.15.0 worked.
I tried it with unrpyc 0.1.6 and 0.1.7, in the case of the latter additionally with --try-harder and un.rpyc deployed in the games/ folder.
Output of a normal run:
I don't know enough to decide if this is out-of-scope (some newish obfuscating technique) or a "real" unrpyc issue. options.rpyc.zip