CREATE YOUR AI CUM SLUT ON CANDY.AI TRY FOR FREE
x

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

5.00 star(s) 3 Votes

-CookieMonster666-

Message Maven
Nov 20, 2018
12,024
17,826
seems the latest unren-forall can't de-compile hard to love (HardtoLove-0.061) rpyc files
best way to describe it is it seems to cause unren process to terminate.
Yeah, that's basically the same issue I reported with another game (Lust Academy). I haven't seen an update for any progress on that, though. I'm guessing someone will get to it when they have time, but it might take awhile.
 
  • Like
Reactions: Twistty

gnadudu

Well-Known Member
Aug 31, 2018
1,895
2,800
Hmm, had no issues decompiling Lust Academy Season 3 3.1.1d or Hard To Love Ep 5 v0.061 with Unren-forall v8.9:
la.png
htl.png
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,385
Yeah, that's basically the same issue I reported with another game (Lust Academy). I haven't seen an update for any progress on that, though. I'm guessing someone will get to it when they have time, but it might take awhile.
seems the latest unren-forall can't de-compile hard to love (HardtoLove-0.061) rpyc files
best way to describe it is it seems to cause unren process to terminate.
-CookieMonster666-, I'm sorry, I lost your problem while I was solving others. As gnadudu said, there are no problems with decompiling both games. To understand the problem you have, I suggest first running the command console, then transferring the script file to it and running it this way, and then trying to decompile the scripts, then the console with the error will remain on the screen and you can find out exactly what the problem is.
 

trauts

Active Member
Aug 12, 2018
741
567
-CookieMonster666-, I'm sorry, I lost your problem while I was solving others. As gnadudu said, there are no problems with decompiling both games. To understand the problem you have, I suggest first running the command console, then transferring the script file to it and running it this way, and then trying to decompile the scripts, then the console with the error will remain on the screen and you can find out exactly what the problem is.
I've figured out the problem (for my issue), I had added (S2) at the end of the main directory (HardtoLove-0.061(S2)).
The thing is, unren-forall was able to extract rpa without any issues, it was when decompliling it just terminated.
In any case, all good. thanks for looking into it.
 

-CookieMonster666-

Message Maven
Nov 20, 2018
12,024
17,826
Hmm, had no issues decompiling Lust Academy Season 3 3.1.1d or Hard To Love Ep 5 v0.061 with Unren-forall v8.9:
You don't have permission to view the spoiler content. Log in or register now.
-CookieMonster666-, I'm sorry, I lost your problem while I was solving others. As gnadudu said, there are no problems with decompiling both games. To understand the problem you have, I suggest first running the command console, then transferring the script file to it and running it this way, and then trying to decompile the scripts, then the console with the error will remain on the screen and you can find out exactly what the problem is.
Ah, yes. It looks like the problem is what trauts mentions above: if you have parentheses in the directory path anywhere, it crashes the decompiler. Odd, since the RPA extractor works just fine with parentheses. I would have thought that either parentheses are a problem or they are not; having them only sometimes a problem was unexpected. (I also didn't know that parentheses were considered irregular, unusual, or prohibited characters in a directory name. I have been using them for years now to indicate a version number of a game so I know whether I've caught up to current content or not.)
 

Walter Victor

Conversation Conqueror
Dec 27, 2017
6,076
20,521
Ah, yes. It looks like the problem is what trauts mentions above: if you have parentheses in the directory path anywhere, it crashes the decompiler. Odd, since the RPA extractor works just fine with parentheses. I would have thought that either parentheses are a problem or they are not; having them only sometimes a problem was unexpected. (I also didn't know that parentheses were considered irregular, unusual, or prohibited characters in a directory name. I have been using them for years now to indicate a version number of a game so I know whether I've caught up to current content or not.)
I doubt that parentheses are considered irregular by Windows, since Windows generates them if you specify a duplicate folder name.
 
  • Thinking Face
Reactions: -CookieMonster666-

-CookieMonster666-

Message Maven
Nov 20, 2018
12,024
17,826
I doubt that parentheses are considered irregular by Windows, since Windows generates them if you specify a duplicate folder name.
Yeah, in Windows they are not. But I wonder if Ren'Py / Python dislike them, maybe for other OSes. In any case, removing the parentheses from a folder in the path allowed the decompiler to work, but if they are there it won't work. And again, the odd thing is that the extractor worked just fine, so it's something specific to the decompiler that causes the crash.
 

