Tool Ren'Py UnRenGUI, UnRen-forall(v9.4), UnRen-Powershell-forall(v9.4), UnRen-old

5.00 star(s) 3 Votes

professorx10

Active Member
Game Developer
Jul 22, 2018
757
998
278
It needs to be located in the game's main directory (where the game's .EXE file is located), and not in the "game" subdirectory of the game, just to be clear.
I did locate it in the main directory before I tried the game directory. No change at all in the report...although I could copy one for you.

need anything else?
 

theMickey_

Engaged Member
Mar 19, 2020
2,384
3,213
357
I did locate it in the main directory before
Based on this error: checking if game, lib, renpy directories exist... Fail it's has not been in the main directory, or your path does contain unsupported characters (not sure if that has already been fixed). Otherwise it should find those sub-directories.

What's the full path name you're working with?
And what's the name of the game you're trying to unpack?
 
  • Like
Reactions: joelurmel

joelurmel

Engaged Member
Nov 3, 2022
2,742
4,848
397
So it doesn't work because I always get
checking if game, lib, renpy directories exist... Fail
and it doesn't matter if I put it in the game directory or the root.

Just for drill, this is what I see:

Checking for availability of PowerShell... Pass

Enter the path to the game, drag'n'drop it here,
or press Enter if this tool is already in the desired folder.

If drag'n'drop does not work, please copy/paste the path instead:
Checking for updates... An update is available.


09/30/25 UnRen-forall.bat (launcher) version 0.35 and UnRen-current.bat version 9.7.14:
minor bugs fixes and optimizations
More robust mcname change
URLlink for UnRen-link.txt moved to Google Drive
No more colors for Windows 7
The Add entry to registry will now add the script currently running. So i you have only Ren'Py game version >= 8 just add it and you will skip the laucher.

Specific for UnRen-current.bat:
Added multi-lingual support
Some options are grayed out because I haven't done enough testing with unrpa, which allows extraction with a special key
I started putting locks in place to limit usage on Ren'Py >= 8. So if all goes well, this will serve as the basis for the new UnRen-legacy.bat. This will make it easier for me to remove what is no longer necessary in each UnRen.
You can select multiple options from main menu. By default you have the equivalent of option 9 from the old UnReb-forall.bat
You can manage the default execution by downloading UnRen-cfg.zip, extract to where the scripts are and edit to modify MDEFS2 to reflect what you want to be the default action when UnRen-current.bat is launched
After the first execution, the default entry for main menu will be x (Exit).

Do you want to update now? [y/n] (default: y): n
Verification that all files are present...... Pass
Checking if game, lib, renpy directories exist... Fail

[Error] Cannot locate game, lib or renpy directories. Unable to continue.
Are you sure we're in the game's root directory?

Press any key to exit...
--------------------------------
If I accept the latest update I still get:

Downloading the latest version from: ... Pass

Update complete.

Verification that all files are present...... Pass
Checking if game, lib, renpy directories exist... Fail

[Error] Cannot locate game, lib or renpy directories. Unable to continue.
Are you sure we're in the game's root directory?

Press any key to exit...
====================
and this is located in the game directory?
Based on this error: checking if game, lib, renpy directories exist... Fail it's has not been in the main directory, or your path does contain unsupported characters (not sure if that has already been fixed). Otherwise it should find those sub-directories.

What's the full path name you're working with?
And what's the name of the game you're trying to unpack?
If the problem stems from characters such as spaces or () in the tree structure, it will be completely fixed in the next version, which should be released soon.

I am finishing work on the ability to extract RPA archives that have been modified by the dev.
 

Madmartigan9999

New Member
Mar 29, 2019
13
9
126
Hello,

I got an error trying to extract RPA package, using Unren.bat forall(v9.4) (240216).
unrenfile directly in the game directory (the root one, not the root/game one) C:\Games\Interactiv\DenoftheDefiant-4-pc
Using windows 11.
Game is DenoftheDefiant-4-pc (compressed version).

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

Got a similar error with game StarTreckLDandNewCaptain 1.0 (compressed version).

I manage to make it work using the game The-Judas-Ghost-Chapter2-v1.3.29-pc.
I delete the Judas root/game directory to put the Defiant one, unren, then put the unren directory in the defiant one (after deleting the not unren one).

So my guess is something as changed between lib\python3.9 and lib\python3.12.

Hope I helped a bit :)

PS : thank you for this amazing tool !
 

