Compiling and Running scripts
by Rarw Muffinz · in Torque 3D Professional · 09/10/2013 (6:56 pm) · 6 replies
For quite some time now I have been making add-ons in torque for a game called Blockland. I know i'm going to be nailed for this but my question is simple, How do i Compile and Run a .cs file. I have looked all over and could not find anything on it. If someone could explain it that would be great.
system info (I doubt you might need this but whatever)
Windows 7 (Serveice pack 1)
Acer Laptop
64x bit
Intel duel core 2.GHz
6.00 GB RAM
Thanks,
Rarw Muffinz
PS: Im new to the GG forums sorry if I put this is the wrong area ^-^
system info (I doubt you might need this but whatever)
Windows 7 (Serveice pack 1)
Acer Laptop
64x bit
Intel duel core 2.GHz
6.00 GB RAM
Thanks,
Rarw Muffinz
PS: Im new to the GG forums sorry if I put this is the wrong area ^-^
About the author
#2
09/10/2013 (7:53 pm)
Might do better in the Beginner forum, but otherwise no worries. Welcome to Torque!
#3
That will compile and run your script file. If the .cs is missing, it will just load the dso file.
09/11/2013 (11:57 am)
exec("path_to_script_file/file.cs");That will compile and run your script file. If the .cs is missing, it will just load the dso file.
#4
09/11/2013 (6:25 pm)
Thanks for the support, Im just going to use main.cs to exec my scripts... I was wondering if there was just a console where i could execute my scripts from
#6
09/11/2013 (6:59 pm)
In T3D you should be able to use the ` key (tilde) to toggle the console. You execute your scripts just like Jeff showed and once they've been loaded with exec() you can use any function they contain by typing it in the console.
Torque Owner Richard Ranft
Roostertail Games
Try out the FPS Tutorial - it will get you up to speed.