Game Development Community

Possible to change script without reload TGB?

by Neil Petrick · in Torque Game Builder · 09/22/2006 (7:50 pm) · 3 replies

I'm just wondering if its at all possible to update scripts without having to quit torque, then reload it. Not a huge hassle I admit but I am curious.

#1
09/22/2006 (11:05 pm)
Yes, you can just exec the script file from the console to reload it. Press ~ to bring up the console, and type:

exec("<path-and-filename>");

and it will recompile and reload the script file.
#2
09/24/2006 (12:48 pm)
You can also put the exec statement in game.cs - either in the startGame function, or right at the top. It will be exec'd every time you hit the play button.
#3
11/16/2006 (12:24 am)
Or maybe you can try reloading the project instead of TGB itself? will be slightly faster. (just open the current Project from "Open Project")