Game Development Community

Fonts and Custom Cursors not showing when I deploy project

by Stanley D Chatman · in Torque Game Builder · 02/02/2008 (11:03 am) · 2 replies

I am running Vista and when I run my project from Torsion or from the Game Builder everything is fine. However when I run Build Project and deploy the project none of my fonts show up(only Arial) nor does my custom cursors.

I have synced up all my font UFT's in 3 directories (deploy, development and app directory).

Here is my code for my custom cursor

new GuiCursor(CustomCursor3)
   {
      hotSpot = "1 1"; // Set this to the X/Y coordinate of where you want the hotspot
      bitmapName = "game/data/images/cursor_hand3";
      fillColor = "255 255 255";      
   };

Is there is something I am missing to make this run correctly in my deployed environment?

#1
02/03/2008 (5:01 am)
I have a custom cursor that I put in cursors.cs in the common/gui folder (png file under common/gui/images). Under 1.6 it works fine both in TGB and after I deployed the project. I brought the project into 1.7 and it looks like by importing the project all the script files in the common directory are reset to defaults. The .dso files are still the same from the 1.6 project so I never noticed it in game as the custom cursor still works.
#2
02/03/2008 (5:42 am)
@Mike

Thank You!!

That was the problem. I was putting my custom cursor code in the guiProfiles.cs file located in game/gameScripts folder. Once I moved to the cursors.cs file in common/folder it worked and it also corrected my font problem also. I verified this too. If I put back to the way I originally had it, the fonts do not work.