Game Development Community

Having issues with emaga4

by Anthony C · in Torque Game Engine · 05/10/2007 (2:05 pm) · 5 replies

So i typed in all the modules verbatim, went to launch tge.exe and nothing happens, should i feel silly or did i miss something blatantly obvious?

#1
05/10/2007 (8:34 pm)
I had a problem with emaga4 also. Finally went out to the cd and saw a directory called new_files, inside this directory were two files called initialize.cs and main.cs. Upon opening them I found they were updated version for emaga4
//================================================
// control/initialize.cs v0.2
//
// control initialization module for 3DGPAI1 emaga4 sample game
//

//------------------------------------------------------------------------
// ./main.cs v0.2
//
// root main module for 3DGPAI1 emaga4 sample game

I put main in the root and initialize in the control directory, deleted all my .dso files, reran tge.exe. Emaga4 finally loaded up and ran.


Hope this helps.
#2
05/10/2007 (11:23 pm)
First time I tried running ch. 4 after typing it all in i didnt get a window (although there was a tge process), and no consol.log or anything to give me any idea where the error was. I reccomend using torsion as your editor because it will precompile your script files and check them for syntax errors before actually running tge! And that made my typing error finding a whooole lot faster.

However after fixing my syntax errors now I get a window but it has the default tge demo mission/level loaded (although this is probably just a video artifact) and my cursor is gone but i can draw red dots on the screen. Also In the console I'm getting errors
unable to find function onMissionDownloadPhase3
unable to find function onphase3progress
I was not told to define a stub for these functions in client.cs but I guess i'll go ahead and see what happens.
#3
05/10/2007 (11:39 pm)
Ok after fixing that and one missnamed function (which isnt caught as a syntax error so had to find it the hard way), it WORKS!
#4
06/09/2007 (8:06 pm)
James Ford, what did you do to fix the onMissionDownloadPhase3 and onPhase3Progress functions? I have the same problem. My TGE only has a Red Dot Drawing page and it seems broken like the one you described was.
#5
06/10/2007 (1:02 pm)
Quote:what did you do to fix the onMissionDownloadPhase3 and onPhase3Progress functions?

Just add function stubs for the missing functions in your client.cs file.

Quote:I have the same problem. My TGE only has a Red Dot Drawing page and it seems broken like the one you described was.

I had the same problem, but it turned out to be typos on my part. I fixed it by switching out the .cs files in 3D2E\RESOURCES\CH4\EMAGA4 BOOK CODE (the ones Finney wrote) with the ones I had written one at a time until I found the offending files. Then I compared the files side by side to see what I had done differently. Shamefully, they were all stupid typos. That's what happens when you copy out a gazillion lines of code. :(