Game Development Community

What do I compile?

by Michael Todd · in Torque Game Engine · 11/27/2004 (4:21 am) · 2 replies

I have done lots of c-script code in another engine, but it autocompiled it. I can learn the language, and have a compiler, but am not sure how or what to compile? Anyone want to give me a bit of a walk through? :D?

Anyway, thanks, one way or another.
thegamedesigner

#1
11/27/2004 (4:28 am)
You are are makeing chanegs to an exisiting file TGE will automagicly compile it the next time you launch the game. If you are adding a new file then you will need to add an exec("/path/somenewfile.cs"); to get your script/gui to compile.

Hvae a look at init.cs or game.cs, they have exec calls that load other files.

-Ron
#2
11/27/2004 (5:55 am)
The only time you should need to compile is when you add functionality to TGE (ie: Brave Tree Tank Pack requires a recompile for the new tank shapes and functions to work) For the most part, you will not need to compile when you are just starting and just adding .cs script for .... weapons, shapes , etc.

But like Ron said, if your using basic .cs files and just making edits, it will recompile into a .dso file on the fly.

I just started doing this a month ago , and its a steep learning curve , "when" to recompile was one of my many many questions. I scrapped my first game attempt and started another with what I learned the past three weeks or so, it only took seven days to have a first playable (network play) up and running (with tanks and teams) Very cool ...