Code Monkey home page Code Monkey logo

Comments (11)

madeddy avatar madeddy commented on August 9, 2024

Hey.

  • Please try and format the error cite up there so it's readable.
  • Which unrpyc version did you use? For such a old game, it could be required to apply a way older unrpyc as v1.2.0

from unrpyc.

KennedyMcMillan avatar KennedyMcMillan commented on August 9, 2024

Hey.

* _Please_ try and format the error cite up there so it's readable.

* Which unrpyc version did you use? For such a old game, it could be required to apply a way older unrpyc as v1.2.0

I'm used "legacy (ren'py 6/7)" branch from repo. I've formatted the error text for easy reading

from unrpyc.

madeddy avatar madeddy commented on August 9, 2024

I've formatted the error text for easy reading

Cool, thanks!

I'm used "legacy (ren'py 6/7)" branch from repo.

Thats v1.3.0 and could be a bit too "modern". Try with v1.0.15
Edit: No, this version does also not work. v0.4 also not. Could be a so far unknown bug... Lets wait what @CensoredUsername says as he knows the code way better.

from unrpyc.

KennedyMcMillan avatar KennedyMcMillan commented on August 9, 2024

I've formatted the error text for easy reading

Cool, thanks!

I'm used "legacy (ren'py 6/7)" branch from repo.

Thats v1.3.0 and could be a bit too "modern". Try with v1.0.15

Unfortunately it doesn't work, i get the same error:

~/Desktop/Ren'Py_SDK's/unrpyc-legacy(2019): python2 unrpyc.py options.rpyc
Decompiling options.rpyc to options.rpy...
Error while decompiling options.rpyc:
Traceback (most recent call last):
File "unrpyc.py", line 146, in worker
no_pyexpr=args.no_pyexpr, comparable=args.comparable, translator=translator, init_offset=args.init_offset)
File "unrpyc.py", line 119, in decompile_rpyc
translator=translator, init_offset=init_offset)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc-legacy(2019)/decompiler/init.py", line 46, in pprint
decompile_python=decompile_python, translator=translator).dump(ast, indent_level, init_offset)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc-legacy(2019)/decompiler/init.py", line 89, in dump
super(Decompiler, self).dump(ast, indent_level, skip_indent_until_write=True)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc-legacy(2019)/decompiler/util.py", line 29, in dump
self.print_nodes(ast)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc-legacy(2019)/decompiler/util.py", line 120, in print_nodes
self.print_node(node)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc-legacy(2019)/decompiler/init.py", line 106, in print_node
self.dispatch.get(type(ast), type(self).print_unknown)(self, ast)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc-legacy(2019)/decompiler/init.py", line 590, in print_init
self.print_nodes(ast.block)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc-legacy(2019)/decompiler/util.py", line 120, in print_nodes
self.print_node(node)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc-legacy(2019)/decompiler/init.py", line 106, in print_node
self.dispatch.get(type(ast), type(self).print_unknown)(self, ast)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc-legacy(2019)/decompiler/init.py", line 841, in print_screen
self.printlock)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc-legacy(2019)/decompiler/screendecompiler.py", line 39, in pprint
ast, indent_level, linenumber, skip_indent_until_write)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc-legacy(2019)/decompiler/screendecompiler.py", line 63, in dump
self.print_screen(ast)
File "/home/christopher/Desktop/Ren'Py_SDK's/unrpyc-legacy(2019)/decompiler/screendecompiler.py", line 116, in print_screen
value = getattr(ast, key)
AttributeError: 'ScreenLangScreen' object has no attribute 'variant'

from unrpyc.

KennedyMcMillan avatar KennedyMcMillan commented on August 9, 2024

Lets wait what @CensoredUsername says as he knows the code way better.

Thanks!

from unrpyc.

CensoredUsername avatar CensoredUsername commented on August 9, 2024

@madeddy legacy should support every ren'py 6, there should be no reason to use an older version.

@KennedyMcMillan Seems you hit a previously unknown issue that only affects 6.11! Screen language was originally introduced in 6.11, and the property that the code is expecting to find was introduced in 6.12. Should be a reasonably easy fix, I'll let you know when it's done.

from unrpyc.

KennedyMcMillan avatar KennedyMcMillan commented on August 9, 2024

@madeddy legacy should support every ren'py 6, there should be no reason to use an older version.

@KennedyMcMillan Seems you hit a previously unknown issue that only affects 6.11! Screen language was originally introduced in 6.11, and the property that the code is expecting to find was introduced in 6.12. Should be a reasonably easy fix, I'll let you know when it's done.

Thank you very much!

from unrpyc.

madeddy avatar madeddy commented on August 9, 2024

@madeddy legacy should support every ren'py 6, there should be no reason to use an older version.

Ah, ok. Didn't know it reaches this far back. Anyway a interesting find after so much time, huh.

from unrpyc.

CensoredUsername avatar CensoredUsername commented on August 9, 2024

@KennedyMcMillan the fix should be out, could you confirm it works?

from unrpyc.

KennedyMcMillan avatar KennedyMcMillan commented on August 9, 2024

@KennedyMcMillan the fix should be out, could you confirm it works?

Yes, the file decompiles successfully. Thank you very much!

from unrpyc.

CensoredUsername avatar CensoredUsername commented on August 9, 2024

Perfect.

from unrpyc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.