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

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Jack_shandy
Newbie
Posts: 10
Joined: Tue Feb 07, 2017 11:39 pm
Contact:

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

#1 Post 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 471 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?
Last edited by Jack_shandy on Thu Sep 16, 2021 4:41 am, edited 1 time in total.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3784
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

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

#2 Post by Imperf3kt »

Are these individual lines of dialogue, or one large entry?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Jack_shandy
Newbie
Posts: 10
Joined: Tue Feb 07, 2017 11:39 pm
Contact:

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

#3 Post 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.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2376
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

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

#4 Post 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)
< < insert Rick Cook quote here > >

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

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

#5 Post 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"

Jack_shandy
Newbie
Posts: 10
Joined: Tue Feb 07, 2017 11:39 pm
Contact:

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

#6 Post 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.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

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

#7 Post by rayminator »

did you downscale the window size

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

Post Reply

Who is online

Users browsing this forum: Google [Bot]