Game Development Community

How is your T2D project environment set up?

by Joe Bestor · in Torque Game Builder · 03/15/2005 (2:07 pm) · 3 replies

Seems the T2D-Win environment works as follows:

T2D.exe is fed a default mod to load from the root main.cs file. The default mod loads the common directory and initializes / creates things such as the canvas. All other mods cannot do this because it leads to conflicts such as trying to recreate the canvas. FYI, these other mods are run from a batch file using their main directory name as a command line argument. Since these other mods have that limitation, they cannot run on their own without a default mod being loaded first. If I wanted to distribute my mod, users would have to have the same environment or I'd have to modify the mod to be like the default mod.

One solution is to use the example directory to run mods I get from other T2D owners and have seperate directories for each of my mod projects with multiple copies of t2d.exe and other root directory files.

If it's easy enough, I'd like to have my mods runable from the batch file as well as on their own.

#1
03/15/2005 (2:14 pm)
Joe,

We setup the T2D base so that it has practically nothing in it. Simply remove the menu from the GUI and you've got a blank canvas to start with, apart from the background, which you can change.

You don't need to run anything as a mod.

Also, if you create a directory (similar to a mod) and just create the canvas in it (as the base does), you can change the base to run by changing "T2D" in the root "main.cs" file to your directory.

If you want to leave the base alone and still have another directory for you own game, create a canvas in it and use "-game" instead of "-mod".

It's only the canvas that's the critical part.

- Melv.
#2
03/15/2005 (3:35 pm)
Ha, I hadn't looked to see what -game did. Knowing mod was used to load games, editors, etc. I was working with that only.

Seems the difference between -game and -mod is stated in the displayHelp function of the root main.cs. Where mod appends everything associated as a mod to the list of mods. Game resets the list of mods to only contain the game.

Looks like that clears up my conflict fears.
#3
03/15/2005 (3:59 pm)
I'm using conText with a syntax file from the resources here as well. I think I can emulate your dev environment.