Game Development Community

where does this go?

by geek1A4 · in Torque Game Engine · 11/23/2002 (9:11 pm) · 3 replies

I was wondering where I put this line. It is from a torque scripting resource, the first script lesson of the tut says:

Load the TGE and type the following in the console
exec("fps/server/scripts/tutorial1.cs");

what exactly is the console? does this line not go in a source file? which one if so?

thanks for the help

#1
11/23/2002 (9:22 pm)
The console is a window that you can pull up in game.

Basically, it allows you to give commands to the engine while you are playing the game.

Hit the tilde hey (~) while you have the engine running, and it will open the console.
#2
11/23/2002 (9:24 pm)
The console is accessed by hitting the tilde (~) key...

From there, you can enter commands as for TGE to execute. In this case, you dont need to put it in a script file, although, if you did it would get executed also...

(Look at fps/server/scripts/game.cs and you will see quite a few scripts get loaded up, thus adding their data to the engine)

So... in short, press ~ to open up the console window, then enter the command... g'luck!
#3
11/23/2002 (10:28 pm)
For the heck of it ... this is how it should be:

1. Compile the SDK
2. Go to torque/example directory
3. Execute the file "torqueDemo.exe"
4. Start a game
5. Press the "~" character when the game is loaded

That should put you in the console and good luck on your game.

Alex