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

5.00 star(s) 9 Votes

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,384
Ah. This must a diff to py2 behavior i guess. "data" must give a different type in original.
No, it is exactly py3 that works as I described. :HideThePain:
Yeah. "CensoredUsername" did in a talk with me once put it like this: magic.py is named like this for a reason.:oops:
IF you have in this section a error it could be from _ast or the unpickler. Perhaps even something the py3 port missed...

I would advice to get all the changed code stuff you have there first running with some standard renpy .rpyc files before your try files of modified games like Forbidden Fruit. Its easier i think.
I tested on other games, no errors, everything works like a clock, the problem is just with these files.:unsure:
 

Knarran

Newbie
Jul 10, 2019
22
34
sorry
i can´t convert .rpyc files in .rpy files in this game

https://f95zone.to/threads/winds-of-the-destiny-v0-6-0-golden-novels.50229/

I´ve tried everything

somebody can help me please

thank you
I also ran into an error with this game. Did you have the same message about the "incorrect header check"?

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

I have no idea how to solve this, as it's above my knowledge.
 

Madeddy

Active Member
Dec 17, 2017
838
487
These files have just a changed "rpyc" file header and UnRen runs the decompiler app in a "basic/standard" mode which works for most games. You need to do this "manual" if you want the script files in plain text format.

paℓØsℓi☢s Knarran
I you're able to use the decompiler tool unrpyc (needs py 2.7 installed) you can decompile the files with the use of the --try-harder option. That means basically the tool trys some deobfuscation methods to unpack it anyway.
Like in this case... where the game developer did choose to play hide & seek or something, for some unknown reason. :rolleyes:
 
  • Like
Reactions: yoyomistro
Oct 4, 2020
435
873
I have tried with all versions of UnRen
With Un.rpyc
with Bytecode
with everything and I have not succeeded

for the option you mention of --try-harder I don't have the necessary knowledge so I asked for your help

a greeting
 
Last edited:
  • Like
Reactions: 乃คяdaK

Madeddy

Active Member
Dec 17, 2017
838
487
...
for the option you mention of --try-harder I don't have the necessary knowledge so I asked for your help
The --try-harder option is for unrpyc and to use in a terminal just like python2 unrpyc.py --try-harder /path/to/your/porngame/WOTD/game

Diddle dum... i unpacked and decompiled them for test reasons anyway, so i attached them for you folks. Here on my linux sys they worked without glitch if correctly placed in the games dir. Just remove the script.rpa from your "winds-of-the-destiny" copy and paste/insert/overwrite with the content of the zip file.

Have fun. :)
 

Knarran

Newbie
Jul 10, 2019
22
34
The --try-harder option is for unrpyc and to use in a terminal just like python2 unrpyc.py --try-harder /path/to/your/porngame/WOTD/game

Diddle dum... i unpacked and decompiled them for test reasons anyway, so i attached them for you folks. Here on my linux sys they worked without glitch if correctly placed in the games dir. Just remove the script.rpa from your "winds-of-the-destiny" copy and paste/insert/overwrite with the content of the zip file.

Have fun. :)
I just installed Python 2.7 and was going to give it a try. I'm not very familiar with commandline stuff, but I am willing to try to learn. I appreciate you posting the file.

Thank you.

EDIT: Okay, it took me a while to figure out the full command that I needed to get it to run in that particular folder, but it worked. Thanks again Madeddy for pointing me in the right direction.
 
Last edited:

Boldano

Member
Nov 16, 2020
377
488
Sorry if this question is obvious or has already been answered, but I'm completely new to looking at renpy files and I don't have the vocabulary yet to find the answer myself.

Is there a way to know which unpacked files came from which rpa files? I only wanted to edit a script patch I downloaded for a game, but there were two other rpa files in the game's folder already, and I unpacked all of them along with the patch I wanted.
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,384
Sorry if this question is obvious or has already been answered, but I'm completely new to looking at renpy files and I don't have the vocabulary yet to find the answer myself.

Is there a way to know which unpacked files came from which rpa files? I only wanted to edit a script patch I downloaded for a game, but there were two other rpa files in the game's folder already, and I unpacked all of them along with the patch I wanted.
No, there is no such possibility, only if by the name of the archive (image, music, scripts), but if you have several archives with scripts, you can make such a feint with ears: you delete all the archives except the necessary one and after unpacking you look at the time of creation or modification. Either you unpack the game in a new folder, and then again delete the unnecessary archives, then use the tool and you only have the necessary files.
 

malkass

Newbie
Jun 14, 2018
26
25
hi all

decompiling university of problems v0.4 rpyc files causes some issues. unren.bat v0.91 shuts down when option to decompile is picked, v0.8 does run but throws "ImportError: No module namend decompiler". one ot these - dont recall which i used - did work for the game's v0.3 however i believe there was a change in ren'py version to 7.4.3.1414 from game v0.3.5 on, if ive understood the information that i gained form a quick glance in the game's thread correctly.

