CensoredUsername / unrpyc

A ren'py script decompiler
Other
824 stars 149 forks source link

New un.rpy(c) and bytecode.rpyb not working #135

Closed Gouvernathor closed 2 years ago

Gouvernathor commented 2 years ago

When putting the un.rpy and un.rpyc files in the game directory, and the bytecode.rpyb file in the cache directory, this happens. Tried it in an almost-blank project, but I don't think that's the issue.

I'm sorry, but an uncaught exception occurred.

While parsing C:\Users\Armise\Desktop\Visual Novels Workspace\Empire of the Tests/game/un.rpy.
  File "game/un.rpy", line 2, in <module>
    init python early hide:
  File "game/un.rpy", line 32, in _execute_python_hide
    magic = pickle.loads(base64.b64decode('Y3BpY2tsZQpsb2FkcwooY3psaWIKZGVjb21wcmVzcwooVB4iAAB42t09a3PcyHF2EjsVpvItH1OVPTkKA

...I'm not leaving it all in...

NnxsAIQ12V8NBUQ4moPFdsXCCeF2mCALXv/Fbfm6CD9AIhP2EyR7r/+SHn/EY/M4bl/ST5FM/wfA6FFLdFJ0Ui4='))
TypeError: 'module' object is not callable

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "renpy/bootstrap.py", line 331, in bootstrap
    renpy.main.main()
  File "renpy/main.py", line 492, in main
    renpy.game.script.load_script() # sets renpy.game.script.
  File "renpy/script.py", line 286, in load_script
    self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode)
  File "renpy/script.py", line 798, in load_appropriate_file
    self.finish_load(stmts, initcode, filename=lastfn)
  File "renpy/script.py", line 488, in finish_load
    node.early_execute()
  File "renpy/ast.py", line 985, in early_execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "renpy/python.py", line 2245, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/un.rpy", line 2, in <module>
    init python early hide:
  File "game/un.rpy", line 32, in _execute_python_hide
    magic = pickle.loads(base64.b64decode('Y3BpY2tsZQpsb2FkcwooY3psaWIKZGVjb21wcmVzcwooVB4iAAB42t09a3PcyHF2EjsVpvItH1OVPTk

...

AIQ12V8NBUQ4moPFdsXCCeF2mCALXv/Fbfm6CD9AIhP2EyR7r/+SHn/EY/M4bl/ST5FM/wfA6FFLdFJ0Ui4='))
  File "/home/tom/ab/nightly-build/tmp/install.linux-x86_64/lib/python2.7/pickle.py", line 1387, in loads
TypeError: 'module' object is not callable

Windows-10-10.0.19041
Ren'Py 7.5.0.187n
Empire of the Tests 1.0
Thu Dec 16 02:01:18 2021
Gouvernathor commented 2 years ago

Actually the bug doesn't trigger when using the un.* files without the bytecode.rpyb, so I probably misread the instructions.