T2D Debugging tool
by Yves (Kreegrr) · in Torque Game Builder · 03/08/2005 (4:42 pm) · 7 replies
I don't know how difficult this would be for Melv and the t2d development team but.
It would be nice if we could pass a parameter to T2D to tell it to compile the scripts only, write the log file and not load.
This would allow for most 3rd party IDEs to have debug capability.
I like to write a bunch of code, hit compile, fix errors and then continue on coding.
Just a thought
G-
It would be nice if we could pass a parameter to T2D to tell it to compile the scripts only, write the log file and not load.
This would allow for most 3rd party IDEs to have debug capability.
I like to write a bunch of code, hit compile, fix errors and then continue on coding.
Just a thought
G-
#2
Since one hasn't happened yet, here's what I'm doing [may work for you]; leave a torque instance running somewhere with the telnetConsole enabled. Telnet to it, and ask it to compile the code for you.
Gary (-;
03/08/2005 (4:46 pm)
I, too, would like a standalone compiler for torquescript.Since one hasn't happened yet, here's what I'm doing [may work for you]; leave a torque instance running somewhere with the telnetConsole enabled. Telnet to it, and ask it to compile the code for you.
Gary (-;
#3
And this
03/08/2005 (6:04 pm)
You could add these into the main.cs in the root folder of your T2D example folder.else if ($arg $= "-prepbuild")
{
enableWinConsole(true);
prepBuild();
setLogMode(1);
setEchoFileLoads(true);
$PureServer = false;
}And this
function prepBuild()
{
// this compiles all the scripts and guis
for(%file = findFirstFile("*.cs"); %file !$= ""; %file = findNextFile("*.cs"))
compile(%file);
for(%file = findFirstFile("*.gui"); %file !$= ""; %file = findNextFile("*.gui"))
compile(%file);
}
#5
03/09/2005 (10:12 am)
I ripped em from Tribes 2 :)
#6
Good job no Tribes people are around here or we could be in trouble. Oh wait... ;)
- Melv.
03/09/2005 (10:15 am)
Hey hey ... whatever works.Good job no Tribes people are around here or we could be in trouble. Oh wait... ;)
- Melv.
Torque 3D Owner Stephen Zepp
1) Configure for a new command line parameter (look how the -mod command line is handled to get started)
2) Set a global variable if your new command line parameter is part of the arguments.
3) After everything has finished being exec'ed (you'd want to to be a little careful here to make sure that the required code is run, but the rest is not), issue a quit(); if the global variable is set.