Tool Ren'Py UnRen.bat v1.0.11d - RPA Extractor, RPYC Decompiler, Console/Developer Menu Enabler

5.00 star(s) 9 Votes

ktemanuel

Engaged Member
Mar 17, 2019
2,311
3,139
hello i am trying to translate the game CURVY_COUGARS_STREET-1.1-pc I follow the indications of v01d_08 of your tutorials
place the unrev file and then hit 1 Extract RPA Packages and 2 Decompile rpyc then I press 2 and the errors start is there any way to unzip that

PHP:
 Creating _unrpyc.cab...

  Extracting _unrpyc.cab...
  Searching for rpyc files...
   + Decompiling "000.rpyc" - 16861 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "aaa.rpyc" - 172 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "admin.rpyc" - 5646 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "adultstore.rpyc" - 33757 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "alisa.rpyc" - 20401 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "anais.rpyc" - 41455 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "ava.rpyc" - 35147 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "axelle.rpyc" - 23544 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "bank.rpyc" - 18562 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "barbara.rpyc" - 24542 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "boris.rpyc" - 10843 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "canal.rpyc" - 6465 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "chili.rpyc" - 76194 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "cinema.rpyc" - 9573 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "credit.rpyc" - 4118 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "cynthia.rpyc" - 53425 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "dialogues.rpyc" - 449142 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "diane.rpyc" - 141525 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "eglise.rpyc" - 11489 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "elke.rpyc" - 24329 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "fiby.rpyc" - 24638 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "fitness.rpyc" - 19882 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "gui.rpyc" - 20448 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "hoffmann.rpyc" - 96684 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "home.rpyc" - 53707 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "immeuble.rpyc" - 172 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "init.rpyc" - 36148 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "jennifer.rpyc" - 30421 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "karmen.rpyc" - 7483 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "kirsten.rpyc" - 22159 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "lina.rpyc" - 48277 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "madison.rpyc" - 31005 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "mairie.rpyc" - 46782 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "map.rpyc" - 150392 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "market.rpyc" - 39851 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "mc.rpyc" - 55281 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "motel.rpyc" - 24424 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "nicolette.rpyc" - 30334 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "options.rpyc" - 4712 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "panel.rpyc" - 25120 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "pharmacy.rpyc" - 27979 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "police.rpyc" - 7976 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "porn.rpyc" - 379828 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "porn_img.rpyc" - 122890 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "qg_derza.rpyc" - 8373 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "rachel.rpyc" - 35013 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "screens.rpyc" - 77476 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "script.rpyc" - 12826 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "selena.rpyc" - 52129 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "selena_mh.rpyc" - 15784 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "sharon.rpyc" - 36224 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "tasha.rpyc" - 59760 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "tatyana.rpyc" - 39890 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "telephone.rpyc" - 68847 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "university.rpyc" - 9038 bytes
      Output file already exists
      Decompilation of 1 file failed
   + Decompiling "yelena.rpyc" - 40502 bytes
      Output file already exists
      Decompilation of 1 file failed

  Cleaning up temporary files...
 

Madeddy

Active Member
Dec 17, 2017
814
468
...they were decompiled from previous versions since when a new update is released, I extract and over-write existing files rather than fill my hard drive...
Understandable.
Also, I have wondered if some developers were leaving "lesser" files in place as a simple version of anti-sharing.
...
This would not work. You have a misconception about this src file/compiled file duo's behavior. If they dont match, RenPy compiles the rpyc from the rpy again. You would end up with a broken game if this differs.

Any idea what causes this problem when running unren V8 & V9
There exist NO UnRen versions V8 or V9. If you mean v0.8 or v0.9-dev then write it correctly! It cause confusion
Found it I think.
The lib folder windows-i686 only has 12 files in it.
There is also a windows-x86_64 folder which has the same 12 files in it.
Normally there would be 27 files.
Is this the cause of the issue?
...
No, thats a mistake. RenPy has now also 64 bit support for win but the bit versions not are the issue in this case. (Unren doesnt find python then.)
The unrpyc version inside unren is simply too old. Thats it. First thread post is a link t unrpyc github, get the last v. -- if youre able to work with python.

This ALL was on the last few pages multiple times in detail explained. If you want to know more about this, read it up there please.

ktemanuel Äh what? The output says clearly whats going on. Output file already exists Nothing is wrong. The rpy files are already there. RPYC files are just a somewhat restructured version of a RPY file. Compiled ...
 
Last edited:

Trminator

Member
May 3, 2017
246
601
No, doesnt work with UnRen in any current (old)version. RenPy internals changed too much and UnRen's embeded unrpyc is too old. For decompiling you should use the current v1.1.5 separately from Unren.
Any chance to get UnRen.bat updated?
 

Madeddy

Active Member
Dec 17, 2017
814
468
Any chance to get UnRen.bat updated?
No.
I did already much of the python rewrite of UnRen. People who are a bit python experienced can play some around with it if they want: Or contribute even.
That's still WIP !
 
  • Like
Reactions: Trminator

Tomy234567

New Member
Jan 21, 2018
3
4
I use this methode from this website to workaround this issue :

at the end of the page it tels about an experimental single file(un.rpyc) available at

download, put in the game directory and launch the game, this trigger the decompiling...
It seems to work...
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,367
Updated UnRen.bat v0.9-dev. This is just my modification with support for the latest version of unrpyc. I didn't change anything else.
 
  • Like
Reactions: Lgn332

yhj3388

