Create and Fuck your AI Slut -70% OFF
x

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

5.00 star(s) 3 Votes

ddf

Active Member
Jun 27, 2017
714
401
294
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.
Hi!

First of all - thank you a lot for the tool.

I was using UnRen-forall.bat v8.6 and was getting the following error:

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
I've looked up for some help and according to advice deleted setting of PYTHONHOME:
Code:
set "PYTHONHOME=%pythondir%"
if exist "lib\pythonlib2.7" (
    set "PYTHONPATH=%cd%\lib\pythonlib2.7"
) else if exist "lib\python2.7" (
    set "PYTHONPATH=%cd%\lib\python2.7"
) else if exist "lib\python3.9" (
    set "PYTHONPATH=%cd%\lib\python3.9"
)
and it worked just fine (except that .bat file exits after decompiling rpy files).
On discuss.python.org it was mentioned that setting PYTHONHOME is usually not necessarily.
 

Madeddy

Well-Known Member
Dec 17, 2017
1,016
735
244
...
I've looked up for some help and according to advice deleted setting of PYTHONHOME:
...
and it worked just fine (except that .bat file exits after decompiling rpy files).
On discuss.python.org it was mentioned that setting PYTHONHOME is usually not necessarily.
Questions is what your system stats are regarding this. Which encoding and language/alphabet do you use?
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,430
391
Hi!

First of all - thank you a lot for the tool.

I was using UnRen-forall.bat v8.6 and was getting the following error:

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
I've looked up for some help and according to advice deleted setting of PYTHONHOME:
Code:
set "PYTHONHOME=%pythondir%"
if exist "lib\pythonlib2.7" (
    set "PYTHONPATH=%cd%\lib\pythonlib2.7"
) else if exist "lib\python2.7" (
    set "PYTHONPATH=%cd%\lib\python2.7"
) else if exist "lib\python3.9" (
    set "PYTHONPATH=%cd%\lib\python3.9"
)
and it worked just fine (except that .bat file exits after decompiling rpy files).
On discuss.python.org it was mentioned that setting PYTHONHOME is usually not necessarily.
Is this a mistake in all games (on all engines) or is it a one-time promotion?
 

ddf

Active Member
Jun 27, 2017
714
401
294
Is this a mistake in all games (on all engines) or is it a one-time promotion?
To be honest, I'm not sure about it.

In the past, I might have different UnRen errors, some of which were fixed by Windows restart or copying missing files to the lib folder of the game.

Usually, I have no problem using UnRen.

This time I encountered this error in Returning to Mia Ep.9.
I don't know if I could fix it by restart and if I would get this error in another game at the moment.
I was able to unpack rpa files, but was stuck while decoding rpy ones.

So, it was a solution I used.
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,430
391
To be honest, I'm not sure about it.

In the past, I might have different UnRen errors, some of which were fixed by Windows restart or copying missing files to the lib folder of the game.

Usually, I have no problem using UnRen.

This time I encountered this error in Returning to Mia Ep.9.
I don't know if I could fix it by restart and if I would get this error in another game at the moment.
I was able to unpack rpa files, but was stuck while decoding rpy ones.

So, it was a solution I used.
Unfortunately, I didn't download the full version, it weighs too much, but there is a compressed one, with source or decompiled script files. Also, I have no problems unpacking or decompiling it.
 

ddf

Active Member
Jun 27, 2017
714
401
294
Unfortunately, I didn't download the full version, it weighs too much, but there is a compressed one, with source or decompiled script files. Also, I have no problems unpacking or decompiling it.
At first I tried with compressed one and had the same error (could be some older compressed version, as I see errors is code).
I encountered the issue and wanted to share a solution.
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,430
391
At first I tried with compressed one and had the same error (could be some older compressed version, as I see errors is code).
I encountered the issue and wanted to share a solution.
The problem with the solution is that in some versions of the engine (or games) these two variables are needed, it does not work without them, while in other games and engines neither I nor most other users have such an error and variables do not interfere. There is probably another way to solve the problem, but unfortunately, if I can't reproduce the error, it's hard to even figure out where to look for a solution.
 
  • Like
Reactions: ddf

Madeddy

Well-Known Member
Dec 17, 2017
1,016
735
244
...but unfortunately, if I can't reproduce the error, it's hard to even figure out where to look for a solution.
Maybe in some users cases, these variables already set, e.g. by a native python install and if you do it again there is a conflict.

Also, ddf didn't answer my question above. I was curious if he has a special setup.
 

ddf

Active Member
Jun 27, 2017
714
401
294
Maybe in some users cases, these variables already set, e.g. by a native python install and if you do it again there is a conflict.

Also, ddf didn't answer my question above. I was curious if he has a special setup.
That was quite specific question.
I didn't get what you've been asking about alphabet or stats.
 

Tacito

