RC 2: Collision Layers & groups Bug and fix
by Jacopo De Luca · in Torque Game Builder · 06/13/2006 (10:34 am) · 3 replies
Hi.
There is a small bug in the Collision Groups and Layers editor.
The "31" button does not work correctly, usually losing it's real value when you switch beetween objects.
The fix is simple:
Open the file "mask.ed.cs" located in the "\TorqueGameBuilder\games\tools\levelEditor\scripts\forms\quickEditClasses\quickEditFields" folder.
Find the method "QuickEditMaskStack::setProperty" and change this line:
in:
Now restart TGB and all should work.
Bye,
Jacopo
Edit: Pointed out the change.
There is a small bug in the Collision Groups and Layers editor.
The "31" button does not work correctly, usually losing it's real value when you switch beetween objects.
The fix is simple:
Open the file "mask.ed.cs" located in the "\TorqueGameBuilder\games\tools\levelEditor\scripts\forms\quickEditClasses\quickEditFields" folder.
Find the method "QuickEditMaskStack::setProperty" and change this line:
// Turn all the buttons off. for (%i = %this.start; %i < %this.end; %i++)
in:
// Turn all the buttons off. for (%i = %this.start; %i [b]<=[/b] %this.end; %i++)Basically, you just need to change the for condition from < to <=.
Now restart TGB and all should work.
Bye,
Jacopo
Edit: Pointed out the change.
About the author
#2
Yes, I've read that thread, and it seems that the problem you have reported was corrected in RC2.
In the case I'm reporting, the problem is simple. When the editor updates the state of the buttons, at first turns off all of them then it turns on only those that are selected.
The bug is in the turning-off loop. The last button remains out of the loop, so it will never be turned off.
Hope this helps!
Bye,
Jacopo
06/14/2006 (3:02 am)
Hi Alex.Yes, I've read that thread, and it seems that the problem you have reported was corrected in RC2.
In the case I'm reporting, the problem is simple. When the editor updates the state of the buttons, at first turns off all of them then it turns on only those that are selected.
The bug is in the turning-off loop. The last button remains out of the loop, so it will never be turned off.
Hope this helps!
Bye,
Jacopo
Torque Owner Alex Rice
Default Studio Name