Tool Ren'Py UnRen.bat v1.0.10b - RPA Extractor, RPYC Decompiler, Console/Developer Menu Enabler By Sam

  • Thread starter Deleted member 39699
  • Start date
  • Replies 0
  • Views 985
D

Deleted member 39699

Unconfirmed
You must be registered to see attachments


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 rpatool), decompile RPYC files (using built in unrpyc), enable the console and developer menu for Ren'Py games and more. The intent of this tool is to remain a simple, no-nonsense utility for accessing Ren'Py game content, current and past.

No dependencies, no internet connection required. You can right click->edit to see the source! Works on Windows 7, 8 and 10, but XP and Vista can be supported too (see "Known Issues" section.)

No dependencies, no internet connection required. You can right click->edit to see the source! Works on Windows 7, 8 and 10, but XP and Vista can be supported too (see "Known Issues" section.)

1. Download the latest UnRen-<version number>.zip from this page and unzip to obtain the corresponding .bat file.
2. Copy UnRen-<version number>.bat to either the game's root directory (i.e., where the game's .exe is located) or its "game/" subdirectory
3. Double click on UnRen-<version number>.bat to execute
4. Select the option you require

Both RPA and RPYC files will be extracted/decompiled to the same path as the original files.
  • Having non-ASCII characters in your folder path may cause issues
  • XP and Vista users might need this PowerShell update from Microsoft:
  • The Github repo is currently out of date - we may bring that back for public contributions, but please feel free to add code or ideas in this thread for the time being.
v1.0.10b
- Fixed white space issue with file names - Thanks to Nemo56
v1.0.10
- Basic detection of missing/incomplete Python packages for the game being analyzed
- Attempt to use Python 2 instead of Python 3 if the latter was shipped incomplete

v1.0.9
- Fixed determination of Python level when there are only 32-bit versions available

v1.0.8
- Improved directory management for equivalent use in main or game directories
- Bolstered unrpa error handling
- Added a backup unrpa scheme for some finicky game archives
- Bug fixing

v1.0.7
- Default action changed to not overwrite existing .rpy files when decompiling (let us know if you'd prefer that option-able)
- New visual Summaries of unpack and decompile actions
- Added compatibility for different levels of Python 2
- Additional regression testing and bug-fixing for reported games + others

v1.0.6
- Updated UNRPYC libraries for Python 3 special cases

v1.0.5
- Changed subdirectory traversal logic related to how decompiling is invoked (i.e., it's sensitive code and relative paths offer best results)

v1.0.4
- Enhanced compatibility with Ren'Py 7.5.x games
- Should work equally in either main or game\ folders
- Some visual enhancements to decompiling progress display

v1.0.3
- Added explicit path for powershell.exe
- Fixed file cleanup bug

v1.0.2
- Added support for Python 2 installs which use py2-* library folder names

v1.0.1
- Bugfix for Python3 rpyc decompiling.

v1.0.0
- Compatible with Ren'Py v8.* games and/or Python 3
- Options 8 and 9 changed to 7 and 8, respectively
- Not entering a valid option number at the menu prompt (i.e., 1-8) will exit the utility
- Happier version number

v0.91
Compatible with Ren'Py games that have either 32-bit or 64-bit support libraries
Usability tweaks to menu text and layout
Added option 8 to (only) update all game console/preferences
After running any option(s), hitting Enter from the main menu will now stay on the menu
Incorporates mods by user VepsrP

v0.9-dev
Temporary workaround for RenPy 7.2 syntax changes, awaiting proper fix from unrpyc upstream

v0.8
Updated unrpyc
Updated rpatool
Created a build script for easy updates in future

v0.7
RPYC decompiling is now handled within UnRen
Improved the quicksave/quickload code
Added default keymap for rollback
Fixed noblock for RenPy v7
Fixed back to menu bug

v0.6
Fixed the v0.5 regression when handling normal brackets
Made the "enable scrollback" feature more versatile by setting "hard_rollback_limit" and "rollback_length" to 256, and overwriting renpy.block_rollback()
When finishing a task, it now asks you if you want to perform another

v0.5
Fixed issue with square brackets in path
Fixed "Enable Rollback" feature being inaccessible from menu
Fixed issue where "All" option could halt early if un.rpyc file already existed
Adjusted length of base64 strings, to reduce impact of batch path length limitations
Removed unnecessary usage of powershell, increasing UnRen speed significantly

v0.4
Added "Quick Save" and "Quick Load" hotkey functionality (Thanks @Bloo & @TCMS)
Added "Enable Skip" feature, to force enable skipping of unseen text
Added "Enable Rollback" feature, to force enable scrollwheel rollback
Switched the method used to enable console and developer mode, to better support older renpy games
Tweaked the numbering of the options to group similar functions together
Added error if folder path contains square brackets, temporary workaround
Cleaned up the codebase a bit

v0.3
Set PYTHONPATH for rpatool

v0.2
Correctly handle special characters in directory name

v0.1
Initial release
 

Attachments

  • UnRen-1.0.10b.rar
    166.7 KB · Views: 86
  • Like
Reactions: 1 users
Back
Top Bottom