Newbie
Game Developer
Mar 16, 2019
18
7
[QUOTE =“ VepsrP,帖子:5091633,成员:329951”]
更新了UnRen.bat v0.9-dev。这只是我对unrpyc最新版本的支持而进行的修改。我什么都没改变。

[/引用]
Updated UnRen.bat v0.9-dev. This is just my modification with support for the latest version of unrpyc. I didn't change anything else.
Is renpy7.4 supported?
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,367
[QUOTE =“ VepsrP,帖子:5091633,成员:329951”]
更新了UnRen.bat v0.9-dev。这只是我对unrpyc最新版本的支持而进行的修改。我什么都没改变。

[/引用]

Is renpy7.4 supported?
Thank you for reminding me what I was really doing this job for. Checked on the latest version of the game Apartment 69, which runs on Renpy 7.4.2. Fixed the problem, now everything works fine. I attach the final version.
 

Walter Victor

Forum Fanatic
Dec 27, 2017
5,683
19,620
In the new game Mythos: Book One, UnRen.bat is giving me the error message Cannot locate python.exe, unable to continue. Are you sure we're in the game's root directory? Yes, I am sure. I've done this (literally) hundreds of times. What is different about this game? I used 3 different versions of UnRen.bat and got the same error. The game starts up fine, but, of course, I can't pull up the Developer Menu or enter Console commands.
 

Madeddy

Active Member
Dec 17, 2017
814
468
Please, next time link to the thread of the problem-game in question . (To all folks who read this! We helpers need to search every time.)

Anyway, found it, did take a look. As expected.
In the new game Mythos: Book One, UnRen.bat is giving me the error message Cannot locate python.exe, unable to continue....
Thats no surprise Walter. This game has just 64 bit py(new for win since renpy 7.4) and unren does nor search for it. And the error msg(Cannot ...) is also not very sophisticated. Yeah.
 
  • Like
Reactions: Walter Victor

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,367
Please, next time link to the thread of the problem-game in question . (To all folks who read this! We helpers need to search every time.)

Anyway, found it, did take a look. As expected.
Thats no surprise Walter. This game has just 64 bit py(new for win since renpy 7.4) and unren does nor search for it. And the error msg(Cannot ...) is also not very sophisticated. Yeah.
Does the game really only use 64-bit python? If so, I will deal with this issue later.
 
  • Like
Reactions: Walter Victor

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,367
In the new game Mythos: Book One, UnRen.bat is giving me the error message Cannot locate python.exe, unable to continue. Are you sure we're in the game's root directory? Yes, I am sure. I've done this (literally) hundreds of times. What is different about this game? I used 3 different versions of UnRen.bat and got the same error. The game starts up fine, but, of course, I can't pull up the Developer Menu or enter Console commands.
Modified the code to work on games that only support 64 bits. Surprisingly, the Mythos really only has this version. Personally checked, everything should work. The new version is attached to this message.
Upd: After using decompilation on the game, it stopped working correctly. Crashes after the greeting. Probably some problems with decompiling complex code, the benefit of the game is immediately unpacked and with the source code files. In addition, this script now works only from the root folder. No "game" folder.
 
Last edited:

Walter Victor

Forum Fanatic
Dec 27, 2017
5,683
19,620
Please, next time link to the thread of the problem-game in question . (To all folks who read this! We helpers need to search every time.)
MY BAD!!! My abject apologies for not thinking about what might be needed. Thank you for looking into it despite my blunder.
 
  • Hey there
Reactions: Madeddy

Walter Victor

Forum Fanatic
Dec 27, 2017
5,683
19,620
Modified the code to work on games that only support 64 bits. Surprisingly, the Mythos really only has this version. Personally checked, everything should work. The new version is attached to this message.
Upd: After using decompilation on the game, it stopped working correctly. Crashes after the greeting. Probably some problems with decompiling complex code, the benefit of the game is immediately unpacked and with the source code files. In addition, this script now works only from the root folder. No "game" folder.
Yup. Game now crashes with any use of your latest version. Had to delete the folder and unpack the zip file again to get it to start.

Oh well. I'll just put this game on hold for awhile. Thanks.
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,367
Yup. Game now crashes with any use of your latest version. Had to delete the folder and unpack the zip file again to get it to start.

Oh well. I'll just put this game on hold for awhile. Thanks.
So why do decompilation at all, if the game already has all the .rpy files?
 

Walter Victor

Forum Fanatic
Dec 27, 2017
5,683
19,620
So why do decompilation at all, if the game already has all the .rpy files?
While decompilation is not necessary when the .rpy files are present, I want to have the ability to view the Developer Menu and access the Console (option 3 of UnRen). It is the only way to check the current value of a variable, change a variable, or to jump to a different part of the code within the game itself. I COULD just hardcode a variable in the code, or write a jump into it, but that is messy and invites problems, and would have to be repeated in every future release. I have done that, by the way, to access multiple paths in the same playthrough in one of the games I play, but it would get tedious to do it too often.
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,367
While decompilation is not necessary when the .rpy files are present, I want to have the ability to view the Developer Menu and access the Console (option 3 of UnRen). It is the only way to check the current value of a variable, change a variable, or to jump to a different part of the code within the game itself. I COULD just hardcode a variable in the code, or write a jump into it, but that is messy and invites problems, and would have to be repeated in every future release. I have done that, by the way, to access multiple paths in the same playthrough in one of the games I play, but it would get tedious to do it too often.
option 3 works without complaints, I just checked it. (y)
 
5.00 star(s) 9 Votes