gnadudu

Well-Known Member
Aug 31, 2018
1,895
2,800
Hey VepsrP,
looked at the bat and if you add
setlocal enableextensions enableDelayedExpansion
to the top
and replace
Code:
if exist "%pythondir%Lib" (
    if "%option%" == "2" (
        echo    + Searching for rpyc files in %gamedir%
        "%pythondir%python.exe" -O "%unrpycpy%" --init-offset "%gamedir%
    )
    if "%option%" == "9" (
        echo    + Searching for rpyc files in %gamedir%
        "%pythondir%python.exe" -O "%unrpycpy%" --init-offset "%gamedir%
    )
    if "%option%" == "8" (
        echo    + Searching for rpyc files in %gamedir%
        "%pythondir%python.exe" -O "%unrpycpy%" --init-offset "%gamedir%
    )
    if "%option%" == "7" (
        echo    + Searching for rpyc files in %gamedir%
        "%pythondir%python.exe" -O "%unrpycpy%" --init-offset --try-harder "%gamedir%
    )
) else (
    if "%option%" == "2" (
        echo    + Searching for rpyc files in %gamedir%
        "%pythondir%python.exe" "%unrpycpy%" --init-offset "%gamedir%
    )
    if "%option%" == "9" (
        echo    + Searching for rpyc files in %gamedir%
        "%pythondir%python.exe" "%unrpycpy%" --init-offset "%gamedir%
    )
    if "%option%" == "8" (
        echo    + Searching for rpyc files in %gamedir%
        "%pythondir%python.exe" "%unrpycpy%" --init-offset "%gamedir%
    )
    if "%option%" == "7" (
        echo    + Searching for rpyc files in %gamedir%
        "%pythondir%python.exe" "%unrpycpy%" --init-offset --try-harder "%gamedir%
    )
)
with
Code:
if exist "%pythondir%Lib" (
    if "%option%" == "2" (
        echo    + Searching for rpyc files in !gamedir!
        "%pythondir%python.exe" -O "%unrpycpy%" --init-offset "!gamedir!
    )
    if "%option%" == "9" (
        echo    + Searching for rpyc files in !gamedir!
        "%pythondir%python.exe" -O "%unrpycpy%" --init-offset "!gamedir!
    )
    if "%option%" == "8" (
        echo    + Searching for rpyc files in !gamedir!
        "%pythondir%python.exe" -O "%unrpycpy%" --init-offset "!gamedir!
    )
    if "%option%" == "7" (
        echo    + Searching for rpyc files in !gamedir!
        "%pythondir%python.exe" -O "%unrpycpy%" --init-offset --try-harder "!gamedir!
    )
) else (
    if "%option%" == "2" (
        echo    + Searching for rpyc files in !gamedir!
        "%pythondir%python.exe" "%unrpycpy%" --init-offset "!gamedir!
    )
    if "%option%" == "9" (
        echo    + Searching for rpyc files in !gamedir!
        "%pythondir%python.exe" "%unrpycpy%" --init-offset "!gamedir!
    )
    if "%option%" == "8" (
        echo    + Searching for rpyc files in !gamedir!
        "%pythondir%python.exe" "%unrpycpy%" --init-offset "!gamedir!
    )
    if "%option%" == "7" (
        echo    + Searching for rpyc files in !gamedir!
        "%pythondir%python.exe" "%unrpycpy%" --init-offset --try-harder "!gamedir!
    )
)
(basically all %gamedir% replaced with !gamedir!)
wouldn't that get rid of the paranthesis problems? (and maybe also other characters except "!")
 
