Game Development Community

TGB 1.7.6 still not working correctly on Lion

by Kalle Wik · in Torque Game Builder · 07/10/2012 (6:09 pm) · 2 replies

We've just recently updated to 1.7.6, but the problem that was occurring on Lion still persists. Investigating it, the issue is pretty unusual - a few GUIs work, the others won't. The failing GUIs will freeze the game if you activate them directly (via Canvas.setContent in the console), but otherwise, the game just seems to "skip over" them, with functions that should involve loading one just failing silently with no console message. Even in the GUIs that work, there's a lot of strange behavior.

Here's an example of a GUI that didn't work (the game froze when I forced it to display):
//--- OBJECT WRITE BEGIN ---
%guiContent = new GuiControl(skMenuGUI) {
   canSaveDynamicFields = "0";
   isContainer = "1";
   Profile = "GuiBlackContentProfile";
   HorizSizing = "width";
   VertSizing = "height";
   Position = "0 0";
   Extent = "1024 768";
   MinExtent = "8 8";
   canSave = "1";
   Visible = "1";
   hovertime = "1000";

   new t2dSceneWindow(skMenuWindow) {
      canSaveDynamicFields = "0";
      isContainer = "0";
      Profile = "GuiContentProfile";
      HorizSizing = "width";
      VertSizing = "height";
      Position = "0 0";
      Extent = "1024 768";
      MinExtent = "8 8";
      canSave = "1";
      Visible = "1";
      hovertime = "1000";
      lockMouse = "0";
      useWindowMouseEvents = "1";
      useObjectMouseEvents = "0";
   };
};
//--- OBJECT WRITE END ---

Switching the "GuiDefaultProfile" to "GuiBlackContentProfile" caused it to display successfully, and a level could be loaded. However, behaviors on objects appeared to not be getting an onLevelLoaded message (although they did receive other messages such as onMouseEnter). Also, while the GUI could be set and loaded via the console, it still didn't display when the function that should normally have shown it was run.

Other parts of the game, such as actually going to a level, aren't working at all, although most popup GUIs still seem to display correctly. This is only on Lion - it works fine on Snow Leopard. Changing to 1.7.6 doesn't seem to have altered the behavior at all.

#1
07/12/2012 (3:11 pm)
Does this happen regardless of game resolution and window mode? Both full screen and windowed result in the same problem?
#2
07/12/2012 (4:50 pm)
Yes, it occurs in both fullscreen and windowed. The game resolution is 1280 x 768, and we tried the monitor in both 1080p and 1280x960 resolutions.