Tool Ren'Py Win UnRen.bat 0.3 - reworked UnRen.bat with integration in Windows context menu

kwazimoda

Newbie
Aug 5, 2018
57
40
1565648800967.png 1565648859708.png 1565649668161.png 1565649823321.png

I reworked fantastic tool UnRen.bat, and am now providing it for your use.
+ 2 modes: old & new
old mode consist all old tools
new mode was adding:
- delete option after unpacking RPA file(s)
- find & unpack RPA files in the subfolders
- Transparent text box mod
- installation option for integrated in the Windows context menu
- work with files anyway in which folder (in the install mode)
+ 2 modes of use: portable & install

This tool was created for site porno-island.org, but laid out for all interests.

Installation:
Portable mode - only copy file winunren.bat to the folder with game
Install mode -
1) copy file winunren.bat to the folder with game
2) in the program select option number 8
3) allow shell.exe actions
4) remove winunren.bat from folder with game
5) use program from Windows context menu

About shell.exe
Shell.exe is a script that asks the system for rights to registry changes that are necessary for integration in the system.

16.08.2019 - release Win UnRen.bat v 0.4
----------------------------------------------------

+ Fixed decrypt .rpyc files error with filenames content spaces
+ Added second .rpyc files decryption tool - unrpyc.py (from this version - default decryption tool)
Install mode user can choose what decryption tool used
Update 0.3->0.4: Users need 2 times select 8 menu option (remove and install Win UnRen.bat)

WinUnRen.bat components:


(from v 0.4 default decryption tool)
Transparent Text Box Mod v2.5.9
 
Last edited:

IdarksoulsI

Well-Known Member
Jun 26, 2017
1,316
1,606
Decompiling rpyc files didn't work. Got an error message during creating un.rpyc >>> "Four couldn't be found ...". Probably has problems with spaces in file names. e.g.: "Four Elements Trainer.exe"
Manually placing un.rpyc in the /game folder did compile correctly.
 

kwazimoda

Newbie
Aug 5, 2018
57
40
Decompiling rpyc files didn't work. Got an error message during creating un.rpyc >>> "Four couldn't be found ...". Probably has problems with spaces in file names. e.g.: "Four Elements Trainer.exe"
Manually placing un.rpyc in the /game folder did compile correctly.
Yes, the problem was with spaces in the file name. Corrected. Thanks for the information!
 
  • Like
Reactions: IdarksoulsI

IdarksoulsI

Well-Known Member
Jun 26, 2017
1,316
1,606
As soon as I recompile rpyc files for 'Innocent Witches' I get these errors:


Code:
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/interfaces/dynamic_tooltips.rpy", line 14: end of line expected.
    use tooltip.solved_screen(*tooltip.solved_args, **tooltip.solved_kwargs)
               ^

File "game/interfaces/tutorial/main.rpy", line 45: for expects a non-empty block.
    for value, caption in names[top_pad_i:top_pad_i + tutorial.TOP_PAD_MAX_LEN]:
                                                                                ^

File "game/screens.rpy", line 105: u'pass' is not a keyword argument or valid child for the imagebutton statement.
    pass
        ^

File "game/screens.rpy", line 257: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
    modal True
    ^

File "game/screens.rpy", line 478: fixed expects a non-empty block.
    if top_pad != 0:
                    ^

File "game/scripts/diary_screens.rpy", line 9: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
    modal True
    ^

File "game/scripts/plot/act_1/chapter_4/ginny_dialogues.rpy", line 12: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
    on "show" action Play("sound", audio.page_open)
    ^

File "game/scripts/plot/act_1/chapter_4/ginny_dialogues.rpy", line 45: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
    on "show" action Play("sound", audio.page_open)
    ^

File "game/scripts/plot/act_1/chapter_5/daphne_dialogues.rpy", line 61: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
    on "show" action Play("sound", audio.page_open)
    ^

File "game/scripts/plot/act_1/chapter_5/hermi_dialogues.rpy", line 75: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
    on "show" action Play("sound", audio.page_open)
    ^

File "game/scripts/plot/act_1/chapter_5/luna_dialogues.rpy", line 71: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
    on "show" action Play("sound", audio.page_open)
    ^

