Hello world and EXE problems
by Matthew Hoesterey · in Torque Game Engine · 03/12/2005 (1:04 am) · 8 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.
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.
#2
I can't get hello world to run out of that folder either.
03/12/2005 (8:52 am)
I have a torquedemo.exe in the D:\torque\sdk\example but not a tge.exeI can't get hello world to run out of that folder either.
#3
03/12/2005 (9:29 am)
Sorry i cant hekp but you should put this in the books forum area. http://www.garagegames.com/mg/forums/result.forum.php?qf=118
#4
The error you are getting is stating that it can not find that folder. Nor can it find the main.cs file that should be in that folder.
03/12/2005 (9:54 am)
1. Do you have a ch2 folder in your c:\3dgpai1\ directory.The error you are getting is stating that it can not find that folder. Nor can it find the main.cs file that should be in that folder.
#5
I missed that thier was a book forum I'll post their.
03/12/2005 (10:49 am)
Yes I do have that folder thier. And the main.cs folder is in thier. I missed that thier was a book forum I'll post their.
#6
Same thing. Don't worry too much about the name.
The only difference between that and the tge.exe which came from the book is that the book comes with version 1.2. If you have the Torque SDK, that is probably version 1.3.
03/12/2005 (10:58 am)
>I have a torquedemo.exe in the D:\torque\sdk\example but not a tge.exeSame thing. Don't worry too much about the name.
The only difference between that and the tge.exe which came from the book is that the book comes with version 1.2. If you have the Torque SDK, that is probably version 1.3.
#7
>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.
The script that will run is a file called main.cs in the same folder as the executable.
>tge -ch2 helloworld.cs
The "-ch2" and "helloworld.cs" are command line arguments which will be interpreted by main.cs. You will have to check inside main.cs to be certain, but I believe that these mean to look in the ch2 folder and execute a script called helloworld.cs.
03/12/2005 (11:02 am)
>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.
The script that will run is a file called main.cs in the same folder as the executable.
>tge -ch2 helloworld.cs
The "-ch2" and "helloworld.cs" are command line arguments which will be interpreted by main.cs. You will have to check inside main.cs to be certain, but I believe that these mean to look in the ch2 folder and execute a script called helloworld.cs.
#8
03/14/2005 (7:10 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
Torque Owner Robert Pierce
I am sorry if this doesn't answer your question, :(.