Tool Ren'Py UnRen.bat v1.0.11d - RPA Extractor, RPYC Decompiler, Console/Developer Menu Enabler

5.00 star(s) 9 Votes

frozenfeet

Well-Known Member
Aug 2, 2019
1,207
1,873
Currently the tool seems to not look for sub-directories for scripts when decompiling.
That keeps happening to me as well. Just unpacked V.i.r.t.u.e.s and it failed to find the scripts which were in game\scripts folder
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,384
I saw wildness today. I usually unpack the game, patches to it, if available. Then unpack the Renpy archives. Then decompile, if required. As a result, I delete the .rpa files and play quietly, like most in our small community. But, today I learned about a new fetish. For a long time I could not understand why the patch did not work in the game My Best Deal. Mom wasn't mom, and the sisters weren't sisters, although when I played six months or so ago, everything was correct, and the incest patch was available. As a result, it turned out to be empty. I began to sin on decompilation, but even the dump came out empty. As a result, I realized that the trouble must be with the archive. Although it is standard and even unpacks, but probably there is some kind of trick in it. In the end, everything turned out to be simpler and at the same time stranger. This is the first case when hidden content checks not for the presence of a variable initiated in a separate patch file, but for the presence of the patch file itself, and for the presence of an archive, I did not expect such pitfalls.
 

Twistty

The Happy Beaver
Donor
Respected User
Former Staff
Sep 9, 2016
4,389
39,286
I saw wildness today. I usually unpack the game, patches to it, if available. Then unpack the Renpy archives. Then decompile, if required. As a result, I delete the .rpa files and play quietly, like most in our small community. But, today I learned about a new fetish. For a long time I could not understand why the patch did not work in the game My Best Deal. Mom wasn't mom, and the sisters weren't sisters, although when I played six months or so ago, everything was correct, and the incest patch was available. As a result, it turned out to be empty. I began to sin on decompilation, but even the dump came out empty. As a result, I realized that the trouble must be with the archive. Although it is standard and even unpacks, but probably there is some kind of trick in it. In the end, everything turned out to be simpler and at the same time stranger. This is the first case when hidden content checks not for the presence of a variable initiated in a separate patch file, but for the presence of the patch file itself, and for the presence of an archive, I did not expect such pitfalls.
"This is the first case when hidden content checks not for the presence of a variable initiated in a separate patch file, but for the presence of the patch file itself, and for the presence of an archive, I did not expect such pitfalls."

Weird not often do you see a check for the .rpa archive file?
Did you try to seach for and patch the .rpy file?
Or creating a "blank" .rpa file (name only)?
 
  • Thinking Face
Reactions: rKnight

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,384
"This is the first case when hidden content checks not for the presence of a variable initiated in a separate patch file, but for the presence of the patch file itself, and for the presence of an archive, I did not expect such pitfalls."

Weird not often do you see a check for the .rpa archive file?
Did you try to seach for and patch the .rpy file?
Or creating a "blank" .rpa file (name only)?
Well, creating an archive is not a problem. The problem is that to do this, you need to open the code and look for what logic was invented there by the next author. There are usually two types of incest patches and the like. 1) an archive with a single script file in which the necessary variable is initialized. 2) the entire forbidden script, along with pictures and other content. And now we have a new view, where the main code checks for the presence of the archive itself, which does not contain anything at all, only an empty script file, absolutely empty. And now I will have to remember that this archive cannot be deleted, which I prefer to do in all cases.
 
  • Like
Reactions: Twistty
Jan 10, 2020
306
190
hey all, sorry to bother your small community, but I'm a complete noob to this. I'm trying to overwrite/adjust some game parameters, read this OP's instructions, downloaded UnRen.bat, n placed it in the directory where the '.exe' file is located for the game, not the "/game" file itself.

so I start the game, press "shift + O", expecting to see the code I've seen in other examples, but instead all I'm getting is a basically empty screen:

help.png

so how/where am I able to look at n edit the actual source code? thanks
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,384
hey all, sorry to bother your small community, but I'm a complete noob to this. I'm trying to overwrite/adjust some game parameters, read this OP's instructions, downloaded UnRen.bat, n placed it in the directory where the '.exe' file is located for the game, not the "/game" file itself.

so I start the game, press "shift + O", expecting to see the code I've seen in other examples, but instead all I'm getting is a basically empty screen:

View attachment 1314965

so how/where am I able to look at n edit the actual source code? thanks
It is necessary not just to place, but to launch and select the appropriate option. After this script works, you start the game and call the console in the usual way.
 

srksrk 68

Forum Fanatic
Modder
Sep 17, 2018
4,439
5,662
hey all, sorry to bother your small community, but I'm a complete noob to this. I'm trying to overwrite/adjust some game parameters, read this OP's instructions, downloaded UnRen.bat, n placed it in the directory where the '.exe' file is located for the game, not the "/game" file itself.

so I start the game, press "shift + O", expecting to see the code I've seen in other examples, but instead all I'm getting is a basically empty screen:

View attachment 1314965

so how/where am I able to look at n edit the actual source code? thanks
You are seeing the Ren'py console window here. You can execute Python and/or Ren'py code here, inspect variable values and more, to see and/or modify the game status. But this thread is not the right place to teach you about this.
 

BiggusDikkus

Member
Jan 5, 2018
403
173
A few years ago I used unren and it worked in both Windows and Linux. Now when I try and use it, I see the flash of the window open and then immediately close. I don't know how to solve it. Please help.
 

fulcrum

Engaged Member
Feb 2, 2018
3,470
2,014
after line 98,
Code:
set "currentdir=%~dp0%"
, i add
Code:
if exist %* set "currentdir=%~dp1%"
to let me drop files on unren-0.91.bat without having to copy it into every game directory when i want to use it.

before the code block for the selections i add
Code:
echo   %currentdir%
to display which directory it detected in case the path parser fucks up.

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

mirian

Member
Nov 18, 2018
251
77
good night a friend tried to teach me to open rpa images but i can't. I click copy in Unrenbat but when I right click on the game directory, the paste option doesn't appear. I use Winrar, or it has to be with another decompressor. please help me
 

WhyNot

Newbie
Apr 22, 2017
29
30
A few years ago I used unren and it worked in both Windows and Linux. Now when I try and use it, I see the flash of the window open and then immediately close. I don't know how to solve it. Please help.
Might be that there are non-alpha-numeric characters in the path (such as parens or brackets). Those mess it up for me. So, I always rename folders to have just letters, digits, space, underline, and period.
 

fulcrum

Engaged Member
Feb 2, 2018
3,470
2,014
good night a friend tried to teach me to open rpa images but i can't. I click copy in Unrenbat but when I right click on the game directory, the paste option doesn't appear. I use Winrar, or it has to be with another decompressor. please help me
hold ctrl, press c on keyboard while unren.bat is highlighted. switch to the game's base folder, so you see the folder "game" in the directory, hold ctrl and press v. this is called copy-paste
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,384
can anyone tell me how t o use this for four elements trainer
First , there is an instruction in the header. Secondly, it depends on what you want to do with the game. This tool is mainly used for unpacking archives and decompiling code, if there are no sources, and you are a super programmer-cheater who urgently needs to look at any game mechanics. It also open the console and blocked standard renpy functions.;)
 

Wonko_the_Sane*

Member
Game Developer
Jan 21, 2021
274
772
can anyone tell me how t o use this for four elements trainer
Drop the batch file in your FET folder and run it. I just tried it and had no issues unpacking or decompiling any of that game. It's a batch file, though, so it only works in Windows (or DOS or OS/2, but nobody uses those anymore.)
 
5.00 star(s) 9 Votes