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

5.00 star(s) 3 Votes

timanuk

Member
Nov 15, 2017
115
111
You can check it out. Both games are now working. I can only wish you good luck with the translation. The developer did some shit with the game engine.
Yes, they work. I didn't say that they didn't work. Because all that was achieved was to unpack the archives. As I wrote in the previous post.
I can't translate the game because the game scenario scripts are not decompiled.
If you can deompile them, send me the scenario folder. I don't need any other scripts with proprietary code or game mechanics, just game text.
Or do you know another way to get text from .rpyc files?
 
Last edited:

Hinterhälter

Member
Oct 13, 2019
105
142
I got an issue I hope one of you can help me with.
I kinda like alternating the text in scripts to my liking in several games.
So far I had no issue i couldn't fix with extracting the scripts of those games.
Now I tried it with https://f95zone.to/threads/midnight-paradise-v0-23-elite-lewdlab.25081/post-12238726

But while extracting with unren I only get the .rpyc files, not the corresponding .rpy files where you usually can alter the dialog or text in general.
Is this there a special reason why this doesnt work or can someone give me pointers how i can get the rpy files?
 

GioBol

Engaged Member
May 19, 2021
3,348
17,269
If I understand correctly, you use unren with option 1 which only unpacks RPA files. You need to go back to the menu and choose option 2.
The content in the RPA files is decided by the developer and can decide to include only the compiled ones (RPYC) or also the sources (RPY).
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,361
Yes, they work. I didn't say that they didn't work. Because all that was achieved was to unpack the archives. As I wrote in the previous post.
I can't translate the game because the game scenario scripts are not decompiled.
If you can deompile them, send me the scenario folder. I don't need any other scripts with proprietary code or game mechanics, just game text.
Or do you know another way to get text from .rpyc files?
When I wrote that it works, I meant that the games are now decompiled. So you can do it yourself. And I wished you luck, because the scenario files(and other scripts itself) in these games are a special kind of Japanese perverted art.:BootyTime:
 
  • Like
Reactions: timanuk

Hinterhälter

Member
Oct 13, 2019
105
142
If I understand correctly, you use unren with option 1 which only unpacks RPA files. You need to go back to the menu and choose option 2.
The content in the RPA files is decided by the developer and can decide to include only the compiled ones (RPYC) or also the sources (RPY).
I actually did both.
First I simply extracted the rpa files with unren. Then went back and decompiled.
But that still didnt get me anywhere. Still only have unreadable rpyc files and a new decompiler folder with several python files that seem of no use.
So it seems the game doesnt contain the sources you mentioned. Maybe I have to give up altering this game.
 

GioBol

Engaged Member
May 19, 2021
3,348
17,269
If there are strange characters in the path, Unren-forall can still unpack RPAs, but it quits when it needs to decompile, leaving many files and workbooks that it should delete eventually. It happens like this to me.
I created a folder e:\temp and moved the game to be decompiled into this folder. Unren-forall works, decompiles, in the end I move the game folder where I want it.
Since I am a translator I move the game folder into the Ren'Py SDK folder for translation.
 
  • Red Heart
Reactions: Hinterhälter

Hinterhälter

Member
Oct 13, 2019
105
142
If there are strange characters in the path, Unren-forall can still unpack RPAs, but it quits when it needs to decompile, leaving many files and workbooks that it should delete eventually. It happens like this to me.
I created a folder e:\temp and moved the game to be decompiled into this folder. Unren-forall works, decompiles, in the end I move the game folder where I want it.
Since I am a translator I move the game folder into the Ren'Py SDK folder for translation.
Well that was actually very helpful ❤ did the same thing as you and now i got everything I wanted
Thank you very much
 
  • Like
Reactions: GioBol

timanuk

Member
Nov 15, 2017
115
111
When I wrote that it works, I meant that the games are now decompiled. So you can do it yourself. And I wished you luck, because the scenario files(and other scripts itself) in these games are a special kind of Japanese perverted art.:BootyTime:
Oh, you made a new version. Thank you! Now I can start translating the game.
 

timanuk

Member
Nov 15, 2017
115
111
VepsrP
Jeanne at the Clock Tower decompiled successfully.
But when I try to decompile Sona-Nyl of the Violet Shadows, I get stuck on script.rpy and the decompilation does not finish.
I can delete this file, but then I get stuck on tbox_28_1.rpy, flow.rpy, adv_subrootin.rpy and other files...
 
Last edited:

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,361
VepsrP
Jeanne at the Clock Tower decompiled successfully.
But when I try to decompile Sona-Nyl of the Violet Shadows, I get stuck on script.rpy and the decompilation does not finish.
I can delete this file, but then I get stuck on tbox_28_1.rpy, flow.rpy, adv_subrootin.rpy and other files...
Try this one. there are no more freezes.
 

timanuk

