Game Development Community

Font Cache Directory Problem

by Aditya Kulkarni · in Torque Game Builder · 08/13/2010 (5:54 am) · 1 replies

It's a mess having two seperate font directories in common and data. So I choose to have just common/data/fonts.

In my common/gui/profiles.cs, I have this:

$Gui::fontCacheDirectory = expandFilename("~/data/fonts");

I have also commented out the fontCacheDirectory line from the game/gamesscripts/gui/profiles.cs

Now, when I run it from the editor and echo($Gui::fontCacheDirectory), I get common/data/fonts. But the build version gives me game/data/fonts.

In my entire project, there is no other line which changes the directory path.

Whats going on here?

#1
08/13/2010 (6:24 am)
Well, I can't believe I did that.

Had 2 copies open, one in Torsion the other in the editor.

Universally confused.