File "game/scripts/plot/act_1/chapter_5/susan_dialogues.rpy", line 82: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
    on "show" action Play("sound", audio.page_open)
    ^

File "game/scripts/plot/prologue/chapter_0_menus.rpy", line 49: for expects a non-empty block.
    for caption, state in zip(
                [_("Passive"), _("Disable")],
                [True, False],
            ):

Ren'Py Version: Ren'Py 7.3.2.320
Sat Sep 28 12:18:52 2019
Is there a way to fix this or can I correct it manually?

e.g. what's wrong in line 14?

Code:
09 screen dynamic_tooltip():
10    layer "main_menu"
11    zorder 1000
12    $ tooltip = GetTooltip()
13    if isinstance(tooltip, TooltipProxy):
14        use tooltip.solved_screen(*tooltip.solved_args, **tooltip.solved_kwargs)
 

kwazimoda

Newbie
Aug 5, 2018
57
40
As soon as I recompile rpyc files for 'Innocent Witches' I get these errors:


Code:
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/interfaces/dynamic_tooltips.rpy", line 14: end of line expected.
    use tooltip.solved_screen(*tooltip.solved_args, **tooltip.solved_kwargs)
               ^

File "game/interfaces/tutorial/main.rpy", line 45: for expects a non-empty block.
    for value, caption in names[top_pad_i:top_pad_i + tutorial.TOP_PAD_MAX_LEN]:
                                                                                ^

File "game/screens.rpy", line 105: u'pass' is not a keyword argument or valid child for the imagebutton statement.
    pass
        ^

File "game/screens.rpy", line 257: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
    modal True
    ^

File "game/screens.rpy", line 478: fixed expects a non-empty block.
    if top_pad != 0:
                    ^

File "game/scripts/diary_screens.rpy", line 9: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
    modal True
    ^

File "game/scripts/plot/act_1/chapter_4/ginny_dialogues.rpy", line 12: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
    on "show" action Play("sound", audio.page_open)
    ^

File "game/scripts/plot/act_1/chapter_4/ginny_dialogues.rpy", line 45: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
    on "show" action Play("sound", audio.page_open)
    ^

File "game/scripts/plot/act_1/chapter_5/daphne_dialogues.rpy", line 61: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
    on "show" action Play("sound", audio.page_open)
    ^

File "game/scripts/plot/act_1/chapter_5/hermi_dialogues.rpy", line 75: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
    on "show" action Play("sound", audio.page_open)
    ^

File "game/scripts/plot/act_1/chapter_5/luna_dialogues.rpy", line 71: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
    on "show" action Play("sound", audio.page_open)
    ^

File "game/scripts/plot/act_1/chapter_5/susan_dialogues.rpy", line 82: Line is indented, but the preceding tag statement does not expect a block. Please check this line's indentation.
    on "show" action Play("sound", audio.page_open)
    ^

File "game/scripts/plot/prologue/chapter_0_menus.rpy", line 49: for expects a non-empty block.
    for caption, state in zip(
                [_("Passive"), _("Disable")],
                [True, False],
            ):

Ren'Py Version: Ren'Py 7.3.2.320
Sat Sep 28 12:18:52 2019
Is there a way to fix this or can I correct it manually?

e.g. what's wrong in line 14?

Code:
09 screen dynamic_tooltip():
10    layer "main_menu"
11    zorder 1000
12    $ tooltip = GetTooltip()
13    if isinstance(tooltip, TooltipProxy):
14        use tooltip.solved_screen(*tooltip.solved_args, **tooltip.solved_kwargs)
Source code without compilation worked?
 

IdarksoulsI

Well-Known Member
Jun 26, 2017
1,316
1,606
Source code without compilation worked?
Yes, I first extracted the rpa packages, tested it and could start the game.
Then I decompiled and got the error messages after starting the game. I had this for 'FET' too but it were only like 1/2 errors that I managed to fix, even with my non existent knowledge.
 

fivesteaks

Member
Sep 22, 2016
152
398
You need a newer version of unrpyc, the version included in unren.bat doesn't work on newer renpy releases.