Member
Nov 15, 2017
115
111
Try this one. there are no more freezes.
I can't unpack the archives using this version (\rpatool.py': [Errno 2] No such file or directory)
So I took the latest version of the UnRen-forall.bat for unpacking.
After unpacking I put your UnRen-dev.bat in the folder with the game. Start decompilation and get error.
If you have successfully decompiled, could you send me the scenario folder?
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,361
I can't unpack the archives using this version (\rpatool.py': [Errno 2] No such file or directory)
So I took the latest version of the UnRen-forall.bat for unpacking.
After unpacking I put your UnRen-dev.bat in the folder with the game. Start decompilation and get error.
If you have successfully decompiled, could you send me the scenario folder?
I gave you the wrong version.:ROFLMAO: This is my development version. There is no decompression or decompilation tool in it.
This is right tool
 

Madeddy

Active Member
Dec 17, 2017
811
464
If I understand correctly...
You did.
Dev's can even disable the RPA usage. A RenPy standard setup can be used with all in one archive or its possible to categorize freely e.g. scripts-, images-, audio-, video.rpa etc.
...I can delete this file, but then I get stuck on tbox_28_1.rpy, flow.rpy, adv_subrootin.rpy and other files...
To which end? The decompiler goes anyway to the next file if the current fails.
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,361
You did.
Dev's can even disable the RPA usage. A RenPy standard setup can be used with all in one archive or its possible to categorize freely e.g. scripts-, images-, audio-, video.rpa etc.
To which end? The decompiler goes anyway to the next file if the current fails.
Not anymore, in his games not only revertable requires module replacement, but also another new data structure. To handle all possible cases, I threw deserialization into an infinite loop from which the program exits only in cases of successful decompilation. I will send the changes to GitHub later, then you can understand more what it is about.
 
  • Wow
Reactions: yoyomistro

Madeddy

Active Member
Dec 17, 2017
811
464
,,,in his games not only revertable requires module replacement, but also another new data structure.
As far as I've seen the games(Sona...) dev has written some subclasses of dict. RScript...*bla* and some "kriki.krik" or whatever. Because they're not in RenPy the decompiler has also no tooling to work trough them and it errors. At least that's my take on this.
will send the changes to GitHub
Appreciated. I'm curious.
 
  • Like
Reactions: yoyomistro

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,361
As far as I've seen the games(Sona...) dev has written some subclasses of dict. RScript...*bla* and some "kriki.krik" or whatever. Because they're not in RenPy the decompiler has also no tooling to work trough them and it errors. At least that's my take on this.

Appreciated. I'm curious.
Yeah, you right. I just posted the changes to GitHub. The right one is in the last commit.
 

Madeddy

Active Member
Dec 17, 2017
811
464
I gave you the wrong version. ... There is no decompression or decompilation tool in it. ...
You need to look out with him. ;)
Next time he gives you maybe a 0-byte file and says "try it now".

the last commit.
Yeah, nice. You did what i expected.
But in wouldn't always integrate such code in the common version of your unren version, as such changes are always just only for one game. Obviously its in the end however your call for your tool. Just my thoughts.

Request: Can someone please explain to me what in "unrpyc" this damned translate function is supposed to do. I never used this and can really not figure it out. Gives me a nearly empty file and BAHHHH! :WaitWhat:
 
Last edited:
  • Haha
Reactions: yoyomistro

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,361
You need to look out with him. ;)
Next time he gives you maybe a 0-byte file and says "try it now".
Maybe you should have signed who you wanted to tell :ROFLMAO:
Yeah, nice. You did what i expected.
But in wouldn't always integrate such code in the common version of your unren version, as such changes are always just only for one game. Obviously its in the end however your call for your tool. Just my thoughts.
In general, I agree with you, but making different versions for each game with unique data structures can be a problem in terms of management.
Request: Can someone please explain to me what in "unrpyc" this damned translate function is supposed to do. I never used this and can really not figure it out. Gives me a nearly empty file and BAHHHH! :WaitWhat:
You should probably contact the original creator of tool with this question.
 
  • Haha
Reactions: yoyomistro

Madeddy

Active Member
Dec 17, 2017
811
464
can be a problem in terms of management.
Understandable.
You should probably contact the original creator of tool with this question.
Sure, suuuure. :LUL:
I did ask and you know what? He doesn't really know (and not care) because he didnt write this stuff. GaaaHH! :poop:
I digged in the commit history and found in there, in the commit for it from "only" 8 years ago, the explanation how to use this. -> you need to do two runs over the files to get translations. Bonkers.

Anyway. Just dropping the bomb and on my way:
New is out.

Supports Ren'Py apps up to v7.7.x with Python 2. No py3 / RenPy 8 for now. Every change and bug from the last years should be fixed. Test it folks and report problems.
 
5.00 star(s) 3 Votes