ive downloaded unrpyc to try if the issue lies there. unfortunately im too stupid to follow the instructions for injection method correctly - or it doesnt work for the aforementioned and another game i had lying around on my drive. i don't have python 2.7 installed, also as i have very limited knowledge and am a rather lazy ass - id have to read up how to use the library method / understand how the command line tool usage would work here specifically - and the information gained would be minor for now, so ive decided to not delve further into it.

however i find the behavior of both unren versions rather interesting - ive not yet encountered it misbehaving in this way - so maybe someone would like to look into it.

edit: tried VepsrP's version, as there appearantly there is an issue with files located in subfolders for v0.91. its throwing the same importerror as v0.8

edit 2: edited in ren'py version used
 
Last edited:

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,384
hi all

decompiling university of problems v0.4 rpyc files causes some issues. unren.bat v0.91 shuts down when option to decompile is picked, v0.8 does run but throws "ImportError: No module namend decompiler". one ot these - dont recall which i used - did work for the game's v0.3 however i believe there was a change in ren'py version to 7.4.3.1414 from game v0.3.5 on, if ive understood the information that i gained form a quick glance in the game's thread correctly.
Well, I solved that problem. And also added the ability to do decompilation with deobfuscation(separate from the regular version). But so far only in the development branch. I will release the master version tomorrow, because repacking the code is still a pain in the ass, and the time is later. :HideThePain:
 

mpa71

Member
Dec 18, 2017
488
7,003
Hey great tool, but does its able to only extract one .rpa file instead of the whole folder?
 

Meushi

Well-Known Member
Aug 4, 2017
1,146
12,748
Hey great tool, but does its able to only extract one .rpa file instead of the whole folder?
No, but there are some workarounds:
  • Either Delete or Move all the RPAs you don't want to extract somewhere else, then when you run UnRen it'll only process the ones you left behind.
NB: Moving is the fastest solution imo, but you can also achieve the same thing by changing the extension of the RPAs you don't want to process.​
  • Use a different command line tool like or , both of which have options to unpack a single RPA file.
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,384
Here's the fix for the blocked import. Just as promised, I made a separate option for decompilation with deobfuscation, if the usual option does not work. As always, I checked for SS from dark cookies, everything works like clockwork.
 

malkass

Newbie
Jun 14, 2018
26
25
Here's the fix for the blocked import. Just as promised, I made a separate option for decompilation with deobfuscation, if the usual option does not work. As always, I checked for SS from dark cookies, everything works like clockwork.
cool stuff! interestingly enough option 2 worked as well this time around. you didnt change anything there, just added a separate
option or did you tweak option 2 as well?
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,384
cool stuff! interestingly enough option 2 worked as well this time around. you didnt change anything there, just added a separate
option or did you tweak option 2 as well?
A separate option is for another game solution. In most cases, deobfuscation is not necessary, so I decided to make it a separate option. And for the import error, I worked with a python file, you will not see this change.
 

malkass

Newbie
Jun 14, 2018
26
25
A separate option is for another game solution. In most cases, deobfuscation is not necessary, so I decided to make it a separate option. And for the import error, I worked with a python file, you will not see this change.
ah i understand so two seperate things. thought the error was related to the obfuscation. seems like sloppy reading on my part if i read the announcement properly its all being said.
 

Madeddy

Active Member
Dec 17, 2017
838
487
v0.8 does run but throws "ImportError: No module namend decompiler". one ot these - dont recall which i used - did work for the game's v0.3 however i believe there was a change in ren'py version to 7.4.3.1414 from game v0.3.5 on, if ive understood the information that i gained form a quick glance in the game's thread correctly.
That's nothing new - maybe someone could put a warning for this in the opener to avoid old UnRen.

Pre-v0.91 UnRen uses internal the old unrpyc version which is incompatible with RenPy versions after v7.1.? So decompiling is a hard NO with old UnRen and a maybe with v0.91 - if the games dev did not fuck around on the RPA or RPYC formats.

For manipulated RPYC we have the deobfuscate option of unrpyc which "VepsrP" made recently available in another modded UnRen variant and for modified RPA unpacking we have my tool RpaKit which i have most of the time up to date.
:coffee: Greets
 
Last edited:

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,384
That's nothing new - maybe someone could put a warning for this in the opener to aviod old UnRen.

Pre 0.91 UnRen uses internal the old unrpyc version which is incompatible with RenPy versions after v7.1.? So decompiling is a hard NO with old UnRen and a maybe with v0.91 - if the games dev did not fuck around on the RPA or RPYC formats.

For manipulated RPYC we have the deobfuscate option of unrpyc which "Vespr" made recently available in a modded UnRen and for modified RPA unpacking i have my RpaKit tool most of the time up to date.
:coffee: Greets
No, even my newest version wasn't available there. Just blocking implicit import from the script folder. I had to write the path in sys.path.
 
  • Thinking Face
Reactions: Madeddy
5.00 star(s) 9 Votes