Game Development Community

Starting a new game project

by Steve D · in Torque Game Engine · 12/22/2006 (4:44 pm) · 3 replies

I created a new folder in the Example folder, called NewGame, pointed the Torque engine to that directory on startup. I also included main.cs from the starter.fps kit because it was crashing otherwise. When I go to world creator it's still looking in tutorial.base for shapes, objects, etc. How and where do I change this so it looks in the new directory I created (and launched the game from for that matter). Thanks!

#1
12/22/2006 (4:55 pm)
Open the main.cs in the example folder, then change the line that says $defaultGame = "tutorial.base"; to $defaultGame = "NewGame";

My advice is to follow the gettingstarted.pdf. Then come and ask question after that. all this basic stuff is covered ther.
-James.
#2
12/22/2006 (6:29 pm)
Ok thanks, I did read that doc but forgot the answer was in there. I am a little confused about something, when you start torque it uses the main.cs in the root example directory but obviously it must also use the main.cs in the sub-folders for a game, does the sub one override the root file or how does that work?
#3
12/25/2006 (5:30 pm)
No, the main in the root follows to the main in the subdirectories to execute more statements specific to that mod of the engine.