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

5.00 star(s) 3 Votes

yoyomistro

Engaged Member
Jan 15, 2017
2,679
3,338
Hi there again.
Was trying 7.5.0 as 0.91 had caused the following.

The label DarkEnding is defined twice, at File "game/Final.rpy", line 720:
label DarkEnding:
and File "game/Ver0,15.rpy", line 3063:
label DarkEnding

If unren-console.rpy and the .rpyc file are removed from the folder the error does not happen.
Comments Please.
Thanks.
Some games have 2 of the same label in the RPA file but it doesn't trigger a conflict when they are packaged. As soon as you unpack it, the conflict is no longer allowed (at least I think that's how it works, never have issues with duplicates with packed RPAs...). One way to solve it is to check if the labels are identical, and if so, delete one of them. Another way to solve it is to add the config.allow_duplicate_labels command preferably under an init block. I don't remember if it has any requirements like a substatement or anything but it should work on its own.
 
  • Like
Reactions: DavidCF

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,360
Hi there again.
Was trying 7.5.0 as 0.91 had caused the following.

The label DarkEnding is defined twice, at File "game/Final.rpy", line 720:
label DarkEnding:
and File "game/Ver0,15.rpy", line 3063:
label DarkEnding

If unren-console.rpy and the .rpyc file are removed from the folder the error does not happen.
Comments Please.
Thanks.
What kind of games are we talking about? Personally, I have never seen such a thing anywhere. :unsure:
 

LightmanP

Well-Known Member
Modder
Game Developer
Oct 5, 2020
1,657
15,208
Hi there again.
Was trying 7.5.0 as 0.91 had caused the following.

The label DarkEnding is defined twice, at File "game/Final.rpy", line 720:
label DarkEnding:
and File "game/Ver0,15.rpy", line 3063:
label DarkEnding

If unren-console.rpy and the .rpyc file are removed from the folder the error does not happen.
Comments Please.
Thanks.
This is an issue with game's code, not unren. You can try removing the config.developer part from unren-console.rpy and just keep the console enabled, that may help. The dev mode will show all errors.
 

yoyomistro

Engaged Member
Jan 15, 2017
2,679
3,338
What kind of games are we talking about? Personally, I have never seen such a thing anywhere. :unsure:
Sometimes it happens if the dev uses separate .rpas for updates and the same label exists in multiple RPAs, or some devs name a replay label with the same name as the in game label and it doesn't cause issues until it's unpacked.
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,360
Sometimes it happens if the dev uses separate .rpas for updates and the same label exists in multiple RPAs, or some devs name a replay label with the same name as the in game label and it doesn't cause issues until it's unpacked.
It's strange, but I've never come across a game with such a problem. :unsure: After all, I unpack and decompile every game I play.
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,360
Hmm, there's no "lib\pythonlib2.7" nor a "lib\windows-i686\Lib" directory in IWH... (but maybe I can't follow you what the actual problem is... ^^)
You don't have to think about this problem anymore. I was able to solve it by returning "-O" between Python and the script being run, as it was originally. It turned out to be a useful key in some cases. And I thought it was useless. :BootyTime:
 

yoyomistro

Engaged Member
Jan 15, 2017
2,679
3,338
It's strange, but I've never come across a game with such a problem. :unsure: After all, I unpack and decompile every game I play.
I've had that problem with some older versions of Max's Life a few years ago; not so much anymore but Kuggazer would have repeated labels for updated events in different versions, and he'd just add a new RPA with that version name instead of replacing the old RPAs with updated content. I've run into it in a few other games but I can't remember off the top and I'm bad at documenting anomalies like that even though they annoy me lol.
 

Bloo

The Angry Person
Former Staff
Aug 18, 2016
2,970
29,149
Can't seem to change the Quick Save/Load to other keys (Q & W) by changing it to set "quicksavekey=K_q" and set "quickloadkey=K_w" in this version, any idea how to do so?
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,360
Can't seem to change the Quick Save/Load to other keys (Q & W) by changing it to set "quicksavekey=K_q" and set "quickloadkey=K_w" in this version, any idea how to do so?
I just encoded the code in Base64. You can recode it back, change it as you like, encode it again and replace it in the line "set unren-quick01"
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,360
Another large-scale update. Support for games starting at least with the engine 7.0.0. Support for .pea archives. Decompilation without overwriting old files. As always, if there are games that will cause problems, let me know.
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,360
Your issue already contains the answer. According to the instructions in the OP, the program requires PowerShell, which you do not have (as reported in the first line). Just install it. It is quite possible that you do not have the first version, but there are newer ones. It is necessary to install it.
 

kevcolqaz

Active Member
Jan 10, 2019
671
796
Your issue already contains the answer. According to the instructions in the OP, the program requires PowerShell, which you do not have (as reported in the first line). Just install it. It is quite possible that you do not have the first version, but there are newer ones. It is necessary to install it.
i have power shell installed and python installed in my application drive.
 

VepsrP

Well-Known Member
Modder
Dec 13, 2017
1,387
1,360
i have power shell installed and python installed in my application drive.
Python is taken from the game itself, so it is not needed, but PowerShell is searched for along the path "system32\WindowsPowerShell\v1.0\powershell.exe" and if it is not there, then the program is considered missing. Check this path, and if it's empty, install PowerShell version 1.
 

kevcolqaz

Active Member
Jan 10, 2019
671
796
Python is taken from the game itself, so it is not needed, but PowerShell is searched for along the path "system32\WindowsPowerShell\v1.0\powershell.exe" and if it is not there, then the program is considered missing. Check this path, and if it's empty, install PowerShell version 1.
1660512690541.png

its there still same error, it was working fine till last week , after that it changed.
 

gnadudu

Well-Known Member
Aug 31, 2018
1,845
2,723
You don't have to think about this problem anymore. I was able to solve it by returning "-O" between Python and the script being run, as it was originally. It turned out to be a useful key in some cases. And I thought it was useless. :BootyTime:
Sorry, didn't have time to look into it, but congrats on the 7.x+ version of Unren. (y)
 
  • Like
Reactions: VepsrP
5.00 star(s) 3 Votes