Newbie: What needs to be done between changing script and seeing updates in game?
by GrizzLy · in Technical Issues · 02/22/2011 (1:32 pm) · 2 replies
What needs to be done between changing script and seeing updates in game?
Is stuff like compiling, building, cooking, baking or whatever needed to see updates in game?
Is it maybe possible to change script and see updates in realtime (without restarting game)?
Is stuff like compiling, building, cooking, baking or whatever needed to see updates in game?
Is it maybe possible to change script and see updates in realtime (without restarting game)?
About the author
#2
exec(); command on the .cs file.
Datablock changes can use a "Reload" function. You can see if this one works (I have it from Tribes 2), however it is recommended that you do restart the game if you have datablock changes:
02/23/2011 (3:11 pm)
If you don't have any datablock changes then you can call theexec(); command on the .cs file.
Datablock changes can use a "Reload" function. You can see if this one works (I have it from Tribes 2), however it is recommended that you do restart the game if you have datablock changes:
function reload(%script, %client) {
compile(%script);
exec(%script);
%client.transmitDataBlocks(0);
}
Employee Michael Perry
ZombieShortbus
2. If C++ changes, recompile the engine from visual studio (requires a source code license)
3. If TorqueScript changes, save the script and delete any DSO files associated with them
4. Launch the runtime to see changes