Game Development Community

Tge program

by Oliver White · in Torque Game Engine · 11/19/2005 (9:35 am) · 5 replies

OK, this question is probably very basic, but:

In the very first example of the book (helloworld.cs), the command to run your script is "tge -sh2 scriptname.cs"

I've just installed the torque game engine, compiled it, and it's created a demo game, but no files at all which are called tge

Is this an error, or is "tge" a windows-specific thing, or has it just not compiled properly?

About the author

Recent Threads


#1
11/19/2005 (9:57 am)
Im assuming that the tge is the executable, In that case its most likely called "torqueDemo_DEBUG.exe".
#2
11/19/2005 (10:30 am)
If you have installed the files that came with the CD, it puts tge.exe in C:\3DGPAI1. I think this is the demo version of torque. I have also downloaded the full torque game engine source which compiles into torqueDemo_DEBUG.exe. While I have been working in the book I have been using the tge.exe that came on the CD. I figure once I get through this monster book I'll be a little more prepared to dive into the full version.
#3
11/19/2005 (11:12 am)
As Westy noticed, torqueDemo_DEBUG.bin seems to be the compiled program which gets created when you build torque. But trying to use that with the helloWorld.cs doesn't seem to work (i.e. running "torqueDemo_DEBUG.bin -ch2 helloWorld.cs" doesn't launch any game windows, and just locks-up the console)

I don't have a C:\3DGPAI1 directory, as both Michael Errico and the book itself seem to assume - that only gets created if you happen to be using Windows.

Since the demo game itself works fine, I can't understand why a script as simple as printing "hello, world", from the book itself, would just fail to do anything.
#4
11/19/2005 (11:30 am)
Search in the private forum about setting the compiler to make the normal exe instead of the debug. It's faster.

Debug will give you more data.. you can compile both.
#5
11/20/2005 (6:00 pm)
Oliver I just assumed you were running windows. I have windows so I just installed the contents of the CD that came with the book. I'm not sure about other operating systems.