Author Topic: Torque Scripting Compiler?  (Read 1148 times)

OK so i have done a good bit of scripting for many computer languages and they all have a compiler or something that would check for errors in yours script. Torque is pretty big so they must have one somewhere. Also i don't understand how people get/learn the scripts for blockland. Where do you people learn? From others scripts? But then how do they learn? I am pretty sure badspot isn't willing to teach even 3 people to script lol ("ass, but thx for making blockland... and taking $20 :/ ") ... hmmm A.D.D. ... oh yea! So if you guys could help me out because i am tired of opening my server and closing it over and over, and then having the script never work :/... thx for reading because i wouldn't have :)

Please dont post if you have nothing worth posting...
« Last Edit: July 12, 2010, 12:17:09 AM by tyler0 »

Torque script compiles on run time.  Also, compiling is actually making the computer understand the code, for future reference.

There are some resources for torquescript, most of them can be found on garage games' website (google it).
You can re-execute a modified file like this:
Code: [Select]
discoverFile("Add-Ons/YourAddOn.zip");
exec("Add-Ons/YourAddOn/YourScript.cs");
This may cause some problems depending on what you're doing, so for the most part it's better to just restart blockland each time.

If you need something to check for errors, use the console. It gives a decent error report.
Most people around here learned scripting themself, from other scripts, modifying little things, then slowly moving onto bigger things. People very rarely give actual classes or lessons. When Blockland went retail and the add-ons system was introduced, all the add-on makers were people who learned from 0002, when all the games scripts were not dso's and were freely open to be editted. Future players learned from them.
Badpost isn't paid to teach several thousand players how to make add-ons.
Do what Amade said.
« Last Edit: July 12, 2010, 02:42:20 AM by Headcrab Zombie »

DiscoverFile is just a hack for adding files to the resource manager cache. Exec doesn't use this, so you can just do exec()