Game Development Community

TGB 1.6: writeFontCache, crash when exiting editor

by Joe Rossi · in Torque Game Builder · 12/16/2007 (1:05 am) · 0 replies

This one was hard to track down and caused a crash when exiting the editor. I'm not sure why, but commenting the following code fixed the issue, and I don't notice any problems with my fonts.

tgb\tools\levelEditor\scripts\levelManagement.ed.cs
// rdbhack: this is a hack because its going to force the tool to write
   //   both the tools font cache, and the fonts used for the game when
   //   really all we need to do is write out the fonts the game needs
   ///populateAllFontCacheRange(32, 255);  //COMMENT ME
   ///writeFontCache(); //COMMENT ME