Game Development Community

Folder structure - project setup, help appreciated

by Ben Wilder · in Torque Game Engine · 11/30/2006 (5:50 am) · 2 replies

Hi all,
I am attempting to create a completely clean torque TGE 1.5 project as a starting point. But am still struggling with what i need / don't need in terms of directory heirarchy and files.

I have followed the wiki page at: http://tdn.garagegames.com/wiki/Torque/vs2k5 and things compile fine, but this means i still have an example folder with starter.fps and others in it.

Should i delete the "example" directory, create a new directory named after my game and then start from there?

Any pointers would be greatly appreciated!!


I'd like to start from scratch y'see and hopefully it will give me a better understanding of how all the necessary scripts and files fit together to make a complete game. As yet i don't need to modify the source code, just write scripts. But i'd like to start off with a sound setup.


Thanks!

#1
11/30/2006 (10:47 am)
Make a new folder in /example with the name of your mod. Say you name it "MyCoolMod". Then edit this line in /example/main.cs:

$defaultGame = "starter.fps";

change it to

//$defaultGame = "MyCoolMod";

AFAIK you must use the 'example' folder to make your mod unless you want to modify the C++ engine source. There's a bunch of direct references to in the source to:

"../../example/shaders/shdrConsts.h"
#2
11/30/2006 (12:25 pm)
Thanks David, much appreciated!
Ben