Chapter 4 Help
by Nathan · in Torque Game Engine · 07/14/2005 (12:12 pm) · 16 replies
Hi, I'm brand new to torqe and need help. I just finished chapter 4 but when I run tge.exe to test my game like the book says a small window comes up thats title is "C:\Emaga4\tge.exe but the rest of the box is blank and nothing happens.
#2
It sounds like you are runing the "tge.exe" from "...\3DGPAi1\RESOURCES\CH4" instead of "...\3DGPAi1\RESOURCES\CH4\Emaga4" that you created in the text of the chapter. Look for the Torque icon next to the tge.exe file instead of the windows executable icon. Hope that helps.
07/16/2005 (2:55 pm)
Nathan:It sounds like you are runing the "tge.exe" from "...\3DGPAi1\RESOURCES\CH4" instead of "...\3DGPAi1\RESOURCES\CH4\Emaga4" that you created in the text of the chapter. Look for the Torque icon next to the tge.exe file instead of the windows executable icon. Hope that helps.
#3
09/08/2005 (8:48 pm)
Hey I'm having the exact same problem as Nathan had. I just finished Chapter 4 and I run tge.exe and i get a dos screen with a flashing cursur. Anybody know why?
#4
09/09/2005 (7:17 am)
I can only add that when I built the directory correctly I got a different looking icon to start the program with. When I tried the tge.exe from the above directory I got the results you seem to be getting. Are you in the proper directory?
#5
09/09/2005 (7:27 am)
I think this could be solved from a pathing issue. Meaning at the tge.exe file to your path and it should be able to work. I think... I am still on chapter 3.
#6
09/09/2005 (8:12 am)
The only way I got it to work was to copy it off the cd.
#7
I click on tge.exe from the CD and it worked. I also replaced all the files in /common and /control at once and still didn't work. Just console box and hangs.
For future reference, anyone know why this is? I went through the scripting line-by-line from root/main.cs on both the CD and what I typed from the book. I didn't find any errors. So it leave me to believe chapter4.prj may of had something to do with it?
09/26/2005 (1:06 pm)
Same here.. There has to be something wrong with the Main.cs file in root or you need to replace the chapter4.prj file. Those were the last two I replaced, before it finally worked. I click on tge.exe from the CD and it worked. I also replaced all the files in /common and /control at once and still didn't work. Just console box and hangs.
For future reference, anyone know why this is? I went through the scripting line-by-line from root/main.cs on both the CD and what I typed from the book. I didn't find any errors. So it leave me to believe chapter4.prj may of had something to do with it?
#8
I have similar problem - I execute the tge.exe - and i get the console - AND a grey canvas - i get a game running - but it is not the game i hoped for - in this one, all i can do is draw red dots on the grey canvas.
I am disapointed ...
And yes - i checked all my selfwritten files...
Please... Help me
10/05/2005 (3:56 pm)
Hi thereI have similar problem - I execute the tge.exe - and i get the console - AND a grey canvas - i get a game running - but it is not the game i hoped for - in this one, all i can do is draw red dots on the grey canvas.
I am disapointed ...
And yes - i checked all my selfwritten files...
Please... Help me
#9
10/05/2005 (5:20 pm)
Did you copy from the book, or off of the cd? I think that the book has typos in it.
#10
Sorry for wasting space
10/06/2005 (11:38 am)
Guess all mistakes were on me - when i gave it a systemtatic run-through - i found some typos - of mine... And now it is running as should...Sorry for wasting space
#11
10/06/2005 (12:48 pm)
This is a very interesting problem. For the number of similar mistakes it seems something can certainly be learned. I copied the files from the CD to a new directory and then copied (typed) the scripts from the book and it worked great except as explained above?
#12
11/16/2005 (6:49 am)
The problem I found when running it from the RESOURCES\CH4 directory was that common/main.cs execs "common/presets.cs" when the only file that existed in that directory was "common/prefs.cs". I renamed prefs.cs to presets.cs and everything worked for me (after I had typed in the files for the control directory).
#13
Torque compiles the script files into new files and writes them to the same dir, Seems you cant do this on CD it would fail
11/17/2005 (12:51 am)
You cant run it from the CD can you?Torque compiles the script files into new files and writes them to the same dir, Seems you cant do this on CD it would fail
#14
11/17/2005 (2:19 am)
I had the same problem, but after HOURS of rescanning my code I found quite a few typos eventually I got mine to run. But I was getting the same blank screen as everyone else before that.
#15
1. Copy the root main.cs plus the control folder with its contents over to your emaga4 folder on your hard drive, then make the changes:
2. Rename control/game.cs to control/server.cs.
3. You then have to locate the Exec("./game.cs"); line in control/initialization.cs and change it to Exec("./server.cs");
The problem I initially had was using some typed in modules and copying the longer ones from the cd. The problem is the cd code initialize.cs varies from the book code initialize.cs - as per above. The other difference is in server.cs and player.cs. In the book code the name identifier for the PlayerData datablock is HumanMaleAvatar while in the cd code it is MaleAvatar. The latter is what caused my problem as I typed in the book code for server.cs (not realizing game.cs was equivalent to server.cs) and copied player.cs from the cd. Server.cs states datablock = HumanMaleAvatar while player.cs from the cd uses the name identifier MaleAvatar.
12/11/2005 (7:04 pm)
My only advice is to type in all modules as printed in the book (I can't remember finding any errors in the book code) or copy all the files from the cd and make the following revisions as per Ken Finney's earlier post:1. Copy the root main.cs plus the control folder with its contents over to your emaga4 folder on your hard drive, then make the changes:
2. Rename control/game.cs to control/server.cs.
3. You then have to locate the Exec("./game.cs"); line in control/initialization.cs and change it to Exec("./server.cs");
The problem I initially had was using some typed in modules and copying the longer ones from the cd. The problem is the cd code initialize.cs varies from the book code initialize.cs - as per above. The other difference is in server.cs and player.cs. In the book code the name identifier for the PlayerData datablock is HumanMaleAvatar while in the cd code it is MaleAvatar. The latter is what caused my problem as I typed in the book code for server.cs (not realizing game.cs was equivalent to server.cs) and copied player.cs from the cd. Server.cs states datablock = HumanMaleAvatar while player.cs from the cd uses the name identifier MaleAvatar.
#16
ok if you COPY the files from cd it works
if you use the install for resource file it does not
you get console log error (common/main.cs (149): Unknown command OnStart.)
There is something definetely wierd about the .dso files if i copy the dso files from the cd it will work but not from the kit install.
01/12/2006 (9:18 pm)
Ok this is very buggy LOLok if you COPY the files from cd it works
if you use the install for resource file it does not
you get console log error (common/main.cs (149): Unknown command OnStart.)
There is something definetely wierd about the .dso files if i copy the dso files from the cd it will work but not from the kit install.
Torque Owner Nathan