Game Development Community

Reloading Scripts w/o Exiting

by Unk · in Torque Game Builder · 06/04/2005 (5:16 pm) · 3 replies

Hey guys,

Newb question here. Is there a console command for reloading scripts in T2D without having to relaunch the game every time?

Seems like a minor thing but every second counts (especially on tasks that you do so frequently).

It seems like it would be possible to write a reloader utility in script but I am not sure how to do a proper script cleanup yet. =P

-Unk

#1
06/04/2005 (5:20 pm)
Exec();


like

exec("T2D/client/datablocks.cs");

though be carefull what you reload, you can run new scripts this way too
#2
06/04/2005 (5:23 pm)
Awesome. Thanks man.

-Unk
#3
06/04/2005 (5:25 pm)
What's nifty is you can dynamically write out .cs script files and then exec them