Game Development Community

Problems with Hello World and torque exe

by Matthew Hoesterey · in Torque Game Engine · 03/12/2005 (11:04 am) · 5 replies

So I've been working through the 3d game programmming all in one book. I'm a bit frustrated.

I own the full indie licence and have it installed in D:\torque

I also installed the cd that came with the book into c:\3dgpai1

First I tried to follow the book exactly

here is what my command prompt looked like with the errors ect...

c:\3dgpai1>tge -ch2 helloworld.cs
!!!!!!!!!!!!!! 3dgpai1 book version !!!!!!!!!!!!!!!!!!!
11111111111@@@@@@@@@@@-=ch2 helloworld.cs
setModPaths: invalid mod path directory name: ch2
--------------Loading MODS -----------------
Loading compiled script common/main.cs.
Missing file: common/defaults.cs!
Missing file: CH2/main.cs!
%
-----------------Parsing Arguments-------------
%
--------------Initializing MOD: Common----------------
Loading compiled script common/client/canvas.cs
Loading compiled script common/client/audio.cs
Engine initialized...
%






So then I tried to run the file from my full licenced version of torque on D: but THIER NO TGE exe in the full install. Only the starter kits.

I'm more the artist but I do have a limited knowledge of c++ and feel I could pick this up really quick if I can get things to run. It's like not being able to compile my code argggg. Help please. Thanks.

The one thing that is making it so hard to get started is I don't understand the directory structure that torque works with. I don't understand where it's running from as thiers NO exe. I can even write much more complex scripts but I have no clue how to get torque to read them. Thanks for any help.


Aparently that error is telling me that the ch2 folder dosn't exist but it does!!!
Here are the screenshots.

http://www.rit.edu/~mrh9661/3dDir.jpg
http://www.rit.edu/~mrh9661/3dHelloworld.jpg
http://www.rit.edu/~mrh9661/3dch2dir.jpg

#1
03/12/2005 (11:16 am)
Hi there...
I'm a few hours away from buying torque... so my answer may be wrong as I don't have Torque yet...
BUT
I think you don't get an exe file from Torque... I guess you need to compile it in a C++ environment like Visual C++ or one of the free ones...

Not sure if this helps... I would assume that book should tell you how to get started with Torque.. otherwise the book makes some silly omissions
#2
03/12/2005 (1:35 pm)
Yes, you do get an exe with the SDK. It is in the example folder. torquedemo.exe or something like that. Don't worry about the strange choice of name. It is the torque executable.

As for you problem with the command line for starting chapter 2, I think I've seen this problem mentioned before. Try checking old forum threads to find the solution. Probably you got the commandline arguments wrong.

One of your pictures shows a shortcut "Run chapter 3". I would try right clicking on this, selecting properties, choosing the shortcut tab, and looking at what it says in the "target" box. That should give you some clue since starting the chapter 3 program shouldn't be very different from starting the chapter 2 program.

Also, check the first thread you made on this topic.
#3
03/12/2005 (3:28 pm)
I've looked through all the posts I could find on chapter 2 and hello world.

I also checked the run chapter 3 shortcuts and this is the command line. C:\3DgPai1\tge.exe -ch3

SO the line that I'm typing should work as it is the same format I tried again with: C:\3dgpai1\tge.exe -ch2 helloworld.cs
but it doesn't work.

/vent I also came across a bunch of posts about errors in the book. :( It's a bit disheartening knowing that I'm going to run into tons of places where the book will just confuse and frustrate. Sigh. I hate bugs and errors; it takes credibility away from the games industry. /vent off.

We'll I'm going to move on and hope the next part of chapter 2 works. Thanks for the help so far.
#4
03/12/2005 (7:19 pm)
Excerpt from another thread (post by Dirk):
Since I own the book, I did install it (for you alone, buddy) and it took me about 60 seconds to find a file called 'run hello world' which told me that the correct call was:
'C:\3DGPAi1\tge.exe -ch2 bookcode/helloworld.cs'

Excerpt from another thread (post by Dirk):
Are you sure you ran the setup from the CD?
1. run the setup of the CD and install 3dgpai1.
2. get a dosbox (command.com), and do 'cd 3dgpai1'
3. type dir. You should see 'CH2' among some other files and directories.
4. run the command 'tge.exe -ch2 bookcode/helloworld.cs'
...
what do you get?



One last suggestion. Did you follow all the instructions in chapter 1?
I have heard of people skipping all or part of that chapter and running into weird problems later as a result.
#5
03/14/2005 (7:08 pm)
Thanks for all your help. Well I tried the files you mentioned and they didn't work either. I got the same error. SO. I erased the entire 3dgpai1 folder and reinstalled off the cd. And now it works flawlessly. The strange thing is I have the same exact files and directory structures (I compared the new folder to the old screen shot) So the cd must have corrupted a file during the original install. Any case thanks for spending time to help. Nothing like an install error to confuse a beginner LOL