Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: WanderingWizard on Wed 20/10/2021 20:57:45

Title: AGS crashes every time because of installed font.
Post by: WanderingWizard on Wed 20/10/2021 20:57:45
Hi all. I'm working on an AGS game for ScreamJam 2021 on itch.io, and I have three days left. Late into the game, I tried to change the font, and I guess I installed one AGS didn't like. Every time I try to run the game, it crashes. Unfortunately, now every time I try to open the font to change it, the editor also crashes. It's my "normal" font, so AGS won't let me delete it. Someone please help!


I apologize if something like this has already been posted, but every time I try to search the forums it says "You did that less than 5 seconds ago!" even though it was literally the first time I tried searching for something with this username.
Title: Re: AGS crashes every time because of installed font.
Post by: Crimson Wizard on Wed 20/10/2021 21:34:51
Please tell if there's any error message when it crashes? Could you upload this font somewhere for us to check it out?

In regards to fixing the game, I think you may simply replace the font file in the game folder. It should be called "agsfntX.ttf" or "agsfntX.wfn", where X is font number.
Title: Re: AGS crashes every time because of installed font.
Post by: WanderingWizard on Wed 20/10/2021 21:47:58
Your suggestion worked, thank you! I looked through the AGS directory listing for a file starting with the word "font," I should have just ctrl-F'd it.

There was no error message, it just died immediately. The font is here: https://drive.google.com/file/d/1yluzCfOT3G9zMC1A2kQpKv3zss2GAfJB/view?usp=sharing

I appreciate you!
Title: Re: AGS crashes every time because of installed font.
Post by: Crimson Wizard on Thu 21/10/2021 08:51:24
I confirm that AGS fails to load this font properly, something may be wrong in the font library its using.

For now I'll try to make it at least not crash stupidly and just report an error.