Last edited:

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,385
Hey VepsrP,
looked at the bat and if you add
setlocal enableextensions enableDelayedExpansion
to the top
and replace
Code:
if exist "%pythondir%Lib" (
    if "%option%" == "2" (
        echo    + Searching for rpyc files in %gamedir%
        "%pythondir%python.exe" -O "%unrpycpy%" --init-offset "%gamedir%
    )
    if "%option%" == "9" (
        echo    + Searching for rpyc files in %gamedir%
        "%pythondir%python.exe" -O "%unrpycpy%" --init-offset "%gamedir%
    )
    if "%option%" == "8" (
        echo    + Searching for rpyc files in %gamedir%
        "%pythondir%python.exe" -O "%unrpycpy%" --init-offset "%gamedir%
    )
    if "%option%" == "7" (
        echo    + Searching for rpyc files in %gamedir%
        "%pythondir%python.exe" -O "%unrpycpy%" --init-offset --try-harder "%gamedir%
    )
) else (
    if "%option%" == "2" (
        echo    + Searching for rpyc files in %gamedir%
        "%pythondir%python.exe" "%unrpycpy%" --init-offset "%gamedir%
    )
    if "%option%" == "9" (
        echo    + Searching for rpyc files in %gamedir%
        "%pythondir%python.exe" "%unrpycpy%" --init-offset "%gamedir%
    )
    if "%option%" == "8" (
        echo    + Searching for rpyc files in %gamedir%
        "%pythondir%python.exe" "%unrpycpy%" --init-offset "%gamedir%
    )
    if "%option%" == "7" (
        echo    + Searching for rpyc files in %gamedir%
        "%pythondir%python.exe" "%unrpycpy%" --init-offset --try-harder "%gamedir%
    )
)
with
Code:
if exist "%pythondir%Lib" (
    if "%option%" == "2" (
        echo    + Searching for rpyc files in !gamedir!
        "%pythondir%python.exe" -O "%unrpycpy%" --init-offset "!gamedir!
    )
    if "%option%" == "9" (
        echo    + Searching for rpyc files in !gamedir!
        "%pythondir%python.exe" -O "%unrpycpy%" --init-offset "!gamedir!
    )
    if "%option%" == "8" (
        echo    + Searching for rpyc files in !gamedir!
        "%pythondir%python.exe" -O "%unrpycpy%" --init-offset "!gamedir!
    )
    if "%option%" == "7" (
        echo    + Searching for rpyc files in !gamedir!
        "%pythondir%python.exe" -O "%unrpycpy%" --init-offset --try-harder "!gamedir!
    )
) else (
    if "%option%" == "2" (
        echo    + Searching for rpyc files in !gamedir!
        "%pythondir%python.exe" "%unrpycpy%" --init-offset "!gamedir!
    )
    if "%option%" == "9" (
        echo    + Searching for rpyc files in !gamedir!
        "%pythondir%python.exe" "%unrpycpy%" --init-offset "!gamedir!
    )
    if "%option%" == "8" (
        echo    + Searching for rpyc files in !gamedir!
        "%pythondir%python.exe" "%unrpycpy%" --init-offset "!gamedir!
    )
    if "%option%" == "7" (
        echo    + Searching for rpyc files in !gamedir!
        "%pythondir%python.exe" "%unrpycpy%" --init-offset --try-harder "!gamedir!
    )
)
(basically all %gamedir% replaced with !gamedir!)
wouldn't that get rid of the paranthesis problems? (and maybe also other characters except "!")
I have already tried this path when I wrote the option to use an alternative path for gamefolder. There are even more problems and hassle.
 

dfgwg3

Newbie
Aug 4, 2019
43
48
for some reason the last version, 8.9 aways de-compile some files wrong, in my case on OppaiOdyssey-0.4.1-pc, the file that always is decompiled wrong is myscreens.rpyc, how the 8.9 decompile:

Python:
screen a1_dr_engineering1():
    modal True

    add "images/navigations/a1_dr_engineering1.png"

    b'image_button' auto "images/navigations/a1_dr_engineering1_%s.png":
        focus_mask True
        action Jump ("a1_dr_engineering1")


    b'image_button' auto "images/navigations/a1_dr_engineering1_exit_%s.png":
        focus_mask True
        action Jump ("a1_engineering_tunnel")

    b'image_button':
        idle "images/navigations/engineeringmini.png"
        focus_mask True
        action Call("engineering_prologue_map")
# Decompiled by unrpyc: https://github.com/CensoredUsername/unrpyc
how is the correct code:

Python:
screen a1_dr_engineering1():
    modal True

    add "images/navigations/a1_dr_engineering1.png"

    imagebutton auto "images/navigations/a1_dr_engineering1_%s.png":
        focus_mask True
        action Jump ("a1_dr_engineering1")


    imagebutton auto "images/navigations/a1_dr_engineering1_exit_%s.png":
        focus_mask True
        action Jump ("a1_engineering_tunnel")

    imagebutton:
        idle "images/navigations/engineeringmini.png"
        focus_mask True
        action Call("engineering_prologue_map")
