Tool Ren'Py Ren'Py Transparent Text Box Mod v2.6.4

5.00 star(s) 6 Votes

Penfold Mole

Engaged Member
Respected User
May 22, 2017
2,890
6,564
You know, there is no zorder command at line 591 or anywhere near it. In fact, there is no "zorder 998" command anywhere in the latest or the previous version of my patch and currently I have no idea where it's coming from. I can not reproduce the error or find that line anywhere.

Are you sure that you are using the latest version of my patch?

BTW, the game is working just fine for me with the latest patch. I just downloaded and tried it.

Please, download the latest version of my patch from here and try again.
 
Last edited:

Penfold Mole

Engaged Member
Respected User
May 22, 2017
2,890
6,564
Well, shit's getting weird, because I don't have a style "mybutton" defined anywhere, either :ROFLMAO:. Not in the latest version, anyway. I don't remember about the previous ones, but the last one I just checked.

In this case it looks like there is a file named y_outline.rpy already added to the game by the dev, only an older version of my patch or a modified one. In this case they don't get along very well with the new one, not at the first attempt to start the game, anyway.

The things you could try to make it work:

  1. You could just try to start the game again after the first failure, without deleting anything before the first failed attempt. It should actually work the second time. In case it won't, try the next option:
  2. Extract the game content from the *.rpa archives in the "game" subfolder with the help of UnRen and add my patch only after that. If the game still doesn't work (but it actually should), try the third option:
  3. After you have extracted the content from *.rpa archive files, delete all *.rpa files from the "game" subfolder, patch the game again and start it again.
If you still get errors after trying the third option, let me know and I'll try to figure it out.


Let it be known, wonderful and thoughtful mod, DENOS CITY DOES NOT HAVE TEXT BOXES.
Therefore there is no need for this wonderful mod ... it might even be included,
as the problem arises from the duplicate entries.
View attachment 514288

You don't have permission to view the spoiler content. Log in or register now.
Yeah, this is because, as I already said, an older and possibly modified version of my patch already exists in the game.
The newer one might have a few improvements added, but not many. In case this is fine with you, you don't really need my patch.
If you still want to use the newest one, try to follow instructions above.
 

Penfold Mole

Engaged Member
Respected User
May 22, 2017
2,890
6,564
You're welcome!

There's no need to try next two if the first one worked.
#2 and #3 are there just for the unlikely case that Ren'Py engine itself somehow failed to follow its logic.
 
  • Like
Reactions: Namco15

UncleVT

Låt den rätta komma in
Moderator
Jul 2, 2017
9,417
97,502
Well, tried the second and the game doesn't crash, but...
Denos2.jpg
the quick menu is present after quick_menu=True and suppress_overlay=False in console, but I can't see it, just the hide button.
The buttons are there, if I click in the zone the function like save, load or skip works :)
 

Penfold Mole

Engaged Member
Respected User
May 22, 2017
2,890
6,564
Well, tried the second and the game doesn't crash, but...
View attachment 514327
the quick menu is present after quick_menu=True and suppress_overlay=False in console, but I can't see it, just the hide button.
The buttons are there, if I click in the zone the function like save, load or skip works :)
Thanks! This looks like something new that I haven't seen before.
Unfortunately, this also means that I don't have any quick fixes for it.

I'll check it out some time later to find out what exactly is the problem with this game and how to handle it. Probably needs some additional change in my patch to fix it.

And thank you very much for telling me about it. Every new problem you can find helps me to improve this patch to handle this kind of mishaps that haven't been covered yet.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Respected User
Donor
Jun 10, 2017
10,136
14,819
You know, there is no zorder command at line 591 or anywhere near it. In fact, there is no "zorder 998" [...]
And in top of that, it's the error triggered by unrpyc's bug (the tag on the screen declaration line). Like you include the rpy file in your distribution file, there's no reason for this to happen with the official version of your mod.


Well, shit's getting weird, because I don't have a style "mybutton" defined anywhere, either :ROFLMAO:.
And for this one, the error.txt file show that there's two versions of your mod. One being in the RPA fle, and the other directly in the directory.
Looking at the content of the said RPA file, there's effectively an "y_outline.rpy" file inside, that effectively have a "mybutton" style


My guess for those two problems is that someone include an (very) old version of your mod, or a tweaked one, into its distribution.

UncleVT , do you know if the last version of Denos City come directly from the author, or passed by some other hands before being uploaded here ?



Thanks! This looks like something new that I haven't seen before.
Unfortunately, this also means that I don't have any quick fixes for it.
I have it for you, thanks to a typo you made (forgetting the _ for the "hide" button) ; it happen because there's a problem of translation for the text of the buttons.
Remove the _( ) thing, and all should works perfectly ; you don't need to translate them, they aren't texts by symbols.
 
  • Like
Reactions: Penfold Mole

UncleVT

