Game Development Community

Torque game creation

by Christopher Tall · in General Discussion · 05/15/2008 (6:31 pm) · 7 replies

Hi, it seems everytime I do a tutorial, the tutorial tells me to change the main.cs file's line of script:
"$defaultgame = tutorial.base" to whatever folder the game I'm making's content will be in. Such as the folder "prototype". So lets suppose I have made two games, and I want "game1" does that mean when I want to play "game2" I have to go to the main.cs file in the example folder and change the code from:
"$defaultgame = game1" to "$defaultgame = game2" every single time I want to switch the game? Or is there an easier way to do this? Cause the way it seems to me right now is that it is impossible to play a game made with the Torque engine, without having the Torque engine installed on you computer. And that is impossible because games like Orbs or ThinkTanks don't require Torque to be installed on your computer in order to play them. Thanks for any replys!

#1
05/15/2008 (7:13 pm)
The engine is always needed, that's the whole point. You might not always notice it because it has a changed icon and name, but there isn't necessarily a way to make a game with the torque engine and then play it without the engine.
#2
05/16/2008 (6:05 am)
You have to build the project/game to be able to play it without starting the TGB editor, if thats what you mean.
#3
05/16/2008 (6:24 am)
That's why you install your game in its own directory; so you don't have to do that. Plus, most games have different binaries for their featuresets, so the core engine has had a number of changes made to it.
#4
05/17/2008 (10:32 am)
Ok so when I buy and download ThinkTanks from its website, I am downloading not only the game scripts and all it's datablocks, models, and animations but also the Torque Game Engine all slapped together to make a game?
#5
05/17/2008 (10:50 am)
Yes. Think of it this way...
You buy a car. That car looks pretty/sporty and you fall in love with it. Problem...it doesn't have an engine, so all it can do is sit and look pretty. With the engine running that car, you can drive down the street and show it off to everyone. A game is the same thing. It's all the pretty things, (models, textures, etc...) plus the engine that runs it.
#6
05/17/2008 (10:51 am)
Yup. The ThinkTanks.exe (or what they call it, I haven't played it myself) in the folder is just the Torque Game Engine .exe recompiled with any changes they made to it and a different name/icon. You do need the engine to play games made with Torque (and any engine.) All the scripts do is provide data for the engine file to read and make sense of. Without the engine you just have a bunch of text files.
#7
05/17/2008 (3:57 pm)
The .exe for your game is a compiled binary of all the files in the engine. You need to include all of the games assets and scripts along with it.

Simplest, easiest to understand description.