professorx10

Active Member
Game Developer
Jul 22, 2018
757
998
278
Based on this error: checking if game, lib, renpy directories exist... Fail it's has not been in the main directory, or your path does contain unsupported characters (not sure if that has already been fixed). Otherwise it should find those sub-directories.

What's the full path name you're working with?
And what's the name of the game you're trying to unpack?
?? I don't quite understand. There is a space in the full path from the root above the game directory, but not from the game's main directory or below. I've had it work before when you put it in the game directory where there were spaces above. . . I'm pretty sure.
The game is StellarCrossroads and it is done in Ren'py 8.2.3 The game directory is StellarCrossroads-0.90b-pc So is "-" or "." unsupported characters?

I'm working on translating it for the Dev.
 

joelurmel

Engaged Member
Nov 3, 2022
2,742
4,848
397
?? I don't quite understand. There is a space in the full path from the root above the game directory, but not from the game's main directory or below. I've had it work before when you put it in the game directory where there were spaces above. . . I'm pretty sure.
The game is StellarCrossroads and it is done in Ren'py 8.2.3 The game directory is StellarCrossroads-0.90b-pc So is "-" or "." unsupported characters?

I'm working on translating it for the Dev.
The problem comes from the space you have before the game name. The characters . and - are fully supported.
Spaces and () will be supported in the next version.
 
  • Like
Reactions: Walter Victor

joelurmel

Engaged Member
Nov 3, 2022
2,742
4,848
397
Hello,

I got an error trying to extract RPA package, using Unren.bat forall(v9.4) (240216).
unrenfile directly in the game directory (the root one, not the root/game one) C:\Games\Interactiv\DenoftheDefiant-4-pc
Using windows 11.
Game is DenoftheDefiant-4-pc (compressed version).

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

Got a similar error with game StarTreckLDandNewCaptain 1.0 (compressed version).

I manage to make it work using the game The-Judas-Ghost-Chapter2-v1.3.29-pc.
I delete the Judas root/game directory to put the Defiant one, unren, then put the unren directory in the defiant one (after deleting the not unren one).

So my guess is something as changed between lib\python3.9 and lib\python3.12.

Hope I helped a bit :)

PS : thank you for this amazing tool !
Your assumption is correct, and that is why you should use my UnRen-forall from my signature.
Version 9.4 is now obsolete.
 
  • Like
Reactions: Madmartigan9999

professorx10

Active Member
Game Developer
Jul 22, 2018
757
998
278
The problem comes from the space you have before the game name. The characters . and - are fully supported.
Spaces and () will be supported in the next version.
Ok just to check the problem from having a space before the game directory, I just moved teh game and all into the C:\root and tried it again.

I got the exact same problem
Checking for availability of PowerShell... Pass

Enter the path to the game, drag'n'drop it here,
or press Enter if this tool is already in the desired folder.

If drag'n'drop does not work, please copy/paste the path instead:
Checking for updates... No updates found.
Verification that all files are present...... Pass
Checking if game, lib, renpy directories exist... Fail

[Error] Cannot locate game, lib or renpy directories. Unable to continue.
Are you sure we're in the game's root directory?

Press any key to exit...
---------------------
and btw, the game, lib and renpy directories are clearly listed in the game's directory
And there are no () characters in any.

======================================== UPDATE==========================

Ok the error comes from pressing "ENTER" where it asks for the path to the game directory. As I read the instructions you did NOT have to copy / paste the directory to get the batch file to run. Enter would do it if you were in the Game directory.
If I MISUNDERSTOOD the instructions, my error.... BUT if you meant for it to work without cut/paste the game directory it does NOT. It fails every time.
This is what I put in to get it to work.
If drag'n'drop does not work, please copy/paste the path instead: C:\StellarCrossroads-0.90b-pc

PLEASE CORRECT or CLARIFY your instructions. THANKS
 
Last edited:

joelurmel

Engaged Member
Nov 3, 2022
2,742
4,848
397
Ok just to check the problem from having a space before the game directory, I just moved teh game and all into the C:\root and tried it again.

I got the exact same problem
Checking for availability of PowerShell... Pass

Enter the path to the game, drag'n'drop it here,
or press Enter if this tool is already in the desired folder.

If drag'n'drop does not work, please copy/paste the path instead:
Checking for updates... No updates found.
Verification that all files are present...... Pass
Checking if game, lib, renpy directories exist... Fail

