Europa Universalis IV

Europa Universalis IV

Better UI 2 - Verdana Font
Sinner 31 Oct, 2021 @ 5:43pm
[1.31.6] CTD
Hey @Batziy, the mod is currently causing a crash in game version 1.31.6 (Sept 30 2021). Better UI 2 run by itself does not cause a crash, only when this font mod is applied. Thanks!
< >
Showing 1-10 of 10 comments
grotaclas 31 Oct, 2021 @ 7:04pm 
If anybody wants to fix their mod manually, they can add the following code in line 596 of the file interface/frontend.gui in the mod (after the login_logout_button section):
checkboxType = { name = "epic_button" position = { x = 177 y = 8 } quadTextureSprite ="GFX_login_epic_logout_button" }
Doing this avoids the crash for me.

For some reason the game displays this epic button even in steam versions of the game and crashes if it is not defined.

@Batzly: you might also want to incorporate the other changes to the
PersistentSocialButtons section of frontend.gui which were done in 1.30 (the buttons were moved a little) and 1.31.6 (the buttons got different positions for resolutions below 1080p).

Edit: quadTextureSprite and GFX_login_epic_logout_button should be on the same line
Edit2: if you can't reproduce the crash, try it on Windows. Linux is not affected, because it doesn't have the epic button(maybe macOS isn't affected either)
Last edited by grotaclas; 31 Oct, 2021 @ 7:10pm
Sinner 31 Oct, 2021 @ 7:19pm 
Super helpful response, I'll give that a try, thanks!
Sinner 31 Oct, 2021 @ 7:30pm 
@grotaclas I copied the code you posted and added it to line 596 of the interface/frontend.gui file as you instructed, but I am still getting a crash.

The file I modified was in \STEAM\steamapps\workshop\content\236850\1580997245\interface folder

I am using Windows 10 home.

Any suggestions?
grotaclas 31 Oct, 2021 @ 8:08pm 
Are you maybe using any other mods which contain frontend.gui? Only one of them is loaded(depending on the alphabetically order of the mod names and if they specify that they override another mod) and you have to change that one(but the line of the change is probably different in other mods).

Or maybe there is an error in your code. Can you post the whole section? It should look like the following if you didn't make any other changes to the "Better UI 2 - Verdana Font" version of the file:
windowType = { name = "PersistentSocialButtons" backGround="" position = { x= 436 y = -60 } show_position = { x = 436 y = -60 } hide_position = { x = 436 y = 100 } animation_type = "decelerated" animation_time = 300 size = { x=288 y = 96 } moveable = 0 dontRender = "" horizontalBorder= "" verticalBorder= "" upsound = "" downsound = "" fullScreen = no Orientation = "CENTER_DOWN" iconType = { name = "background" position = { x = -80 y = -5 } spriteType = "GFX_social_buttons_bg" } guiButtonType = { name = "homepage_button" position = { x = -18 y = 14 } quadTextureSprite ="homepage" } guiButtonType = { name = "forum_button" position = { x = 20 y = 14 } quadTextureSprite ="forum" } guiButtonType = { name = "facebook_button" position = { x = 56 y = 14 } quadTextureSprite ="facebook" } guiButtonType = { name = "twitter_button" position = { x = 92 y = 14 } quadTextureSprite ="twitter" } checkboxType = { name = "login_logout_button" position = { x = 135 y = 8 } quadTextureSprite ="GFX_login_logout_button" } checkboxType = { name = "epic_button" position = { x = 177 y = 8 } quadTextureSprite ="GFX_login_epic_logout_button" } iconType = { name ="frontend_small_frame" spriteType = "GFX_frontend_small_frame" position = { x= -20 y = 12 } } } }
Sinner 31 Oct, 2021 @ 8:29pm 
@grotaclas I am only using Better UI 2 and Better UI 2 - Verdana Font mods, so only one mod which changes frontend.gui.

I copied the entire section of code you posted in post #4 and pasted over the existing code in the file, but I'm still getting a crash.

I've uploaded my frontend.gui here if you want to take a look:
https://drive.google.com/file/d/1Sw5FRCoGcI9OEA3NFipSma_gdLCiUfWb/view?usp=sharing
Last edited by Sinner; 31 Oct, 2021 @ 8:31pm
grotaclas 31 Oct, 2021 @ 9:06pm 
That's weird. Your file is exactly the same as mine and I don't get a crash. But maybe it is because I used the windows version of the game on Linux for the test although I get the crash with the unmodified mod.
Does the crash go away if you disable the "Better UI 2 - Verdana Font" mod while keeping the better ui mod enabled?
Did you maybe make a backup of the original frontend.gui file from the mod? I don't know how file overriding works for .gui files, but maybe the backup can still interfere if it is in the wrong place(e,g. in one of the mod folders or in "Documents/Paradox Interactive/Europa Universalis IV/interface")
Sinner 31 Oct, 2021 @ 9:18pm 
When I disable "Better UI 2 - Verdana Font" but have Better UI 2 enabled there is no crash. The crash only happens when I enable the font mod.
I did make a backup copy of the original frontend.gui but renamed it to frontend.gui.old, so it wouldn't override anything.
The only thing that seems to be different is our operating systems.Guess I'll keep my fingers crossed and hope @Batziy has time to check in and upload a fix.
I appreciate all the help, thanks!
grotaclas 1 Nov, 2021 @ 8:50pm 
I just ran eu4 in a windows 10 virtual machine and your frontend.gui fixed the crash in that case as well. Maybe something else is wrong with the files of your mod. You could try the following:
  • unsubscribe from the mod in steam
  • start the launcher and remove the mod from all your playsets
  • restart the launcher and make sure that the mod is neither in any playset nor in the list of all installed mods
  • delete the folder "\STEAM\steamapps\workshop\content\236850\1580997245" with all its contents if it still exists
  • subscribe to the mod again
  • place your modified frontend.gui in "\STEAM\steamapps\workshop\content\236850\1580997245\interface" without keeping a backup file in any folder which belongs to the mod or eu4
  • start eu4 with the mod active

Or maybe you have a different crash for some reason. Which resolution do you use? All my tests were done with 1920x1080, but there are different positions for the buttons in lower resolutions and they might be needed.
Sinner 2 Nov, 2021 @ 8:13pm 
That explains it, my resolution is 2560 x 1440, so my button would be in a slightly different position. Dollars to doughnuts that's what the problem is.
grotaclas 2 Nov, 2021 @ 8:39pm 
Originally posted by Sinner:
That explains it, my resolution is 2560 x 1440, so my button would be in a slightly different position. Dollars to doughnuts that's what the problem is.
I don't think a higher resolution can be a problem, because there is no special case for resolutions which have a height of more than 1079 pixel.
Do you still get the crash if you reduce your resolution to 1920x1080? I don't have a higher resolution screen so I can't test if I get the crash then.
< >
Showing 1-10 of 10 comments
Per page: 1530 50