# Decompiled by unrpyc: https://github.com/CensoredUsername/unrpyc
if needed i attached the compiled file
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,385
for some reason the last version, 8.9 aways de-compile some files wrong, in my case on OppaiOdyssey-0.4.1-pc, the file that always is decompiled wrong is myscreens.rpyc, how the 8.9 decompile:

Python:
screen a1_dr_engineering1():
    modal True

    add "images/navigations/a1_dr_engineering1.png"

    b'image_button' auto "images/navigations/a1_dr_engineering1_%s.png":
        focus_mask True
        action Jump ("a1_dr_engineering1")


    b'image_button' auto "images/navigations/a1_dr_engineering1_exit_%s.png":
        focus_mask True
        action Jump ("a1_engineering_tunnel")

    b'image_button':
        idle "images/navigations/engineeringmini.png"
        focus_mask True
        action Call("engineering_prologue_map")
# Decompiled by unrpyc: https://github.com/CensoredUsername/unrpyc
how is the correct code:

Python:
screen a1_dr_engineering1():
    modal True

    add "images/navigations/a1_dr_engineering1.png"

    imagebutton auto "images/navigations/a1_dr_engineering1_%s.png":
        focus_mask True
        action Jump ("a1_dr_engineering1")


    imagebutton auto "images/navigations/a1_dr_engineering1_exit_%s.png":
        focus_mask True
        action Jump ("a1_engineering_tunnel")

    imagebutton:
        idle "images/navigations/engineeringmini.png"
        focus_mask True
        action Call("engineering_prologue_map")
# Decompiled by unrpyc: https://github.com/CensoredUsername/unrpyc
if needed i attached the compiled file
Unfortunately, this is a problem of transferring old compiled scripts without recompiling them on a new engine, I have corrected many places with such a problem, but unfortunately not all and not all have the opportunity to even see exactly where such code needs to be processed.
 

Lac

Member
Jul 2, 2017
331
379
Wanted to extract The Church of Vice and got the following error (used the latest version):



Searching for RPA packages
Traceback (most recent call last):
File "D:\New folder (3)\TheChurchofVice-0.51-all\rpatool.py", line 11, in <module>
import renpy.config
File "D:\New folder (3)\TheChurchofVice-0.51-all\renpy\config.py", line 300, in <module>
scene = renpy.exports.scene
AttributeError: 'module' object has no attribute 'exports'

Cleaning up temporary files...

----------------------------------------------------

Finished!

Thank you for fixing.
 

Lac

Member
Jul 2, 2017
331
379
So i tried a few other games of the developer of The Church of Vice and i could extact the rpa of Eve's Story. So i copied the rpa of the church game to the game folder of Eve's Story and it worked. The rpa's of his other games could also extracted inside of Eve. So this worked for me and for now, but who knows for how long.
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,385
Wanted to extract The Church of Vice and got the following error (used the latest version):



Searching for RPA packages
Traceback (most recent call last):
File "D:\New folder (3)\TheChurchofVice-0.51-all\rpatool.py", line 11, in <module>
import renpy.config
File "D:\New folder (3)\TheChurchofVice-0.51-all\renpy\config.py", line 300, in <module>
scene = renpy.exports.scene
AttributeError: 'module' object has no attribute 'exports'

Cleaning up temporary files...

----------------------------------------------------

Finished!

Thank you for fixing.
This game has too old an engine, 6 version, I suggest using the old version of the tool. Archive attached to OP.
 
  • Like
Reactions: Lac

yoyomistro

Engaged Member
Jan 15, 2017
2,940
4,034
Ah ok thank you very much, i will keep a unren collection in the future.
I have every single version of unren that has ever been on this site, except maybe the first one and the Mac forks. Never know what version of Ren'py some crazy dev is gonna use, lol.
 
  • Haha
Reactions: Twistty

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,385
yet another version of Indecent Wife Hana that cannot be decompiled...
Added support for the latest version of the game. I understand that most likely English is not your native language, but I ask you to specify the diagnosis more precisely. Unpacking is working with archives, and decompiling is working with compiled script files. Now there was a problem with the archives.
 
  • Like
  • Yay, update!
Reactions: "CJ" and Twistty
5.00 star(s) 3 Votes