[Error] Cannot locate game, lib or renpy directories. Unable to continue.
Are you sure we're in the game's root directory?

Press any key to exit...
---------------------
and btw, the game, lib and renpy directories are clearly listed in the game's directory
And there are no () characters in any.

======================================== UPDATE==========================

Ok the error comes from pressing "ENTER" where it asks for the path to the game directory. As I read the instructions you did NOT have to copy / paste the directory to get the batch file to run. Enter would do it if you were in the Game directory.
If I MISUNDERSTOOD the instructions, my error.... BUT if you meant for it to work without cut/paste the game directory it does NOT. It fails every time.
This is what I put in to get it to work.
If drag'n'drop does not work, please copy/paste the path instead: C:\StellarCrossroads-0.90b-pc

PLEASE CORRECT or CLARIFY your instructions. THANKS
If you put the scripts in C:\StellarCrossroads-0.90b-pc, then pressing Enter is sufficient and there is no need to drag and drop or copy and paste the directory when prompted.

But if you had read the instructions in the main post, you would have seen that the best solution for installation is to put the scripts in C:\Tools\Unren, for example, then use the + option with administrator privileges to add the script launch option to the right-click menu on a game directory.
Then, all you have to do is right-click on the main game directory and select “Launch UnRen-forall.bat.”
 

professorx10

Active Member
Game Developer
Jul 22, 2018
757
998
278
If you put the scripts in C:\StellarCrossroads-0.90b-pc, then pressing Enter is sufficient and there is no need to drag and drop or copy and paste the directory when prompted.
Perhaps you didn't read my UPDATE?

The files WERE in the main game directory which WAS in C:\ and pressing ENTER caused it to FAIL consistently. It finally ONLY worked when I entered the path "C:\StellarCrossroads-0.90b-pc" and then pushed Enter. It REQUIRED the path to not error out. So something is amiss.

On the good side, after I got it to operate, it did function and disassemble the .rpa and .rpyc files which I had not been able to before.
However, I noticed that although used the default to retain the .rpa file afterwards, it did not.
 

joelurmel

Engaged Member
Nov 3, 2022
2,742
4,848
397
Perhaps you didn't read my UPDATE?

The files WERE in the main game directory which WAS in C:\ and pressing ENTER caused it to FAIL consistently. It finally ONLY worked when I entered the path "C:\StellarCrossroads-0.90b-pc" and then pushed Enter. It REQUIRED the path to not error out. So something is amiss.

On the good side, after I got it to operate, it did function and disassemble the .rpa and .rpyc files which I had not been able to before.
However, I noticed that although used the default to retain the .rpa file afterwards, it did not.
You have not read the message about the rpa when you want to stay with it...
It's moved to rpa directory to avoid the duplicate label if rpa archive is poorly archived.

And since you have the “game developer” badge, you should have been able to figure it out yourself by editing the script, or am I missing something...
 

Vodsky

New Member
Dec 27, 2024
7
6
71
Hey,
I'm sorry but I can't figure how to make the script work. I probably missed a step somewhere.
It seems the script cannot write files even though it should.

I'll be grateful for any help on that matter.

First error says: "Failed to download the update"
Second one: "Cannot create detect_renpy_version.py. Cannot continue."

Sorry it's in french.

I tried running it as admin, but then it doesn't even find the correct repo...


Ok sorry I'm a dumbass, I had to disable my AV.
 
Last edited:
  • Like
Reactions: joelurmel

joelurmel

Engaged Member
Nov 3, 2022
2,742
4,848
397
I've made this scripts with for you and to simplify the management of your favorite games.

You have now a multilingual (de, en, es, fr, it, ru) launcher batch (UnRen-forall.bat) Version 0.38
a legacy batch (UnRen-legacy.bat) Version 9.7.4 for Ren'Py <= 7
and a current batch (UnRen-current.bat) Version 9.7.23 for Ren'Py >= 8

The launcher was initially designed to start the correct batch depending on the Ren'Py version .
Then I realized that it would be useful to add options that do not depend on Ren'Py.
As I continued coding, additional ideas led me to add multilingual support and new independent features.

Please read the Installation section, which contains important information.

Current version: on GitHub
Previous version: on GitHub
Old version in case of on Google Drive

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

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

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

Images:
You don't have permission to view the spoiler content. Log in or register now.
Aaaargh... The auto-update does not work properly, you have to do the update manually, sorry Solved

