- Dec 13, 2017
- 1,387
- 1,385
New version of the tool. Support for not recompiled code with different versions of Revertable objects.
Did you successfully decompile all rpyc from Raptus ?New version of the tool. Support for not recompiled code with different versions of Revertable objects.
intro.rpyc
with error: TypeError: 'RevertableDict' object does not support item assignment
mapscreens.rpyc
with error: AttributeError: 'SLScreen' object has no attribute 'location'
So I did decompile the already recompiled files for the last time. Then I removed the crutches, considering them unnecessary. The problem is that this attribute exists, but it is actually a byte-type object itself. In fact, to decompile them, we just need an older engine. I'm not sure if I should return the crutches... I'll see what I can do.Did you successfully decompile all rpyc from Raptus ?
I tried using your newest base64 (v12) still can't decompile some of that game rpyc, e.g. :
intro.rpyc
with error:TypeError: 'RevertableDict' object does not support item assignment
mapscreens.rpyc
with error:AttributeError: 'SLScreen' object has no attribute 'location'
You don't have permission to view the spoiler content. Log in or register now.
Ah right! ... I pulled fromSo I did decompile the already recompiled files for the last time. Then I removed the crutches, considering them unnecessary. The problem is that this attribute exists, but it is actually a byte-type object itself. In fact, to decompile them, we just need an older engine. I'm not sure if I should return the crutches... I'll see what I can do.
--clobber
option it still giving error. Is this expected? No, Revertable is calmly processed by me, I just checked, but I'm still dealing with location.Ah right! ... I pulled fromYou must be registered to see the linksand it successfully decompile all those rpyc that the dev didn't recompile on the newer engine.
But, when I try the--clobber
option it still giving error. Is this expected?
You don't have permission to view the spoiler content. Log in or register now.
I uploaded the change to the dev branch. try it.Ah right! ... I pulled fromYou must be registered to see the linksand it successfully decompile all those rpyc that the dev didn't recompile on the newer engine.
But, when I try the--clobber
option it still giving error. Is this expected?
You don't have permission to view the spoiler content. Log in or register now.
Yes it is successfully decompile all rpyc withoutI uploaded the change to the dev branch. try it.
--clobber
option--clobber
option still give error on 6 files (intro.rpyc, d1.rpyc to d5.rpyc) while the other files successfully decompiled:Strange. VepsrP uses mostly the same code fixes i do, and i got this game in tests multiple times decompiled without any problem. Maybe some leftover code or mistake somewhere.Did you successfully decompile all rpyc from Raptus ?
I tried using your newest base64 (v12) still can't decompile some of that game rpyc...
It's strange, but I don't have any problems. Even more strange is that the error is not except, although the except is written.Yes it is successfully decompile all rpyc without--clobber
option
but with--clobber
option still give error on 6 files (intro.rpyc, d1.rpyc to d5.rpyc) while the other files successfully decompiled:
You don't have permission to view the spoiler content. Log in or register now.
Tried using yourStrange. VepsrP uses mostly the same code fixes i do, and i got this game in tests multiple times decompiled without any problem. Maybe some leftover code or mistake somewhere.
You can also compare with one ofYou must be registered to see the links. I'm curious if it runs in your sys.
You have some different code in here and its for longer as the last days there in think:It's strange, but I don't have any problems. Even more strange is that the error is not except, although the except is written.
raw_contents = chunks
if(PY2):
if("YVANeusEX" in globals()):
raw_contents = YVANeusEX.encrypt(bytearray(raw_contents[1]), YVANeusEX.cipherkey, True) + YVANeusEX.encrypt(bytearray(raw_contents[2]), YVANeusEX.cipherkey, True)
else:
raw_contents = raw_contents[1].decode('zlib')
else:
raw_contents = codecs.decode(raw_contents[1], encoding='zlib')
[1]
with my or the orginal code. I think you changed the location from "chunks" this for this IVANex stuff. Maybe this is the reason?class_factory
in revertable_switch()
does this...? You remember maybe, i do in my code the instances of class_factory
beforehand.You big, bad clobberer!... successfully --clobber all rpyc with game's own python
Again, I repeat, I have no mistakes, if there are none, it is difficult for me to say something. At the expense of chunks, I just shifted the work from one variable to another, but the data is taken only those that are needed (1 position). Again, the error appears in the revertable_switch function, where the error exception is written (the same as yours and mine), so it is not clear why the error was not exception with my code.You have some different code in here and its for longer as the last days there in think:
Compare the placing of thePython:raw_contents = chunks if(PY2): if("YVANeusEX" in globals()): raw_contents = YVANeusEX.encrypt(bytearray(raw_contents[1]), YVANeusEX.cipherkey, True) + YVANeusEX.encrypt(bytearray(raw_contents[2]), YVANeusEX.cipherkey, True) else: raw_contents = raw_contents[1].decode('zlib') else: raw_contents = codecs.decode(raw_contents[1], encoding='zlib')
[1]
with my or the orginal code. I think you changed the location from "chunks" this for this IVANex stuff. Maybe this is the reason?
Or maybe the re-instantiating ofclass_factory
inrevertable_switch()
does this...? You remember maybe, i do in my code the instances ofclass_factory
beforehand.
I think i understand now. If you do not have the errors you cannot debug them, right. But thats also a info. If its in your system runs it must have something todo with their system setup/config i think. Maybe a path problem again or the OS version even. Or type of shell? Do they use Win CMD/powershell/Win terminal ?Again, I repeat, I have no mistakes, if there are none, it is difficult for me to say something. ...
Well, the fact that I have no errors is normal. What surprises me most is that the error is handled by a python handler, and not excepted in the code, although the line number matches, which in theory means that the code is used unchanged. It remains only to figure out why the error was not excepted.I think i understand now. If you do not have the errors you cannot debug them, right. But thats also a info. If its in your system runs it must have something todo with their system setup/config i think. Maybe a path problem again or the OS version even. Or type of shell? Do they use Win CMD/powershell/Win terminal ?
$ python3 /home/olli/Code/Git/unrpyc/unrpyc.py --clobber -T transout /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week3_saturday.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week2_sunday.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/renpy/screens.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week1_sunday.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/tl/None/common.rpymc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/phone.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/renpy/gui.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/contacts.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/messages.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/script.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/replay.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/patch.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/gallery.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/chicksaw.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/ui_screens.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/personality_ai.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/achievements.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/minigames.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/0_util.rpyc...
Error while decompiling /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/renpy/screens.rpyc:
Traceback (most recent call last):
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 216, in worker
return extract_translations(filename, args.language)
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 205, in extract_translations
ast = read_ast_from_file(in_file)
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 160, in read_ast_from_file
data, stmts = revertable_switch(raw_contents)
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 129, in revertable_switch
data, stmts = magic.safe_loads(raw_dat, cls_factory_74, {
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 1681, in load_appends
append = list_obj.append
AttributeError: 'RevertableList' object has no attribute 'append'
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/characters.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/styles.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/renpy/options.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week3_data.rpyc...
Error while decompiling /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week3_data.rpyc:
Traceback (most recent call last):
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 216, in worker
return extract_translations(filename, args.language)
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 205, in extract_translations
ast = read_ast_from_file(in_file)
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 160, in read_ast_from_file
data, stmts = revertable_switch(raw_contents)
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 129, in revertable_switch
data, stmts = magic.safe_loads(raw_dat, cls_factory_74, {
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 1681, in load_appends
append = list_obj.append
AttributeError: 'RevertableList' object has no attribute 'append'
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/0_gamestate.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/relationships.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week2_data.rpyc...
Error while decompiling /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week2_data.rpyc:
Traceback (most recent call last):
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 216, in worker
return extract_translations(filename, args.language)
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 205, in extract_translations
ast = read_ast_from_file(in_file)
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 160, in read_ast_from_file
data, stmts = revertable_switch(raw_contents)
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 129, in revertable_switch
data, stmts = magic.safe_loads(raw_dat, cls_factory_74, {
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 1681, in load_appends
append = list_obj.append
AttributeError: 'RevertableList' object has no attribute 'append'
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/traits.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/drawer.rpyc...
Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week1_data.rpyc...
Error while decompiling /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week1_data.rpyc:
Traceback (most recent call last):
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 216, in worker
return extract_translations(filename, args.language)
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 205, in extract_translations
ast = read_ast_from_file(in_file)
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 160, in read_ast_from_file
data, stmts = revertable_switch(raw_contents)
File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 129, in revertable_switch
data, stmts = magic.safe_loads(raw_dat, cls_factory_74, {
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 1681, in load_appends
append = list_obj.append
AttributeError: 'RevertableList' object has no attribute 'append'
Writing translations to transout...
Decompilation of 25 files successful, but decompilation of 4 files failed
option "-T transout"
With full path it works. But why does in this case the revertable error? HUH?I'll download the game and take a look. With Raptus, everything went fine for me, except for one extra variable, removing which everything worked.Fuuuuuuuck! Something isn't right with this revertable shit.
I use the compressed version and did DL it just for testing because you have it in then thread here as a problem-kid. And look what it does. I thought this problem is beyond us.
Bash:$ python3 /home/olli/Code/Git/unrpyc/unrpyc.py --clobber -T transout /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/ Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week3_saturday.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week2_sunday.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/renpy/screens.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week1_sunday.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/tl/None/common.rpymc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/phone.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/renpy/gui.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/contacts.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/messages.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/script.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/replay.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/patch.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/gallery.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/chicksaw.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/ui_screens.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/personality_ai.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/achievements.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/minigames.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/0_util.rpyc... Error while decompiling /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/renpy/screens.rpyc: Traceback (most recent call last): File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 216, in worker return extract_translations(filename, args.language) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 205, in extract_translations ast = read_ast_from_file(in_file) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 160, in read_ast_from_file data, stmts = revertable_switch(raw_contents) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 129, in revertable_switch data, stmts = magic.safe_loads(raw_dat, cls_factory_74, { 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 1681, in load_appends append = list_obj.append AttributeError: 'RevertableList' object has no attribute 'append' Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/characters.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/styles.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/renpy/options.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week3_data.rpyc... Error while decompiling /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week3_data.rpyc: Traceback (most recent call last): File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 216, in worker return extract_translations(filename, args.language) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 205, in extract_translations ast = read_ast_from_file(in_file) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 160, in read_ast_from_file data, stmts = revertable_switch(raw_contents) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 129, in revertable_switch data, stmts = magic.safe_loads(raw_dat, cls_factory_74, { 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 1681, in load_appends append = list_obj.append AttributeError: 'RevertableList' object has no attribute 'append' Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/0_gamestate.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/relationships.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week2_data.rpyc... Error while decompiling /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week2_data.rpyc: Traceback (most recent call last): File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 216, in worker return extract_translations(filename, args.language) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 205, in extract_translations ast = read_ast_from_file(in_file) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 160, in read_ast_from_file data, stmts = revertable_switch(raw_contents) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 129, in revertable_switch data, stmts = magic.safe_loads(raw_dat, cls_factory_74, { 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 1681, in load_appends append = list_obj.append AttributeError: 'RevertableList' object has no attribute 'append' Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/traits.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/drawer.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week1_data.rpyc... Error while decompiling /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week1_data.rpyc: Traceback (most recent call last): File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 216, in worker return extract_translations(filename, args.language) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 205, in extract_translations ast = read_ast_from_file(in_file) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 160, in read_ast_from_file data, stmts = revertable_switch(raw_contents) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 129, in revertable_switch data, stmts = magic.safe_loads(raw_dat, cls_factory_74, { 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 1681, in load_appends append = list_obj.append AttributeError: 'RevertableList' object has no attribute 'append' Writing translations to transout... Decompilation of 25 files successful, but decompilation of 4 files failed
EDIT: Back, everything back. Problem comes fromAgain...option "-T transout"
With full path it works. But why does in this case the revertable error? HUH?
Actually, I have no problems, even with the key -TFuuuuuuuck! Something isn't right with this revertable shit.
I use the compressed version and did DL it just for testing because you have it in then thread here as a problem-kid. And look what it does. I thought this problem is beyond us.
Bash:$ python3 /home/olli/Code/Git/unrpyc/unrpyc.py --clobber -T transout /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/ Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week3_saturday.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week2_sunday.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/renpy/screens.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week1_sunday.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/tl/None/common.rpymc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/phone.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/renpy/gui.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/contacts.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/messages.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/script.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/replay.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/patch.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/gallery.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/chicksaw.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/ui_screens.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/personality_ai.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/achievements.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/minigames.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/0_util.rpyc... Error while decompiling /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/renpy/screens.rpyc: Traceback (most recent call last): File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 216, in worker return extract_translations(filename, args.language) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 205, in extract_translations ast = read_ast_from_file(in_file) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 160, in read_ast_from_file data, stmts = revertable_switch(raw_contents) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 129, in revertable_switch data, stmts = magic.safe_loads(raw_dat, cls_factory_74, { 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 1681, in load_appends append = list_obj.append AttributeError: 'RevertableList' object has no attribute 'append' Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/characters.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/styles.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/renpy/options.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week3_data.rpyc... Error while decompiling /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week3_data.rpyc: Traceback (most recent call last): File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 216, in worker return extract_translations(filename, args.language) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 205, in extract_translations ast = read_ast_from_file(in_file) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 160, in read_ast_from_file data, stmts = revertable_switch(raw_contents) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 129, in revertable_switch data, stmts = magic.safe_loads(raw_dat, cls_factory_74, { 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 1681, in load_appends append = list_obj.append AttributeError: 'RevertableList' object has no attribute 'append' Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/0_gamestate.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/relationships.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week2_data.rpyc... Error while decompiling /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week2_data.rpyc: Traceback (most recent call last): File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 216, in worker return extract_translations(filename, args.language) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 205, in extract_translations ast = read_ast_from_file(in_file) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 160, in read_ast_from_file data, stmts = revertable_switch(raw_contents) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 129, in revertable_switch data, stmts = magic.safe_loads(raw_dat, cls_factory_74, { 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 1681, in load_appends append = list_obj.append AttributeError: 'RevertableList' object has no attribute 'append' Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/functionality/traits.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/drawer.rpyc... Extracting translations from /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week1_data.rpyc... Error while decompiling /home/olli/.xlib/RPG/_TRY_OUT/_test/RoveringToSussex-0.1.1-pc/game/script/week1_data.rpyc: Traceback (most recent call last): File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 216, in worker return extract_translations(filename, args.language) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 205, in extract_translations ast = read_ast_from_file(in_file) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 160, in read_ast_from_file data, stmts = revertable_switch(raw_contents) File "/home/olli/Code/Git/unrpyc/unrpyc.py", line 129, in revertable_switch data, stmts = magic.safe_loads(raw_dat, cls_factory_74, { 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 1681, in load_appends append = list_obj.append AttributeError: 'RevertableList' object has no attribute 'append' Writing translations to transout... Decompilation of 25 files successful, but decompilation of 4 files failed
EDIT: Back, everything back. Problem comes fromAgain...option "-T transout"
With full path it works. But why does in this case the revertable error? HUH?
I'll download it and tryVepsrP have you tried extracting and decompiling Straitened Times? It is from Renpy v7.3.5.
So I tried with your unren-old.bat (converted your base64 and with -O) to my bash version but didn't succeed...
I'm just wondering if its fine on windows or not...
def revertable_switch(raw_dat):
"""Switches in a way between two instances of cls_factory. If a error from possible old code appears, it uses renpy.python instead of the new renpy.revertable module name."""
try:
_, stmts = magic.safe_loads(raw_dat, cls_factory_74, {
"_ast", "collections"})
except TypeError as err:
if 'Revertable' in err.args[0]:
_, stmts = magic.safe_loads(raw_dat, cls_factory_75, {
"_ast", "collections"})
return stmts