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

5.00 star(s) 6 Votes

Walter Victor

Forum Fanatic
Dec 27, 2017
5,553
19,302
You know that you can change that ingame?
As far as I love this patch, and use it quite often, you don't need in Price of Power.
Oh crap! I didn't notice the Dialogue Box Opacity slider at the bottom of the Preferences screen. :FacePalm: So much for my powers of observation!

I'm glad you brought it to my attention. Tried it and it works fine. Thanks.

I'll just slink away now...
 
  • Like
Reactions: Penfold Mole

neman

Member
Jan 5, 2020
247
246
Penfold Mole
Need your help.
There is game no more money , but coding is way too weird. I am unable to make text to look normally once background is removed. Text is hard coded white , no shadows, outlines , nothing. Its extremely painful trying to read anything.
Any suggestion how to adapt this to fix that?



Edit:
Actually made it, finally.

C:
    if config.name == "No More Money" or "No More Money - GOLD": 

        style say_label:
            font "DejaVuSans.ttf"
            size 33
            bold True
            color "#FFF"
        screen say(who, what):
            style_prefix "say"

            window:
                id "window"

                if who is not None:

                    window:
                        id "namebox"
                        style "namebox"
                        text who id "who"

                text what id "what"

            if not renpy.variant("small"):
                add SideImage() xalign 0.0 yalign 1.0
 
Last edited:
  • Like
Reactions: Penfold Mole

zombhunt

Member
Jun 10, 2020
105
186
i tried using this with "Battle of the bulges" and "Apocalypse", .....it works except the text is very hard to read (white text no outline). Is there a way to fix this?
 
Last edited:

Cena2001

Member
May 12, 2021
370
630
Hyy guys I mean porting games for Android

But those ports are not good
Half of the screen has black box
Can't even adjust the text so can anyone pls help me with it
I want to improve my ports
 
Aug 22, 2021
222
264
Wow, if only I knew about this earlier.
Testing v2.6.3 now and it is working on Family By Fate v0.3.
But not working on Bad Memories v0.7.1 with Sancho Multi Mod.

Edit:
For Family By Fate - a bit into the game - there is so much text sometimes that all the text is not visable.
As a quick fix I changed the font size by adding "size 35" to line 250.
Code:
 color "#FFFFFF" size 35
 
Last edited:

depechedNode

Well-Known Member
Oct 10, 2017
1,779
3,715
This mod unfortunately changes too much and isn't usable with games that have custom buttons in the quick menu (the small gray text at the bottom).
I wish it would just make the textbox transparent and add black outlines, but nothing else.
Try this one and see if it helps. I had removed quick menu changes and using it for a long time, so it's an older version:
 

dacris69

M, TI
Donor
Nov 20, 2017
2,109
6,014
anyone playing this game with the mod https://f95zone.to/threads/mythic-manor-v0-18-1-jikei.9201/
i get a crash at launch

I'm sorry, but an uncaught exception occurred.

After initialization, but before game start.
File "game/screens.rpy", line 1675, in prepare_screen
File "game/screens.rpy", line 1675, in prepare
File "game/screens.rpy", line 1680, in prepare
File "game/screens.rpy", line 1680, in prepare
File "game/screens.rpy", line 1686, in prepare
File "game/screens.rpy", line 1686, in prepare
File "game/screens.rpy", line 1686, in <module>
AttributeError: 'StoreModule' object has no attribute 'quick_button_text_size'

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "renpy/bootstrap.py", line 331, in bootstrap
renpy.main.main()
File "renpy/main.py", line 652, in main
run(restart)
File "renpy/main.py", line 97, in run
renpy.display.screen.prepare_screens()
File "renpy/display/screen.py", line 955, in prepare_screens
s.ast.prepare_screen()
File "game/screens.rpy", line 1675, in prepare_screen
File "game/screens.rpy", line 1675, in prepare
File "game/screens.rpy", line 1680, in prepare
File "game/screens.rpy", line 1680, in prepare
File "game/screens.rpy", line 1686, in prepare
File "game/screens.rpy", line 1686, in prepare
File "renpy/python.py", line 2269, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/screens.rpy", line 1686, in <module>
AttributeError: 'StoreModule' object has no attribute 'quick_button_text_size'
 

depechedNode

Well-Known Member
Oct 10, 2017
1,779
3,715
anyone playing this game with the mod https://f95zone.to/threads/mythic-manor-v0-18-1-jikei.9201/
i get a crash at launch

I'm sorry, but an uncaught exception occurred.

