Page 1 of 1

[SOLVED] "Exception: Fixed Fit Width is too large"

Posted: Tue Sep 14, 2021 4:50 am
by Jack_shandy
Hi everyone,

I'm having an issue where all the text is overlapping on my history screen.
Untitled-2.png
Untitled-2.png (128.11 KiB) Viewed 597 times
I've figured out that the issue is this line here.

Code: Select all

## The height of a history screen entry, or None to make the height variable at
## the cost of performance.
define gui.history_height = 66 #None
The height is always at 66 no matter how much text a piece of dialogue has, so anything with more than 2 lines of text begins to overlap.

To fix this issue, I've tried editing the line to "None" as the comment suggests.

Code: Select all

## The height of a history screen entry, or None to make the height variable at
## the cost of performance.
define gui.history_height = None
Whenever I do this, then enter the history screen, the game crashes and I get the following error:
I'm sorry, but an uncaught exception occurred.

While running game code:
File "renpy/common/00gamemenu.rpy", line 173, in script
$ ui.interact()
File "renpy/common/00gamemenu.rpy", line 173, in <module>
$ ui.interact()
Exception: Fixed fit width (32767.0) is too large.
What does this mean? I couldn't find this error with a google search. How can I fix this error and get a variable height for the dialogue on my history screen?

Re: "Exception: Fixed Fit Width is too large"

Posted: Tue Sep 14, 2021 6:08 am
by Imperf3kt
Are these individual lines of dialogue, or one large entry?

Re: "Exception: Fixed Fit Width is too large"

Posted: Wed Sep 15, 2021 4:53 am
by Jack_shandy
Individual lines of dialogue.

In this example, the lines are:

"This maybe happened, or maybe did not."
"The time is long past, and much is forgot."
"Back in the old days, when wishing worked, your mother had twelve children and had to work night and day just to feed them."
"When you were born as the thirteenth, she had no idea what to do. She took you up in her arms and ran right out into the darkness of the forest, promising that she would ask the first man she met to be your Godfather."

I've tried deleting everything out of the script except for these 4 lines and it still gives the error.

Re: "Exception: Fixed Fit Width is too large"

Posted: Wed Sep 15, 2021 7:36 am
by Ocelot
IS this a standard history screen? Were there any changes to it? It looks like position of each element is set manually instead of relying on any container (this might be why size was set explicitely)

Re: "Exception: Fixed Fit Width is too large"

Posted: Wed Sep 15, 2021 11:13 am
by rayminator
have you modify the history page?

try using yspacing 5 or 10 for the text

or cut this sentence down to two parts

"When you were born as the thirteenth, she had no idea what to do. She took you up in her arms and ran right out into the darkness of the forest, promising that she would ask the first man she met to be your Godfather."

look something like this don't this one mine has been modified

Code: Select all

style history_text: <--- search for this
    yspacing 10 < ----- this
    xpos gui.history_text_xpos
    ypos gui.history_text_ypos
    #xanchor gui.history_text_xalign
    xsize 1920
    #min_width 1920
    #text_align gui.history_text_xalign
    #layout ("subtitle" if gui.history_text_xalign else "tex")
    color "#0099cc"
    outlines [(5, "#111111", 0, 0)]
    font "font/foo_regular.ttf"

Re: "Exception: Fixed Fit Width is too large"

Posted: Thu Sep 16, 2021 4:41 am
by Jack_shandy
Hi everyone,

Thank you for all your help and suggestions.

I'm very confused but, when I opened renpy tonight to try implementing them, the error was gone. I have no idea what happened to fix it... I didn't change anything, and I'm using the same PC I was last time. I even tried reverting the project to previous versions and still couldn't replicate the error.

The history is now displaying as I want, with a variable amount of space that fits each piece of text.
Untitled-2.png
Thanks again to everyone. I'll keep going and see if the error pops up again.

Re: [SOLVED] "Exception: Fixed Fit Width is too large"

Posted: Thu Sep 16, 2021 10:47 am
by rayminator
did you downscale the window size

like this it sometime doesn't downscale right
2.png