Game Development Community

CH5 (Emaga5) crashing on Mac

by Orion · in Torque Game Engine · 07/04/2008 (9:42 am) · 0 replies

I am having trouble running the code from CH5 (Emaga5) of 3D Game Programming All In One (2nd Ed.) on my Mac.

The splash screen opens but when I click it Torque simply closes without error. If I run it from the terminal it prints "Bus error" upon crashing.

I am using the unmodified code from the CD-Rom. I ran the same code on my Windows XP laptop and it worked fine. The Emaga4 code runs fine on my Mac.

If I modify EMAGA5/control/client/client.cs like this:

function ShowMenuScreen()
{
    echo("***argh4***");	
   // Startup the client with the menu...
   Canvas.setContent( MenuScreen );
   Canvas.setCursor("DefaultCursor");
}
function SplashScreenInputCtrl::onInputEvent(%this, %dev, %evt, %make)
{
   echo("***argh1***");	
   if(%make)
   {
   	 echo("***argh2***"); 
         ShowMenuScreen();
   }
   echo("***argh3***");
}

The last few lines of my logfile look like this:

Loading compiled script control/client/misc/Screens.cs.
Loading compiled script control/client/misc/presetkeys.cs.
Loading compiled script control/client/client.cs.
Loading compiled script control/client/misc/transfer.cs.
Loading compiled script control/client/misc/connection.cs.
***argh1***
***argh2***

So the crash seems to happen when ShowMenuScreen(); is called.

Does anyone know what's going on?

About the author

Recent Threads