After initialization, but before game start.
File "game/screens.rpy", line 1675, in prepare_screen
File "game/screens.rpy", line 1675, in prepare
File "game/screens.rpy", line 1680, in prepare
File "game/screens.rpy", line 1680, in prepare
File "game/screens.rpy", line 1686, in prepare
File "game/screens.rpy", line 1686, in prepare
File "game/screens.rpy", line 1686, in <module>
AttributeError: 'StoreModule' object has no attribute 'quick_button_text_size'

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "renpy/bootstrap.py", line 331, in bootstrap
renpy.main.main()
File "renpy/main.py", line 652, in main
run(restart)
File "renpy/main.py", line 97, in run
renpy.display.screen.prepare_screens()
File "renpy/display/screen.py", line 955, in prepare_screens
s.ast.prepare_screen()
File "game/screens.rpy", line 1675, in prepare_screen
File "game/screens.rpy", line 1675, in prepare
File "game/screens.rpy", line 1680, in prepare
File "game/screens.rpy", line 1680, in prepare
File "game/screens.rpy", line 1686, in prepare
File "game/screens.rpy", line 1686, in prepare
File "renpy/python.py", line 2269, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/screens.rpy", line 1686, in <module>
AttributeError: 'StoreModule' object has no attribute 'quick_button_text_size'
It crashes because of the Quick Menu modification by the mod. Try my edited version of the mod posted above, it doesn't crash for me.
 

Macamazon

Newbie
Oct 17, 2017
16
1
hello i am using google translator.

I would like your help, I have been looking for some tool or mod for renpy that can help me.

In some games renpy is missing.

Text Size
Textbox Opacity

Thanks to your mod I managed to solve the problem with Textbox Opacity.

But Text Size is still missing, this is preventing me from playing some games because this function is missing.

In some games the text size and textbox opacity is too messy, can you solve it? Please.
 

Penfold Mole

Engaged Member
Respected User
May 22, 2017
2,873
6,487
In the current version the size of the quick menu is set to 1/60 of the vertical resolution of the game (config.screen_height). On a PC screen it seems reasonable, unless the game has a 4K resolution.

If you want to make it larger, open the y_outline.rpy file and search for the comment
#########
## quick menu button text style

and change the divider value of the size statement in the quick_button_text style to your liking.
size int(config.screen_height / 60)

It should be somewhere around line number 290.

I really have no idea how small is too small for you or how small the menu is in the game you are talking about, in case it is some specific game.

Hey there, love your mod but can you make a toggle to disable the quick menu?
Alt+m does that.

How do I hide the quick menu? I've tried the one in lemmasoft but It didn't work
I'm not sure what you are talking about, the quick menu in my patch or Ren'Py quick menu in general. My quick menu can be toggled by Alt+m key combination, but there are no controls in the Ren'Py by default to do the same. You can switch off and on the quick menu by changing quick_menu variable to True or False. Also, suppress_overlay has to be False to enable quick menu.

hello i am using google translator.

I would like your help, I have been looking for some tool or mod for renpy that can help me.

In some games renpy is missing.

Text Size
Textbox Opacity

Thanks to your mod I managed to solve the problem with Textbox Opacity.

But Text Size is still missing, this is preventing me from playing some games because this function is missing.

In some games the text size and textbox opacity is too messy, can you solve it? Please.
Sorry, but text size adjustment and dialog box opacity adjustment are not parts of the default renpy configuration and interface script files. They are custom made for each game and there is no way to change them all using a single method that works for all of them.
There is a potential solution to simply create a dialog box that overrides the one built into the game, but that solution has its own problems and works with even smaller number of games than the current patch does. And I haven't figured out yet, how to add opacity adjustment into such patch. It's much easier to do in the game itself than an overriding universal patch, as it seems.

In the latest version of Sunshine Love v0.0.8. I am getting this crash on start with this installed.
You don't have permission to view the spoiler content. Log in or register now.
It happens because Sunshine Love is messing with the label overrides system that is built into the Ren'Py. I remember having that problem in July last year when I tried to play it. I don't remember exactly what the game does there to Ren'Py, but it wasn't nice and I think it could have been done differently.
However, modifying game code seemed like a lot of work and it was easier to remove the whole after_load system from the patch. Modified patch file is attached here.
If I remember correctly, the whole after_load label system of Ren'Py is broken in this game.

i tried using this with "Battle of the bulges" and "Apocalypse", .....it works except the text is very hard to read (white text no outline). Is there a way to fix this?
I haven't played nor downloaded those games, but I'm guessing that the problem could be the same as it is in many other games - text styles have been hardcoded into every character definition in the game.
You could try my say_arguments_override.rpy patch attached here and see if it helps.

Just be warned that it may not work at all if the problem is not with the say arguments in character definitions and in one game I tried to use it, it messed up the game somehow. I don't remember exactly how, but be warned and ready to remove it in case it does something unexpected. Keep in mind that you have to remove 2 files: say_arguments_override.rpy and say_arguments_override.rpyc to remove this patch.
 
Last edited:

TheRipper007

Newbie
Apr 28, 2019
16
3
Hi there,
as my eyesight is very bad, I would kind of need the exact opposite of this mod. I need a mod, which allows me ADD an adjustable textbox background to games, where the textbox is 100% transparent. This makes makes it much easier for me to read.
Does a mod doing this also exist?
I know, that's kind of off topic, but the nearest match I counld find to solve my problem.
Thanks
 

Canto Forte

Post Pro
Jul 10, 2017
20,942
25,589
We are trying to see the whole pictures ... that you see even in books.
Why do you reckon in comics we get speech bubbles?
Precisely so you can actually see the action and not read white text on black screen.
Are you not tired of DOS already?
Real games do not cover 45-70% of the screen in black goo so you can read.
 
  • Red Heart
Reactions: ziggy81
5.00 star(s) 6 Votes