Scripting while running
by Lee Latham · in Torsion · 10/12/2008 (1:30 am) · 3 replies
I've been wondering about this for a long time....
It was my understanding that with Torsion, you could edit a script while the game is running, and have it take effect without restarting the game. Am I delusional? I realize I could be...
But if so, what does that include? I haven't been able to make any changes while the game is running. For example, changing what a trigger does. Or changeing a datablock value. Although I suspect that changeing a datablock value would still not be possible.
Anyway, it's kinda a hard thing to search for. I'd be grateful to anyone who wanted to straighten me out.
It was my understanding that with Torsion, you could edit a script while the game is running, and have it take effect without restarting the game. Am I delusional? I realize I could be...
But if so, what does that include? I haven't been able to make any changes while the game is running. For example, changing what a trigger does. Or changeing a datablock value. Although I suspect that changeing a datablock value would still not be possible.
Anyway, it's kinda a hard thing to search for. I'd be grateful to anyone who wanted to straighten me out.
#2
I can't even imagine how many times I've started my game up after piddling little changes over the last couple years. And all along I've been wondering how much time I've been wasting doing that.
Cool!
10/12/2008 (12:23 pm)
Goodness. Well, I will be trying that out quite soon, crashy or not--thanks!I can't even imagine how many times I've started my game up after piddling little changes over the last couple years. And all along I've been wondering how much time I've been wasting doing that.
Cool!
#3
This was also back when I still used Tribal for all my editing.
10/14/2008 (8:36 am)
Well, you can to this to small degree already in Torque, of course the last time I tried it was back in the TGE 1.2/1.3 days. You can edit a file, and then use the console in-game to call exec() on a file to recompile it. I can't remember if changes to datablock values were reflected or not, but some of the more minor stuff certainly was.This was also back when I still used Tribal for all my editing.
Associate Tom Spilman
Sickhead Games
I put together a resource some time back with the changes to Torque to support it.
TorqueScript Edit and Continue
It never really took off... no one seemed to care enough to check it out.
Still as soon as i get some time to dust it off it will become a core Torque feature. You don't quite understand the benefit of Edit and Continue until you use it... and then you see how you could never code again without it.