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
You must be registered to see the links
), decompile RPYC files (using built in
You must be registered to see the links
), 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:
You must be registered to see the links
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
This is for those who get the errors shown below while running UnRen-0.91.bat in Windows 10.
I almost gave up, but finally searched the net again and found the solution, thanks to ItsRKM at
You must be registered to see the links
Add cmd.exe, powershell.exe, and python.exe to "Allow an app through Controlled Folder access" using Windows Security (use Windows search to find Controlled Folder access). Remove them when done using UnRen-0.91.bat.
- Adding cmd.exe solved "The system cannot find the file specified." This error resulted when using the redirect symbol (">") in batch files (even "echo . > test.txt" from the command line) in Windows 10. It has NOTHING to do with not finding a file! UGH!
- Adding powershell.exe solved "Cannot invoke method. Method invocation is supported only on core types in this language mode."
Once I added the first two to "Controlled Folder access", I got the following error (with names changing) during extraction of each file:
"Could not extract file images/img3680.jpg from archive: [Errno 9] Bad file descriptor"
- Adding python.exe solved the "Could not extract file... Bad file descriptor" error.
I hope this doesn't add any other security concerns to Windows 10. Since I suspect it DOES, I will remove these 3 exes from "Controlled Folder access" when UnRen-0.91.bat is done.
Here are my results with the default Windows 10 settings:
Available Options:
1) Extract RPA packages (in game folder)
2) Decompile rpyc files (in game folder)
3) Enable Console and Developer Menu
4) Enable Quick Save and Quick Load
5) Force enable skipping of unseen content
6) Force enable rollback (scroll wheel)
Creating rpatool...
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
The system cannot find the file specified.
Cannot invoke method. Method invocation is supported only on core types in this language mode.
At line:1 char:5
+ & { [IO.File]::WriteAllBytes("(path removed for post) ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: ( : ) [], RuntimeException
+ FullyQualifiedErrorId : MethodInvocationNotSupportedInConstrainedLanguage
Searching for RPA packages
+ Unpacking "archive.rpa" - 1705365698 bytes
C: (path removed for post)\game\..\lib\windows-i686\python.exe: can't open file 'C: (path removed for post)\game\_rpatool.py': [Errno 2] No such file or directory
Cleaning up temporary files...
Could Not Find C: (path removed for post)\game\_rpatool.py.tmp
Could Not Find C: (path removed for post)\game\_rpatool.py
As far my experiences.. you shouldnt have that issue if you dont put stuff in controlled folder paths.
Dont use Program Files or otherwise.. Ideally dont use Desktop... if you got another drive.. D: or other, create a folder and use that, or even go to C root, create a folder yourself, and dump in there. Even with older versions of Unren, iv never had to clear file/folder access to any exe's like that.
As far my experiences.. you shouldnt have that issue if you dont put stuff in controlled folder paths.
Dont use Program Files or otherwise.. Ideally dont use Desktop... if you got another drive.. D: or other, create a folder and use that, or even go to C root, create a folder yourself, and dump in there. Even with older versions of Unren, iv never had to clear file/folder access to any exe's like that.
I put all my games in a Games folder that is not in the controlled folder path (or so I thought). Well, I've re-checked and... there are lots of folders in my users directory listed, but then so is C:\, so I guess the whole damn drive is protected. These were the default settings in my pre-built machine. I don't know if that's the standard, as I'm new(ish) to Windows 10.
Yea most of C: from the start is unless you make a new folder yourself. Anything in side of Users can be locked down. Things may even be fine until a UAC prompt for elevation kicks in and then screws up whatever you were trying to do. Even though its your "own" acct, once you elevate, it considers it a new instance/session and that elevated version of your acct does not necessarily have access to your own user folder tree. Yes.. you technically could turn off UAC prompts, and that would fix some of it, but then opens you up to potential security risks. I usually just end up making my own folder set and usually put everything on a separate drive. Yes that means more manual file work.. but i know it works! . Also in case you ever need to nuke and redo your entire C drive (OS drive) you dont lose your own files mostly. Thats why I either redirected some of the user directory folders, or just manually backed up, certain things to the alt drive.
Yeah, that's more a limitation than a bug.
Fortunately, moving just one rpyc file (I usually go for options.rpyc) to the game folder from whatever folder the dev hid them in is enough for unren/unrpyc to find and decompile all of them.
Hey guys I came across something new - to me - an RPG maker project with just the application file. Any idea how I can extract content from something like this?
Edit: nvm found it - it was an archive - used this tool :
Late answer for this but that's better as never:
Ren'Py is in the process to move to python3 which is then Ren'py version 8.x but the main dev wants still to support for some time the old python2 branch which would be everything up to version 7.5. To distinguish these two branches easily and clearly in the library directory's (../lib/) they got the name prefix "py2-" and "py3-".
On some point this will surely be fixed in some of the tools depending on it.
If Ren'py 8.x releases(python3) i will try and go back to the Unren rewrite i began ~two years ago. This tool-version will then be naturally compatible with every OS with Python support. Which should be most. Admittedly we need then also "unrpyc" in py3 or we will miss decompiling ability.
I will add: Having "unrpyc" with py3 support is important. Before this it will not make much sense to finalize the new UnRen and release it. I mean, for rpa unpacking i have already my own py3 compatible tool written(RpaKit) and the classic well known "RPAtool" is still compatible.
hello so i get this error [Errno13] permission denied and it says it could not extract the files i chose to extract. Any ideas? Tried on multiple games same error appears.
hello so i get this error [Errno13] permission denied and it says it could not extract the files i chose to extract. Any ideas? Tried on multiple games same error appears.