Låt den rätta komma in
Moderator
Jul 2, 2017
9,417
97,502
@UncleVT , do you know if the last version of Denos City come directly from the author, or passed by some other hands before being uploaded here ?
I'm not sure, but it seems to have passed through other hands.
I have it for you, thanks to a typo you made (forgetting the _ for the "hide" button) ; it happen because there's a problem of translation for the text of the buttons.
Remove the _( ) thing, and all should works perfectly ; you don't need to translate them, they aren't texts by symbols.
Well, I removed the _ and deleted y_outline.rpyc and still doesn't work
Den_En.jpg
but changed the idiom to Spanish and works!
Den_Spa.jpg

Then tried to back to the normal y_outline.rpy and broke the game again
when reload, the options in main menu doesn't show:
Denos.jpg
I'll download it again and keep trying.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Respected User
Donor
Jun 10, 2017
10,136
14,819
but changed the idiom to Spanish and works!
View attachment 517777
What, at least, confirm that the origin of the problem come from the translation. But it's strange, just removing the "_" should have been enough :/


I'll download it again and keep trying.
No need for that, the core of the problem come from the fact that the mod is also included in the RPA of the game. It's what broke the game.

But to solve the problem you need to delete this fucking copy that have no reason to be here :(
 

UncleVT

Låt den rätta komma in
Moderator
Jul 2, 2017
9,417
97,502
Update:
Downloaded again, didn't extract the rpa files, didn't apply this mod, enabled the quick menu in console and the results are the same:
In Spanish version the quick menu shows exactly like the mod.
In English version only shows the hide button.
But to solve the problem you need to delete this fucking copy that have no reason to be here
I think the whole issue is because a bug made by the developer in the english version. The game works fine (I reached the final of the version without any other bugs). BTW, by default the Dev set the quick menu not to be displayed.
 
  • Like
Reactions: Penfold Mole

Penfold Mole

Engaged Member
Respected User
May 22, 2017
2,890
6,564
And in top of that, it's the error triggered by unrpyc's bug (the tag on the screen declaration line). Like you include the rpy file in your distribution file, there's no reason for this to happen with the official version of your mod.
I guessed that this could be the reason.
UnRen v0.9 development version seems to be free from it and working fine otherwise. It's what I've been using myself lately.

And for this one, the error.txt file show that there's two versions of your mod. One being in the RPA fle, and the other directly in the directory.
Looking at the content of the said RPA file, there's effectively an "y_outline.rpy" file inside, that effectively have a "mybutton" style


My guess for those two problems is that someone include an (very) old version of your mod, or a tweaked one, into its distribution.
Yes, that was quite obvious. My suggestion to extract rpa archives and then patch the game to replace that old version seemed to work.

UncleVT , do you know if the last version of Denos City come directly from the author, or passed by some other hands before being uploaded here ?
This has been highly likely made by the dev himself, otherwise there wouldn't be translation files for y_outline.rpy in there. Quite a few, maybe more than 5 already seem to be doing the same, only a few have been nice to ask first :ROFLMAO:
I don't really mind, but it creates some problems with these games when players are trying to apply my patch on top of it later, as we can see here.

I have it for you, thanks to a typo you made (forgetting the _ for the "hide" button) ; it happen because there's a problem of translation for the text of the buttons.
Remove the _( ) thing, and all should works perfectly ; you don't need to translate them, they aren't texts by symbols.
Thank you! I actually never noticed that missing underscore _ there. And as you can guess, I had no idea why the syntax of text buttons in the original Ren'Py code looks like that. I mean about the combination of the underscore and brackets around the button text.
As I understand from what you said, _( ) around some text that is not something that a character says just means that this text gets to be included to translation files, otherwise it won't.
And this is exactly what we can see in Denos City's case, where original code is in Spanish, the game has been patched with my patch before generating translation files and translation file of the y_outline.rpy hasn't been "translated" - all English strings in there are blanks. Probably because quick menu is disabled and unused in this game and the actual code being used is about ten lines or so :rolleyes: - only the part that makes dialog box invisible and creates outlines.

I tried to delete translation files of y_outline as an easy solution, but then the game won't even start any more after that. Well, it starts, but the main menu won't show up. I'm guessing that it's because my patch was there before generating English translation files for the game.
So now I actually repaired that translation file, filled English blanks with the same strings as in Spanish and now it seems to work.

UncleVT ,
Extract attached archive into the root folder of the game and try to load one of the saves. It should work.

By the way, as in other games where Quick Menu has been disabled by the developer somewhere after the label "start", quick menu won't appear in Denos City when you start a new game. You have to save the game once and then load it again to activate the menu ;). One Quick Save and Quick Load will do just fine.
/Note to self
I should add this to the OP, under "known problems", actually. :rolleyes:


_______________________________________
About the transparency patch itself...

Now I removed brackets and underscore from the buttons that should never be translated and added them to tooltips instead, so they could. I will release it like that in the next version.
Thank you for telling me about this feature of Ren'Py, Anne!
 
5.00 star(s) 6 Votes