As promised, here is the new version of the UnRen scripts.

GitHub:


12/11/25: My biggest update since the beginning !
UnRen-forall.bat 0.38, UnRen-current.bat 9.7.23 & UnRen-legacy.bat 9.7.4

Common modifications for all scripts:
- Minor bug fixes, like Developer mode and the installation of TextBox mod...
- Code optimization and convergence of the three scripts for common parts.
- Added new code for changing MC name when you can't change it in the game.
(works with MidnightParadise-1.1b-pc-elite and several other tested games)
- New code for extracting text, it now provide your language by default instead of French
- Added full support for spaces and () in the directory tree (very difficult)

UnRen-legacy.bat 9.7.4:
- Is now based from the same code as UnRen-current.bat (provisional situation before final version)

Common modifications for UnRen-current.bat & UnRen-legacy.bat:
- Script authors are now notified internally
- New code for decrypting base64 for all Python scripts
- Moving RPYC decompilation messages out of the loop to improve speed
- Use the download link on F95zone for 0x52_urm to avoid interception by antivirus software
on the original dynamic download.
- Add 3 new Python scripts for the extract RPA fonction
- The 1st to detect the extension name more quickly
- The 2nd to determine whether the header is modified by the developer
- the 3rd to extract modified RPA files (tested with Jason & Lab Rats)
 
Last edited:

dacris69

M, TI
Donor
Nov 20, 2017
2,238
6,384
748
Dont often use these tools but tried now UnRen-Powershell-forall.ps1 on 4 releases from last day, i get these errors

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.
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.

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

joelurmel

Engaged Member
Nov 3, 2022
2,742
4,848
397
Dont often use these tools but tried now UnRen-Powershell-forall.ps1 on 4 releases from last day, i get these errors

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.
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.

All the other unren give
You don't have permission to view the spoiler content. Log in or register now.
UnRen-Powershell-forall.ps1 is obsolete. And for the last msg, you already have the answer...
You have not put the script in the root game
 

Walter Victor