Forum Fanatic
Jul 15, 2017
5,963
54,031
912
There is a problem decompiling this game , Ren'Py 8.1.0.23042213
https://f95zone.to/threads/interstellar-harem-2023_week23-lithelike-studio.163132/

After decompiling I have these errors
Code:
File "game/Tutorials.rpy", line 22: expected '=' not found.
    default action SetLocalVariable("lineIdx", lineIdx+1)
                   ^
File "game/Tutorials.rpy", line 43: expected '=' not found.
    default action SetLocalVariable("lineIdx", lineIdx+1)
                   ^
File "game/Tutorials.rpy", line 83: expected '=' not found.
    default action SetLocalVariable("lineIdx", lineIdx+1)
                   ^
File "game/UtilityScreens.rpy", line 39: expected '=' not found.
    default action Return()
                   ^
File "game/script.rpy", line 1093: expected '=' not found.
    default action Return()
                   ^
File "game/script.rpy", line 1525: expected '=' not found.
    default action Return()
                   ^
File "game/script.rpy", line 2058: expected '=' not found.
    default action Return()
                   ^
If I add = in rpy file seems to work , but the game freezes at this point
Freeze.jpg

If I replace original Tutorials.rpyc it works without problem.

Thanks :)
 
  • Thinking Face
Reactions: VepsrP

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,430
391
There is a problem decompiling this game , Ren'Py 8.1.0.23042213
https://f95zone.to/threads/interstellar-harem-2023_week23-lithelike-studio.163132/

After decompiling I have these errors
Code:
File "game/Tutorials.rpy", line 22: expected '=' not found.
    default action SetLocalVariable("lineIdx", lineIdx+1)
                   ^
File "game/Tutorials.rpy", line 43: expected '=' not found.
    default action SetLocalVariable("lineIdx", lineIdx+1)
                   ^
File "game/Tutorials.rpy", line 83: expected '=' not found.
    default action SetLocalVariable("lineIdx", lineIdx+1)
                   ^
File "game/UtilityScreens.rpy", line 39: expected '=' not found.
    default action Return()
                   ^
File "game/script.rpy", line 1093: expected '=' not found.
    default action Return()
                   ^
File "game/script.rpy", line 1525: expected '=' not found.
    default action Return()
                   ^
File "game/script.rpy", line 2058: expected '=' not found.
    default action Return()
                   ^
If I add = in rpy file seems to work , but the game freezes at this point
View attachment 2690695

If I replace original Tutorials.rpyc it works without problem.

Thanks :)
I updated tools, it seems that the game did not report any more problems, there are no more freezes at this stage.
 

DarkAssassin

I, for one, welcome our new android overlords.
Modder
Donor
Nov 2, 2017
805
8,989
760
  • Thinking Face
Reactions: Boehser Onkel

Tacito

Forum Fanatic
Jul 15, 2017
5,963
54,031
912
tried it already. tried all actually and this folder should not be empty. it contains 200mb worth of renders I think.
I tried also this

and rpatool
Same errors , folder Cap 5 Empty ... missed images
But for sure there are images inside :)
pippo.jpg pippo1.jpg
 
Last edited:
  • Like
Reactions: Boehser Onkel

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,430
391
hey man! can you try this game and check please?
There is a space at the end of name of the last folder. I do not know in which system the game was created, on Windows it will not allow you to put a space at the beginning or end of the folder or file name. The problem is not in the unpacker, but in this folder. Perhaps it happened by accident, or perhaps it is such a protection against unpacking. :unsure:
 

calel

Member
Aug 19, 2021
390
617
217
https://f95zone.to/threads/name88s-triangle-book-6-part-1-q-n88-3darts.101751/page-32
compressed I got this error when try to extract rpa file with unren forall v8 8

Enter a number:1

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

Creating rpatool...
Exception calling "ReadAllText" with "1" argument(s): "Nem található a következő elérési út egy része.: „C:\Users\User\
Desktop\Name88sTriangle-Book_Six_P1-pc-compressed\rpatool.py.tmp”."
At line:1 char:5
+ & { [IO.File]::WriteAllBytes("C:\Users\User\Desktop\Name88`sTriangle- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: :)) [], MethodInvocationException
+ FullyQualifiedErrorId : DirectoryNotFoundException


Remove RPA archives after extraction?
. Enter (y/n):n
+ RPA archives won't be deleted

Searching for RPA packages
C:\Users\User\Desktop\Name88`sTriangle-Book_Six_P1-pc-compressed\lib\windows-x86_64\python.exe: can't open file 'C:\Users\User\Desktop\Name88`sTriangle-Book_Six_P1-pc-compressed\rpatool.py': [Errno 2] No such file or directory

Cleaning up temporary files...

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

Finished!

Enter "1" to go back to the menu, or any other
 
5.00 star(s) 3 Votes