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

5.00 star(s) 3 Votes

frozenfeet

Well-Known Member
Aug 2, 2019
1,201
1,835
VepsrP
I tried unpacking Indecent Wife Hana v0.18 (https://f95zone.to/threads/indecent-wife-hana-v0-18-cracked-fallen-eros.106980/)
using powershell version 8.1 and it says there are no archives. I tried to unpack it on an unaltered Ren'py 8.0.3 install and got this error

Unpacking "scripts.rpa" acrhive.
Traceback (most recent call last):
File "F:\Desktop\Ren'py\8.0.x\rpatool.py", line 102, in <module>
archive = RenPyArchive(arch, archives.index(arch))
File "F:\Desktop\Ren'py\8.0.x\rpatool.py", line 21, in __init__
self.load(file, index)
File "F:\Desktop\Ren'py\8.0.x\rpatool.py", line 63, in load
items = renpy.loader.archives[index][1].items()
IndexError: list index out of range
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,371
Any potential for a slightly better fail?
I don't quite understand what you mean. If the question is about the possibility of processing parentheses with a script without crashes, then I will disappoint, I spent a lot of time on this question, but I could not solve it. Only if someone else finds the right solution that can be applied to the current implementation.
 

estrada777

Engaged Member
Modder
Donor
Mar 22, 2020
3,591
8,889
I don't quite understand what you mean. If the question is about the possibility of processing parentheses with a script without crashes, then I will disappoint, I spent a lot of time on this question, but I could not solve it. Only if someone else finds the right solution that can be applied to the current implementation.
Is this helpful?

Code:
@echo off
set "dir=%cd%"

rem Check if parenthesis is present in the directory name
for /f "tokens=2 delims=()" %%a in ("%dir%") do (
   echo Error: Parenthesis not allowed in directory name
   exit /b 1
)

echo Success: No parenthesis found in directory name
exit /b 0
 
  • Like
Reactions: VepsrP

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,371
Is this helpful?

Code:
@echo off
set "dir=%cd%"

rem Check if parenthesis is present in the directory name
for /f "tokens=2 delims=()" %%a in ("%dir%") do (
   echo Error: Parenthesis not allowed in directory name
   exit /b 1
)

echo Success: No parenthesis found in directory name
exit /b 0
That's what you mean. I meant to make script work with them. But this is also allowed.
 

"CJ"

Conversation Conqueror
Mar 6, 2021
6,629
69,923
VepsrP is an "&" in the path the same problem as with "()" in the path or could it be implemented? Using latest version 8.1.
 
  • Like
Reactions: VepsrP

Big Daddy

Member
Jul 17, 2017
400
904
I created this topic to simplify updating and maintaining the tool, so that people no longer have to search for the current version among the messages.
I am also ready to present a version of the tool with a graphical interface. Like the main tool, this version comes in two variants.

Here is a link Unren by Sam to the original topic, the tool was not invented by me, I'm just trying to keep it up-to-date as much as possible. You can also see there that for about the last six months I have been trying to keep this tool in operation.
Here is a link to repo if anyone is interested.
You don't have permission to view the spoiler content. Log in or register now.
You don't have permission to view the spoiler content. Log in or register now.
Known Issues:
- Having non-ASCII characters in your folder path may cause issues.
Attention. The name of the tool indicates the minimum version of RenPy required for working. The version can be found in the file "game/script_version.txt"
My mod supports only Windows, for Linux and Mac you can go to this thread and search for messages from dikau.
You don't have permission to view the spoiler content. Log in or register now.
You don't have permission to view the spoiler content. Log in or register now.
One Unren to Rule them all! Thanks for the excellent work as always.
 
  • Haha
  • Like
Reactions: "CJ" and VepsrP

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,371
VepsrP
I tried unpacking Indecent Wife Hana v0.18 (https://f95zone.to/threads/indecent-wife-hana-v0-18-cracked-fallen-eros.106980/)
using powershell version 8.1 and it says there are no archives. I tried to unpack it on an unaltered Ren'py 8.0.3 install and got this error

Unpacking "scripts.rpa" acrhive.
Traceback (most recent call last):
File "F:\Desktop\Ren'py\8.0.x\rpatool.py", line 102, in <module>
archive = RenPyArchive(arch, archives.index(arch))
File "F:\Desktop\Ren'py\8.0.x\rpatool.py", line 21, in __init__
self.load(file, index)
File "F:\Desktop\Ren'py\8.0.x\rpatool.py", line 63, in load
items = renpy.loader.archives[index][1].items()
IndexError: list index out of range
I'm sorry that I'm only writing now. I forgot to check it yesterday. Both versions of the program calmly unpack the archives of the game. The problem is probably on your side. Check the path to the game, the presence of parentheses and some other special characters may disrupt the script.
It also makes absolutely no sense to use third-party RenPy versions (original or from another game) for this game. The author has made enough copyright changes to the engine code that it would not work.
 
  • Like
Reactions: Big Daddy

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,371
VepsrP is an "&" in the path the same problem as with "()" in the path or could it be implemented? Using latest version 8.1.
Parentheses are not friends with the batch script, but the ampersand is not friends with python. But maybe I can make them friends. This, in theory, should be easier. :unsure:
 
  • Like
Reactions: "CJ"

frozenfeet

Well-Known Member
Aug 2, 2019
1,201
1,835
I'm sorry that I'm only writing now. I forgot to check it yesterday. Both versions of the program calmly unpack the archives of the game. The problem is probably on your side. Check the path to the game, the presence of parentheses and some other special characters may disrupt the script.
It also makes absolutely no sense to use third-party RenPy versions (original or from another game) for this game. The author has made enough copyright changes to the engine code that it would not work.
It was having spaces in the name, I thought you fixed that so it didn't occur to me at the time that was causing the problem.
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,371
It was having spaces in the name, I thought you fixed that so it didn't occur to me at the time that was causing the problem.
The script handles spaces normally. I just checked it out. two spaces in the path plus Cyrillic. :BootyTime:
 

frozenfeet

Well-Known Member
Aug 2, 2019
1,201
1,835
The script handles spaces normally. I just checked it out. two spaces in the path plus Cyrillic. :BootyTime:
I had this name "Indecent Wife HanaV18.0Cracked" didn't work, changed it to "IndecentWifeHanaV18.0Cracked" then it worked. I just changed the name back and UnRen says there are no archives. I then took the spaces out again and the archive was unpacked. :unsure:
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,371
I had this name "Indecent Wife HanaV18.0Cracked" didn't work, changed it to "IndecentWifeHanaV18.0Cracked" then it worked. I just changed the name back and UnRen says there are no archives. I then took the spaces out again and the archive was unpacked. :unsure:
I tried this path. And launched from the inside and drag'n'drop folder. The archives were unpacked without any problems. I can't tell why it's not working out for you. And for the record, I use the version from the site, because I am at work.
 

molitar

Engaged Member
Sep 22, 2016
3,236
3,133
I am unable to get this to work at all with Attack on Survey Corps. It will not properly extract it seems the file.

Working in: C:\AttackOnSurveyCorps\game\
Decompiling C:\AttackOnSurveyCorps\game\00early.rpyc to C:\AttackOnSurveyCorps\game\00early.rpy...
Error while decompiling C:\AttackOnSurveyCorps\game\00early.rpyc:
Traceback (most recent call last):
File "C:\AttackOnSurveyCorps\unrpyc.py", line 202, in worker
return decompile_rpyc(filename, args.clobber, args.dump, decompile_python=args.decompile_python,
File "C:\AttackOnSurveyCorps\unrpyc.py", line 166, in decompile_rpyc
ast = read_ast_from_file(in_file)
File "C:\AttackOnSurveyCorps\unrpyc.py", line 134, in read_ast_from_file
raw_contents = chunks[1]
KeyError: 1
 

molitar

Engaged Member
Sep 22, 2016
3,236
3,133
OK am I doing something wrong because it did not work.

C:\AttackonSurveyCorps
C:\AttackonSurveyCorps\UnRen-forall.bat
C:\AttackonSurveyCorps\game\depack12.rpy

Tried to extract and it still failed.

Code:
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
LookupError: no codec search functions registered: can't find encoding

Current thread 0x00003f24 (most recent call first):
<no Python frame>

Cleaning up temporary files...
Trying to run game.

Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/depack12.rpy", line 12, in script
    init -9000 python:
  File "game/depack12.rpy", line 15, in <module>
    import __builtin__
ModuleNotFoundError: No module named '__builtin__'

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/depack12.rpy", line 12, in script
    init -9000 python:
  File "C:\AttackonSurveyCorps\renpy\ast.py", line 1132, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\AttackonSurveyCorps\renpy\python.py", line 1085, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/depack12.rpy", line 15, in <module>
    import __builtin__
ModuleNotFoundError: No module named '__builtin__'

Windows-10-10.0.19042 AMD64
Ren'Py 8.1.0.23012301n
Attack on Survey Corps 0.10.0
Sat Feb  4 04:39:49 2023
 

Boehser Onkel

Forum Fanatic
Modder
Feb 20, 2021
4,088
6,050
OK am I doing something wrong because it did not work.

C:\AttackonSurveyCorps
C:\AttackonSurveyCorps\UnRen-forall.bat
C:\AttackonSurveyCorps\game\depack12.rpy

Tried to extract and it still failed.

Code:
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
LookupError: no codec search functions registered: can't find encoding

Current thread 0x00003f24 (most recent call first):
<no Python frame>

Cleaning up temporary files...
Trying to run game.

Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/depack12.rpy", line 12, in script
    init -9000 python:
  File "game/depack12.rpy", line 15, in <module>
    import __builtin__
ModuleNotFoundError: No module named '__builtin__'

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/depack12.rpy", line 12, in script
    init -9000 python:
  File "C:\AttackonSurveyCorps\renpy\ast.py", line 1132, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\AttackonSurveyCorps\renpy\python.py", line 1085, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/depack12.rpy", line 15, in <module>
    import __builtin__
ModuleNotFoundError: No module named '__builtin__'

Windows-10-10.0.19042 AMD64
Ren'Py 8.1.0.23012301n
Attack on Survey Corps 0.10.0
Sat Feb  4 04:39:49 2023
just put the depack12.rpy in the /game folder
start game - wait a bit
there should be a new folder at the main folder called unpacked or so
from there you can put the files in the /game folder if successful
after this delete the depack12.rpy
 

molitar

Engaged Member
Sep 22, 2016
3,236
3,133
just put the depack12.rpy in the /game folder
start game - wait a bit
there should be a new folder at the main folder called unpacked or so
from there you can put the files in the /game folder if successful
after this delete the depack12.rpy
Does not work it reports a builtin module not found.
ModuleNotFoundError: No module named '__builtin__'

So the game will not even run at all. Seems script is out of date as I found this doing a search for that error..

The __builtin__ module was renamed to builtins in Python3.
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,371
just put the depack12.rpy in the /game folder
start game - wait a bit
there should be a new folder at the main folder called unpacked or so
from there you can put the files in the /game folder if successful
after this delete the depack12.rpy
He has a problem not with unpacking, as he wrote, but with decompilation. An error in terminology.
 
  • Like
Reactions: Boehser Onkel
5.00 star(s) 3 Votes