Conversation Conqueror
Dec 27, 2017
6,690
22,255
904
While trying to unpack the RPA files in the game The Interim Domain (v0.99.0) using the latest release of UnRen for All (v9.7.23), I received an Invalid Syntax error on both RPAs. I tried both Legacy (recommended by the bat and Current with the same result.

Here is a copy of the log:

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

Can you tell me what is going on?
 

joelurmel

Engaged Member
Nov 3, 2022
2,742
4,848
397
While trying to unpack the RPA files in the game The Interim Domain (v0.99.0) using the latest release of UnRen for All (v9.7.23), I received an Invalid Syntax error on both RPAs. I tried both Legacy (recommended by the bat and Current with the same result.

Here is a copy of the log:

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

Can you tell me what is going on?
It's my fault, I wrote a script to detect the archive type in Python v3 and forgot about Python v2 support.
You have to edit UnRen-legacy.bat and search detect_archive.b64 or go to line 1321 and replace the echo line by this one

echo IyEvdXNyL2Jpbi9lbnYgcHl0aG9uDQppbXBvcnQgc3lzDQoNCmRlZiBkZXRlY3RfYXJjaGl2ZV90eXBlKHBhdGgpOg0KICAgIHRyeToNCiAgICAgICAgd2l0aCBvcGVuKHBhdGgsICJyYiIpIGFzIGY6DQogICAgICAgICAgICBoZWFkZXIgPSBmLnJlYWQoOCkNCiAgICAgICAgICAgICMgU3RhbmRhcmQgUlBBIGFyY2hpdmVzIHN0YXJ0IHdpdGggIlJQQS0zLjAiIG9yICJSUEEtMi4wIg0KICAgICAgICAgICAgaWYgaGVhZGVyLnN0YXJ0c3dpdGgoYiJSUEEtIik6DQogICAgICAgICAgICAgICAgcmV0dXJuIDAgICMgc3RhbmRhcmQNCiAgICAgICAgICAgIGVsc2U6DQogICAgICAgICAgICAgICAgcmV0dXJuIDEgICMgbW9kaWZpZWQgLyB1bmtub3duDQogICAgZXhjZXB0IEV4Y2VwdGlvbiBhcyBlOg0KICAgICAgICAjIFB5dGhvbiAyIGRvZXNuJ3Qgc3VwcG9ydCBmLXN0cmluZ3MsIHNvIHdlIHVzZSBmb3JtYXQoKQ0KICAgICAgICBzeXMuc3RkZXJyLndyaXRlKCJFcnJvcjoge31cbiIuZm9ybWF0KGUpKQ0KICAgICAgICByZXR1cm4gMSAgIyBieSBkZWZhdWx0LCB3ZSBjb25zaWRlciBtb2RpZmllZA0KDQppZiBfX25hbWVfXyA9PSAiX19tYWluX18iOg0KICAgIGlmIGxlbihzeXMuYXJndikgPCAyOg0KICAgICAgICBwcmludCgiVXNhZ2U6IGRldGVjdF9hcmNoaXZlLnB5IDxhcmNoaXZlX2ZpbGU+IikNCiAgICAgICAgc3lzLmV4aXQoMSkNCg0KICAgIGFyY2hpdmVfZmlsZSA9IHN5cy5hcmd2WzFdDQogICAgcmVzdWx0ID0gZGV0ZWN0X2FyY2hpdmVfdHlwZShhcmNoaXZlX2ZpbGUpDQogICAgc3lzLmV4aXQocmVzdWx0KQ0K

Or you can use the already modified attached.
An update will be made soon, as soon as I have repaired my computer, which has had an SSD problem. Fortunately, I had several backups :cool:.
 

yoyomistro

Engaged Member
Jan 15, 2017
3,194
4,789
445
It's my fault, I wrote a script to detect the archive type in Python v3 and forgot about Python v2 support.
You have to edit UnRen-legacy.bat and search detect_archive.b64 or go to line 1321 and replace the echo line by this one

echo IyEvdXNyL2Jpbi9lbnYgcHl0aG9uDQppbXBvcnQgc3lzDQoNCmRlZiBkZXRlY3RfYXJjaGl2ZV90eXBlKHBhdGgpOg0KICAgIHRyeToNCiAgICAgICAgd2l0aCBvcGVuKHBhdGgsICJyYiIpIGFzIGY6DQogICAgICAgICAgICBoZWFkZXIgPSBmLnJlYWQoOCkNCiAgICAgICAgICAgICMgU3RhbmRhcmQgUlBBIGFyY2hpdmVzIHN0YXJ0IHdpdGggIlJQQS0zLjAiIG9yICJSUEEtMi4wIg0KICAgICAgICAgICAgaWYgaGVhZGVyLnN0YXJ0c3dpdGgoYiJSUEEtIik6DQogICAgICAgICAgICAgICAgcmV0dXJuIDAgICMgc3RhbmRhcmQNCiAgICAgICAgICAgIGVsc2U6DQogICAgICAgICAgICAgICAgcmV0dXJuIDEgICMgbW9kaWZpZWQgLyB1bmtub3duDQogICAgZXhjZXB0IEV4Y2VwdGlvbiBhcyBlOg0KICAgICAgICAjIFB5dGhvbiAyIGRvZXNuJ3Qgc3VwcG9ydCBmLXN0cmluZ3MsIHNvIHdlIHVzZSBmb3JtYXQoKQ0KICAgICAgICBzeXMuc3RkZXJyLndyaXRlKCJFcnJvcjoge31cbiIuZm9ybWF0KGUpKQ0KICAgICAgICByZXR1cm4gMSAgIyBieSBkZWZhdWx0LCB3ZSBjb25zaWRlciBtb2RpZmllZA0KDQppZiBfX25hbWVfXyA9PSAiX19tYWluX18iOg0KICAgIGlmIGxlbihzeXMuYXJndikgPCAyOg0KICAgICAgICBwcmludCgiVXNhZ2U6IGRldGVjdF9hcmNoaXZlLnB5IDxhcmNoaXZlX2ZpbGU+IikNCiAgICAgICAgc3lzLmV4aXQoMSkNCg0KICAgIGFyY2hpdmVfZmlsZSA9IHN5cy5hcmd2WzFdDQogICAgcmVzdWx0ID0gZGV0ZWN0X2FyY2hpdmVfdHlwZShhcmNoaXZlX2ZpbGUpDQogICAgc3lzLmV4aXQocmVzdWx0KQ0K

Or you can use the already modified attached.
An update will be made soon, as soon as I have repaired my computer, which has had an SSD problem. Fortunately, I had several backups :cool:.
Thanks for the update. And you're much smarter than me on the SSD front then, lol.
 
  • Like
Reactions: joelurmel
5.00 star(s) 3 Votes