Game Development Community

Updated TGB?

by Jeffrey Smith · in Torque Game Builder · 08/13/2007 (10:49 am) · 2 replies

I went through the TBG tutorials in the beginning of the summer. I am doing again to refresh myself and noticed some changes. For instance, in the shooter tutorial there are directions that say:

"Now that we have our code completely written, we need to tell the engine to run player.cs when it runs the game. To do this, we need to browse out to our main games/yourProjectName folder and open up our main.cs file. When you get your file open, you need to find these lines of code:



//Exec game scripts
exec("./gameScripts/game.cs");



Once you have located those, add this line of code right below it:



exec("./gameScripts/player.cs");"

I don't see an exec game scripts that used to be in an initializeProject function autocreated in TGB. Where does one at the extra execs now?

#1
08/13/2007 (10:55 am)
It's still there in TGB 1.5. Are you sure you have the right file open? There are actually 3 files called main.cs. One in the main folder that contains the common and game folders, and one in each of those folders. You want to have the one in the game folder opened, the others don't have that exec script call.
#2
08/13/2007 (11:13 am)
Thanks, I forgot