CensoredUsername / unrpyc

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

Error while using cmd #131

Closed Ruttie2006 closed 2 years ago

Ruttie2006 commented 2 years ago

I'm getting an error when using the tool via command line, I put the un.rypc file next to the other .rypc files. When I run py un.rpyc --help while targeting the dir with the file I get this error:

    x�loads
          ^
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xda in position 1: invalid continuation byte

Could anyone help?

Extra info: Used version: Latest (1.1.6). Python version: -3.10-64 * Command: py un.rpyc --help. Intent: Get the helper for the program.

It appears it already crashes in the first line, leading me to believe something is wrong on my side, but I can't figure out what... Any help would be much appreciated!

madeddy commented 2 years ago

Python version: -3.10-64 *

I could be wrong, but i think such errors are happening if users don't read the instructions careful enough or not at all. See for reference: https://github.com/CensoredUsername/unrpyc#usage

Python 2.7 required! :smirk: Changing this should do it. If not report back and we see.

Good luck. 👋🏻

Ruttie2006 commented 2 years ago

When I install py2.7 and try again (py -2 un.rpyc --help), I get

SyntaxError: Non-ASCII character '\xda' in file un.rpyc on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Dobby233Liu commented 2 years ago

py un.rpyc --help

You dropped a un.rpyc in the game? Then just run the game, it will automatically decompile the scripts.

Or, if you really insist in using cmd, download the normal source files and run unrpyc.py in that.

Ruttie2006 commented 2 years ago

I can't find a unrypc.py anywhere in the releases though... I'd rather use cmd as I can select what files to extract instead of just all of them.

Dobby233Liu commented 2 years ago

I can't find a unrypc.py anywhere in the releases though... I'd rather use cmd as I can select what files to extract instead of just all of them.

You shouldn't even look at the releases. Here's a link to download the source: https://github.com/CensoredUsername/unrpyc/archive/refs/heads/master.zip After extracting everything in it, run the unrpyc.py file with cmd.

Ruttie2006 commented 2 years ago

Ah, thank you for the help 👍

Ruttie2006 commented 2 years ago

Thank you both, it worked!