T3D 1.1 Preview - SpawnSphere SpawnScript Inserts Characters - RESOLVED (THREED-1762)
by Steve Acaster · in Torque 3D Professional · 04/26/2011 (5:28 pm) · 2 replies
T3d 1.1 Preview
win7 32bit
Target:
SpawnSphere -> spawnScript
Issue:
Using "spawnScript" on a spawnSphere introduces extra characters (a percent sign and a space) at the beginning of the script.
Repeat:
In-game, go to the main spawnSphere and add a simple script:
So in the *.mis file it looks like:
When you spawn check the console:
Notice the extra "% " at the beginning of the script function for no reason. This will cause syntax errors in some cases (eg: using the localClientConnection hax)
Suggest:
Stop "percent sign and a space" from being added when the script is fired.
win7 32bit
Target:
SpawnSphere -> spawnScript
Issue:
Using "spawnScript" on a spawnSphere introduces extra characters (a percent sign and a space) at the beginning of the script.
Repeat:
In-game, go to the main spawnSphere and add a simple script:
%a = 3; %b =2; echo(%a+%b);
So in the *.mis file it looks like:
new SpawnSphere() {
spawnScript = "%a = 3; %b =2; echo(%a+%b);";
//.... etcWhen you spawn check the console:
% %a = 3; %b =2; echo(%a+%b); 5
Notice the extra "% " at the beginning of the script function for no reason. This will cause syntax errors in some cases (eg: using the localClientConnection hax)
Suggest:
Stop "percent sign and a space" from being added when the script is fired.
About the author
One Bloke ... In His Bedroom ... Making Indie Games ...
Associate David Montgomery-Blake
David MontgomeryBlake