• The migration has been completed, search cache has finished rebuilding, and search is now reenabled. For more information, click here.

[Tool] [Ren'Py] UnRen.bat v0.8 - RPA Extractor, RPYC Decompiler, Console/Developer Menu Enabler

5.00 star(s) 4 Votes

Sam

Sysadmin
Staff member
Administrator
Dec 22, 2016
1,387
8,245
unren08.png

I had originally created this script for myself, but I've decided to clean it up a bit and release it for everyone. You can extract RPA archives (using built in ), decompile RPYC files (using built in ), enable the console and developer menu for Ren'Py games and more.

No dependencies, no internet connection required. You can right click->edit to see the source. Works on Windows 7, 8 and 10. XP and Vista users might need this PowerShell update from Microsoft:

Instructions:
1. Copy UnRen.bat to either the game's root directory (where the exe is) or the /game/ folder
2. Double click on UnRen.bat to execute
3. Select the option you require

Both RPA and RPYC files will be extracted/decompiled to the same path as the original files.

Known Issues:
- Having non-ASCII characters in your folder path may cause issues

Let me know if you encounter any issues or bugs.

Contributions:
If you'd like to contribute any changes or improvements, check out the new .

You don't have permission to view the spoiler content. Log in or register now.
You don't have permission to view the spoiler content. Log in or register now.

v0.9-dev is a temporary workaround for unrpyc and RenPy 7.2 syntax changes, whilst we await a proper fix from unrpyc upstream. I've tested it and haven't found any issues, but consider v0.9-dev to be unstable.
 

Attachments

Last edited:

Krull

Retired
GFX Designer
Donor
Respected User
Feb 1, 2017
1,756
13,952
Awesome , can always use more tech-ish stuff like this.
Thanks!
 

gue5t

Active Member
Sep 11, 2016
590
988
Can you make a version where the external files are not incorporated in the bat file but the path to them is set?

P.S. Embedding executable content in bat files is bad because it can't be updated by the end user and it's easy to replace it and send the file as new/updated version in order to infect unsuspecting user systems.
 
  • Like
Reactions: rafae khan

Sam

Sysadmin
Staff member
Administrator
Dec 22, 2016
1,387
8,245
Can you make a version where the external files are not incorporated in the bat file but the path to them is set?

P.S. Embedding executable content in bat files is bad because it can't be updated by the end user and it's easy to replace it and send the file as new/updated version in order to infect unsuspecting user systems.
That is the same for any executable, any exe can have malicious code in it or be easily binded with another. At least with a .bat script the source is viewable and the base64 encoded strings can be easily decoded. As with anything; if you don't trust the source, don't run it.

This script is intended to be a simple 1 click option, having multiple files, users having to copy different things, having to update the libraries by themselves etc doesn't fit in with the tools intended scope.
 

gue5t

Active Member
Sep 11, 2016
590
988
My suggestion was to have 2 versions: one with everything embedded and one where the external files are linked to by the user.

P.S. The problem arrives when people start trusting you and someone else gives them a link to a modified version of the file.
 

Sam

Sysadmin
Staff member
Administrator
Dec 22, 2016
1,387
8,245
My suggestion was to have 2 versions: one with everything embedded and one where the external files are linked to by the user.

P.S. The problem arrives when people start trusting you and someone else gives them a link to a modified version of the file.
In v0.3 I can add a variable to define your own path, and if it isn't set it can use the built in version, best of both worlds.

I understand what you meant, however I'm saying that isn't unique to a .bat script, anyone could do that with any exe that is shared anywhere on the internet. It is the users own fault if they decide to trust a random 3rd party.
 
  • Like
Reactions: gue5t

LeopoldWilliamReynolds

Active Member
Aug 5, 2016
416
729
So what is supposed to be the end result of all of this? I'm looking in my /game/ folder after running the .bat and there doesn't seem to be any change other than the addition of an un.rpyc file. I'm also seeing an ImportError: no module named site on the app when I run it, is that something that should not be happening?
 

Sam

Sysadmin
Staff member
Administrator
Dec 22, 2016
1,387
8,245
So what is supposed to be the end result of all of this? I'm looking in my /game/ folder after running the .bat and there doesn't seem to be any change other than the addition of an un.rpyc file. I'm also seeing an ImportError: no module named site on the app when I run it, is that something that should not be happening?
Just updated to v0.3, which sets PYTHONPATH which should fix your issue, link in OP :)

I'll add the optional configuration gue5t requested in 0.4.
 

Lt. Aldo Raine

Sharing Is Caring
Donor
Former Staff
Mar 24, 2017
839
4,230
Just updated to v0.3, which sets PYTHONPATH which should fix your issue, link in OP :)

I'll add the optional configuration gue5t requested in 0.4.
You have completely changed all my plans I had today just by this tools creation. You've made a Happy Perv today......his friends not so much.
 

Sam

Sysadmin
Staff member
Administrator
Dec 22, 2016
1,387
8,245
What is the purpose of Extracting RPA packages and decompile RPYC file?
All the images used in renpy games are usually packaged in an RPA file, by extracting them you'll be able to easily see all images contained in the game.

Sometimes a developer will only distribute the RPYC files, which are compiled RPY files, meaning they cannot be viewed in a text editor. Decompiling them will allow you to view the games source code.
 

yolostar

New Member
May 2, 2017
6
0
All the images used in renpy games are usually packaged in an RPA file, by extracting them you'll be able to easily see all images contained in the game.

Sometimes a developer will only distribute the RPYC files, which are compiled RPY files, meaning they cannot be viewed in a text editor. Decompiling them will allow you to view the games source code.
K thnx for the info.
 
5.00 star(s) 4 Votes