-
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
Error decompile screens.rpyc from girls loveline #237
Comments
That looks like a proper bug. It's in a pretty hairy part of the code, so I'd appreciate if you could send me the file! Thanks! |
No problem, take it: https://drive.google.com/file/d/1KEt8VJ6RobVRzfFgK_J4eaZZODnJX18I/view?usp=drive_link |
I've found the issue, and implemented an initial fix for it on the dev branch. It'll need to be backported to legacy, but during my testing this file decompiled fine with unrpyc v2 so you can use that for now for this file. |
Wonderful! Thanks for this fix! |
And now it ought to also be fixed on I'm not cutting a release of this for |
Thank you very much! |
I got the following error from this vn: https://joonery.itch.io/girls-loveline
Decompiling screens.rpyc to screens.rpy...
Error while decompiling screens.rpyc:
Traceback (most recent call last):
File "unrpyc.py", line 211, in worker
try_harder=args.try_harder, sl_custom_names=args.sl_custom_names)
File "unrpyc.py", line 148, in decompile_rpyc
decompiler.pprint(out_file, ast, options)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/init.py", line 57, in pprint
Decompiler(out_file, options).dump(ast)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/init.py", line 121, in dump
super(Decompiler, self).dump(ast, skip_indent_until_write=True)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/util.py", line 70, in dump
self.print_nodes(ast)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/util.py", line 161, in print_nodes
self.print_node(node)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/init.py", line 134, in print_node
self.dispatch.get(type(ast), type(self).print_unknown)(self, ast)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/init.py", line 529, in print_init
self.print_nodes(ast.block)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/util.py", line 161, in print_nodes
self.print_node(node)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/init.py", line 134, in print_node
self.dispatch.get(type(ast), type(self).print_unknown)(self, ast)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/init.py", line 841, in print_screen
self.indent_level, self.linenumber, self.skip_indent_until_write
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/sl2decompiler.py", line 41, in pprint
ast, indent_level, linenumber, skip_indent_until_write)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/util.py", line 70, in dump
self.print_nodes(ast)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/util.py", line 161, in print_nodes
self.print_node(node)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/sl2decompiler.py", line 59, in print_node
self.dispatch.get(type(ast), type(self).print_unknown)(self, ast)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/sl2decompiler.py", line 79, in print_screen
self.print_keyword_or_child(line)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/sl2decompiler.py", line 569, in print_keyword_or_child
self.print_node(item[2])
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/sl2decompiler.py", line 59, in print_node
self.dispatch.get(type(ast), type(self).print_unknown)(self, ast)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/sl2decompiler.py", line 292, in print_displayable
self.print_keyword_or_child(line)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/sl2decompiler.py", line 569, in print_keyword_or_child
self.print_node(item[2])
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/sl2decompiler.py", line 59, in print_node
self.dispatch.get(type(ast), type(self).print_unknown)(self, ast)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/sl2decompiler.py", line 292, in print_displayable
self.print_keyword_or_child(line)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/sl2decompiler.py", line 569, in print_keyword_or_child
self.print_node(item[2])
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/sl2decompiler.py", line 59, in print_node
self.dispatch.get(type(ast), type(self).print_unknown)(self, ast)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc_renpy_6-7/decompiler/sl2decompiler.py", line 262, in print_displayable
ast.children[0].location[1] > ast.keyword[-1][1].linenumber) and
AttributeError: 'NoneType' object has no attribute 'linenumber'
Have any ideas? I using unrpyc-legacy 6-7
VN written on Ren'Py SDK 7.4.6
P.S. I can leave a link to GDrive with this file
P.P.S Thank you in advance!
The text was updated successfully, but these errors were encountered: