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

5.00 star(s) 3 Votes
Jul 17, 2020
406
282
Which RenPy version does this game use? Did you get errors while it decompiled other files of this game ?
Code:
(8, 0, 3)
and it was like 99% successful decompile except for the one file that didnt decompile "customgui.rpyc"

edit
unless dev had a 0 byte file called customgui.rpy that he made compiled with the game release then he went and deleted all the rpy's leaving only rpyc's and customgui is actually unused?
 
Last edited:

moskyx

Forum Fanatic
Jun 17, 2019
4,177
13,783
Yup, it's an unused file. That game's .rpa only contains the pics, the scripts are placed as .rpy
 

Madeddy

Active Member
Dec 17, 2017
838
487
...
unless dev had a 0 byte file called customgui.rpy that he made compiled with the game release then he went and deleted all the rpy's leaving only rpyc's and customgui is actually unused?
Yup, it's an unused file. That game's .rpa only contains the pics, the scripts are placed as .rpy
Bash:
olli@tty2*blue $ python3 /home/olli/Code/Git/unrpyc/unrpyc.py --try-harder ~/Downloads/customgui.rpyc
Decompiling /home/olli/Downloads/customgui.rpyc to /home/olli/Downloads/customgui.rpy...
Attempting to deobfuscate file:
strategy extract_slot_rpyc success
strategy extract_slot_legacy failed: Legacy format did not contain a zlib blob
strategy extract_slot_headerscan success
strategy extract_slot_zlibscan failed: Zlibscan did not find enough chunks
performed a round of decrypt_zlib
Decompilation of 1 script file successful.
This gives us a 90Bytes file with content:
Code:
return

  # Decompiled by unrpyc_v1.2.0-alpha: https://github.com/CensoredUsername/unrpyc
The "return" command be some standard thing he(unrpyc) spits out if nothing else is there and the other line at end is a unrpyc "final" info line which isn't originally in the file. A 0 byte file like you both essentially said, could be right.
 

Mefisto_Manna

Newbie
Oct 3, 2017
28
7
Again, the developer of IWH has changed everything and Unren is not working again. Anyone who has a solution? I'll prize him with smiles and chocolate.
 

Madeddy

Active Member
Dec 17, 2017
838
487
Again, the developer of IWH has changed everything and Unren is not working again.
The information content of your message is practically useless.
  1. I don't know every abbreviation of the universe or all current games on F95 so i could guess what the fuck IWH means.
  2. Unren has different functionality and you didn't state what not works.
  3. Neither did you mentions stuff like
    • the used Unren version,
    • RenPy version of the game,
    • game version(We could guess the last one - too bad i have no idea what game),
    • what you exactly did
    • and what did then happen(error message, behavior etc.)
I am not Trelawney with her glass orb. Really.
 
  • Haha
Reactions: "CJ"
Jul 17, 2020
406
282
The information content of your message is practically useless.
  1. I don't know every abbreviation of the universe or all current games on F95 so i could guess what the fuck IWH means.
  2. Unren has different functionality and you didn't state what not works.
  3. Neither did you mentions stuff like
    • the used Unren version,
    • RenPy version of the game,
    • game version(We could guess the last one - too bad i have no idea what game),
    • what you exactly did
    • and what did then happen(error message, behavior etc.)
I am not Trelawney with her glass orb. Really.
my guess is indecent wife hana? that was updated ~11 hrs ago
 

Mefisto_Manna

Newbie
Oct 3, 2017
28
7
The information content of your message is practically useless.
  1. I don't know every abbreviation of the universe or all current games on F95 so i could guess what the fuck IWH means.
  2. Unren has different functionality and you didn't state what not works.
  3. Neither did you mentions stuff like
    • the used Unren version,
    • RenPy version of the game,
    • game version(We could guess the last one - too bad i have no idea what game),
    • what you exactly did
    • and what did then happen(error message, behavior etc.)
I am not Trelawney with her glass orb. Really.
1. Indecent Wife Hana

2. Extract RPA Packages

3. List of informations
  • UnRen-forallv8.4
  • I don't know which version of Renpy it is
  • Indecent Wife Hana 0.20.2 public
  • I was trying to extract RPA Packages (command 1) and see images and other stuff
  • This is what I get when trying the command 1: Immagine2.png
I hope these informations will be usefull
 
  • Like
Reactions: Klanz

Madeddy

Active Member
Dec 17, 2017
838
487
my guess is indecent wife hana? that was updated ~11 hrs ago
I looked also in the updates but couldn't make the connection to this game. Not my area this one.
I don't know which version of Renpy it is
You find it in the file "script_version.txt" inside directory ".../the_game_name/game/"
...I hope these informations will be usefull
Indeed. Very good post and info! Thanks, i take a look. We will see what i can make of it. :)
Edit: The dev didn't really change much. Just another RPA header manipulation.
Bash:
$ python3 rpakit.py -e ~/RPG/_test/Indecent-Wife-Hana-0.20.2-public-pc/game/
RpaKit: >>  5 RPA files to process:
/home/olli/.xlib/RPG/_test/Indecent-Wife-Hana-0.20.2-public-pc/game/audio.rpa
/home/olli/.xlib/RPG/_test/Indecent-Wife-Hana-0.20.2-public-pc/game/fonts.rpa
/home/olli/.xlib/RPG/_test/Indecent-Wife-Hana-0.20.2-public-pc/game/images.rpa
/home/olli/.xlib/RPG/_test/Indecent-Wife-Hana-0.20.2-public-pc/game/scripts.rpa
/home/olli/.xlib/RPG/_test/Indecent-Wife-Hana-0.20.2-public-pc/game/videos.rpa
RpaKit: >> RpaKit found 5 potential archives.
Traceback (most recent call last):
File "/home/olli/Code/rpakit.py", line 660, in <module>
main(parse_args())
File "/home/olli/Code/rpakit.py", line 656, in main
rkm.rk_control()
File "/home/olli/Code/rpakit.py", line 568, in rk_control
self.init_depot()
File "/home/olli/Code/rpakit.py", line 496, in init_depot
self.guess_version()
File "/home/olli/Code/rpakit.py", line 421, in guess_version
raise NoRpaOrUnknownWarning(self.depot, self._header)
File "/home/olli/Code/rpakit.py", line 72, in __init__
f"custom type.\nArchive: {self.dep} with header: > {self._header}")
AttributeError: 'NoRpaOrUnknownWarning' object has no attribute '_header'
I cannot/dont want to work on the "differnet" UnRen variants because they are not written by me, so i don't touch it and i am also on linux. If you're able to run python3 scripts you can try my own rpa-unpacker. I modified it for IWH 0.20.

Example command line:
$ python3 rpakit_special_iwh0.20.py -e path/to_your/games/Indecent-Wife-Hana-0.20.2-public-pc/game/
Edit2: replaced attached file with version without control print output

Updated attachment: rpakit_0.41.3_alpha_iwh 09.April 2023
 
Last edited:
  • Like
Reactions: Tacito

Tacito

Forum Fanatic
Jul 15, 2017
5,511
46,011
I cannot/dont want to work on the "differnet" UnRen variants because they are not written by me, so i don't touch it and i am also on linux. If you're able to run python3 scripts you can try my own rpa-unpacker. I modified it for IWH 0.20.
In Windows 11 I have this error
Traceback (most recent call last):
File "rpakit.py", line 23, in <module>
from colorama import init
ModuleNotFoundError: No module named 'colorama'

If I comment that lines in .py , I have this
# if sys.platform.startswith('win32'):
# from colorama import init
# init(autoreset=True)

PS C:\rpakit> python3 rpakit.py -e G:/project/Indecent/game/
RpaKit: >> 5 RPA files to process:
G:\project\Indecent\game\audio.rpa
G:\project\Indecent\game\fonts.rpa
G:\project\Indecent\game\images.rpa
G:\project\Indecent\game\scripts.rpa
G:\project\Indecent\game\videos.rpa
RpaKit: >> RpaKit found 5 potential archives.
Traceback (most recent call last):
File "rpakit.py", line 667, in <module>
main(parse_args())
File "rpakit.py", line 663, in main
rkm.rk_control()
File "rpakit.py", line 575, in rk_control
self.init_depot()
File "rpakit.py", line 514, in init_depot
self.collect_register()
File "rpakit.py", line 371, in collect_register
self._reg = pickle.loads(zlib.decompress(opfl.read()), encoding='bytes')
ValueError: unsupported pickle protocol: 5

Thanks ;)
 

Madeddy

Active Member
Dec 17, 2017
838
487
ModuleNotFoundError: No module named 'colorama'
:giggle: Oh yeah. Sorry.
I used a old, mostly stable and still working version of my unpacker for the IWH mod and windows output colors where also never tested. You did it right. Alternatively you can simply install colorama with "pip" or use the newer windows terminal app which includes color support. In the end colors are just a luxus extra.
ValueError: unsupported pickle protocol: 5
I dont get this in my Kubuntu.
I guess they(dev) force in your game the usage of the highest protocol and you're using a Python before python 3.8(start of pickle protocol 5), right? If yes, simply upgrade it and this should do the trick. If not get back here with this and we see.

p.s. I updated the tool in the post above. Have fun!
Greets
 
Last edited:
  • Like
Reactions: Tacito

Tacito

Forum Fanatic
Jul 15, 2017
5,511
46,011
I guess they(dev) force in your game the usage of the highest protocol and your'e using a Python before python 3.8, right? If yes, simply upgrade it and this should do the trick. If not get back here with this and we see.
Updated to 3.11
ok.jpg

Thanks :)
 
  • Hey there
Reactions: Madeddy

Daba

Member
Jan 22, 2018
284
239
I used UnRen-forall.bat on Wife Trainer and used first option (extract RPA packages).
Program successfully extracted images.rpa file after some time, but question is where? Can't find them anywhere in game folders.
Can anyone please tell me where does program puts extracted images?
 

Madeddy

Active Member
Dec 17, 2017
838
487
Can anyone please tell me where does program puts extracted images?
This should be in place with unren, so the files must be alongside the RPA files. Compare the game folder before/after unpacking them(You could use two copies of the game for this...).
 
  • Like
Reactions: Daba

oaiki

Well-Known Member
Mar 19, 2020
1,290
2,404
You don't have permission to view the spoiler content. Log in or register now.
MindSociety
8, 0, 3
Win 7 x32

How to fix it?
I've seen this happen sometimes, usually when the AV has clobbered the game because it barfed on old Python libraries.

two options
  1. copy the python libs from another compatible game, versions matter so look in the zip to find out which.
  2. if you have Python installed on your system edit the script to use that.
Ideally the unren script should check if python is installed on the system if it can't find it in the game directories, but that opens up problems with detecting Python versions and changes to its modules and renaming its functions and stuff
 
  • Like
Reactions: sanmal

sanmal

Member
Jul 30, 2017
488
263
:geek: Please read:

RenPy does with version 8.x not support anymore 32 bit OS like Windows, Linux... Sorry, but you're hopeless out of date.
And? He stopped supporting old hardware with x32 since version 7.4, when he switched to OpenGL 2.0.
I'm just trying to unpack rpa, but the old version of Unren is outdated, and apparently there is no one to make a normal new one.
 

Madeddy

Active Member
Dec 17, 2017
838
487
And? ... the old version of Unren is outdated ...
No. You do not understand(No offence). I try to explain:
The Unren of this thread, which you're using, is up to date for current RenPy versions up to 8.0.3 and works. Problem is, it detects your windows variant and try's to find the corresponding python directory - 32 Bit - which isn't there with 8.0.3. Excerpt from the Unren batch file:
Code:
if exist "lib\py3-windows-x86_64\python.exe" (
    if not "%PROCESSOR_ARCHITECTURE%"=="x86" (
        set "pythondir=%cd%\lib\py3-windows-x86_64\"
    )
    if exist "lib\py3-windows-i686\python.exe" (
        set "pythondir=%cd%\lib\py3-windows-i686\"
    )
) else if exist "lib\py3-windows-i686\python.exe" (
    set "pythondir=%cd%\lib\py3-windows-i686\"
)

if not exist "%pythondir%" (
    echo    ! Error: Cannot locate python directory, unable to continue.
    echo             Are you sure we're in the game's root directory?
    echo.
    pause>nul|set/p=.            Press any key to exit...
    exit
)
I do not know if you understand the code part, but it means: Both checked conditional sets are not true in your case, so the %pythondir% variable isn't set and you get the error on the bottom. You can not use it with your Win version.

If you just want to unpack RPA, you can try a separate unpacker tool like my own or one of the others like unrpa or rpatool.
You will need installed python3.9 or better and the ability to execute a python script.
 
Last edited:

sanmal

Member
Jul 30, 2017
488
263
No. You do not understand(No offence). I try to explain:
The Unren of this thread, which you're using, is up to date for current RenPy versions up to 8.0.3 and works. Problem is, it detects your windows variant and try's to find the corresponding python directory - 32 Bit - which isn't there with 8.0.3.
Yes, you are right.
Until about spring 2022, I used the old versions of Unren and had no problems.
I throw your Unren into the game parent folder, which contains the libdir with python. I always thought it was enough.
If you just want to unpack RPA, you can try a separate unpacker tool like my own or one of the others like unrpa or rpatool.
I haven't played with all this for a very long time and I don't want to go back. Now there is neither desire nor opportunity. Now I need a simple utility for 1-2 clicks.
 
5.00 star(s) 3 Votes