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

5.00 star(s) 3 Votes

-CookieMonster666-

Devoted Member
Nov 20, 2018
11,168
16,241
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,845
2,729
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,367
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
692
490
-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-

Devoted Member
Nov 20, 2018
11,168
16,241
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

Forum Fanatic
Dec 27, 2017
5,683
19,623
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-

Devoted Member
Nov 20, 2018
11,168
16,241
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,845
2,729
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,367
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
39
44
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,367
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
266
257
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
266
257
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,367
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,777
3,564
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,367
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, new update!
Reactions: "CJ" and Twistty
5.00 star(s) 3 Votes