Font change crash issue.

Error.jpg Hi, sort of a script noob, so I thought I'd put my problem on here. I get the error: "This application has requested the Runtime to terminate it in an unusual way." when I try to change fonts. I've tried atleast 20 different fonts, all are installed and work fine elsewhere. It either does completely nothing to the game, or it makes the game crash on startup with that error.

Here's a list of my scripts:

Yanfly Message Script

Battle Symphony

Holder's Battlers

Galv's New Item Indication

Galv's Event Popups

Victory Aftermath

Core - Equip Slots

Custom Equip Types

Note that the game works absolutely fine with these scripts, up until I try to change font with the Main script.

My Main in the script editor is the following:

#==============================================================================

# ** Main

#------------------------------------------------------------------------------

# This processing is executed after module and class definition is finished.

#==============================================================================

 

Font.default_name = ["MS Serif"] # Edit as you see fit.

Font.default_size = 22 # Edit as you see fit.

 

rgss_main { SceneManager.run }

 

Using MS Serif to test. As I've said, I've tried many fonts.

Hope someone can answer this question. Thanks in advance.
Depending on the Font weather it's non True-Type or Installed wrong, and some cases damaged can cause that issue, It happened to me with the Chicago font until I realized the file was damaged.
Depending on the Font weather it's non True-Type or Installed wrong, and some cases damaged can cause that issue, It happened to me with the Chicago font until I realized the file was damaged.
Thanks, man!

I figured out the problem. I was using an OpenType font. Switched to a TrueType and it worked.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.


Next time you have a scripting problem, please post it in the RGSSx Script Support forum.

Original thread: https://forums.rpgmakerweb.com/threads/font-change-crash-issue.26924/