Game Development Community

T3D 1.1 Beta 3 - Terrain bursh size shows as 100 100 when entering 1000 - RESOLVED

by Paul Yoskowitz · in Torque 3D Professional · 09/24/2010 (2:32 am) · 6 replies

(what version are you using?)
Build: T3D 1.1 Beta 3

(what platform/OS did this happen on?)
Platform: Windows 7 64 bit

(where is this bug happening?)
ingame

(what is the bug)
In the world editor, the size "box" can have 1000 entered into the space. once you click off of it, it becomes "100 100".



(tell us how to trigger the bug)
1. Launch the game
2. Press F11 to enter the editors
3. type in "1000" in the size box - hit Enter

#1
09/24/2010 (2:45 pm)
I'll need more information. In which tool is it, is it the size field for a specific object, etc. If a field reverts to a lower then it is most likely clamped to that value, but I need to know more before I can say for sure.
#2
09/24/2010 (3:48 pm)
its the Terrain Editor. when you are changing the size of the area of terrain to be modified - the "circle".

it may be converting to a lower number, but the other input areas around it never went past 100 for input and i felt that 100 100 was most likely an incorrect value.
#3
09/24/2010 (4:53 pm)
Logged by Matt Taylor, FS-QA Intern, TQA-1147
#4
09/27/2010 (5:56 pm)
Ah, I see now what you meant, thanks for the clarification. Bug confirmed.

As a side note, it looks to be a purely cosmetic bug as it doesn't appear to affect the brush.
#5
10/14/2010 (10:33 pm)
Change validateBrushSize function in tools/worldEditor/scripts/EditorGui.ed.cs (around line 1082) to look like this:

function TerrainEditorPlugin::validateBrushSize( %this )
{
   %minBrushSize = 1;
   %maxBrushSize = getWord(ETerrainEditor.maxBrushSize, 0);

   %val = $ThisControl.getText();
   if(%val < %minBrushSize)
      $ThisControl.setValue(%minBrushSize);
   else if(%val > %maxBrushSize)
      $ThisControl.setValue(%maxBrushSize);
}
#6
04/12/2011 (11:44 am)
Fixed in 1.1 Final. (May be fixed in 1.1 Preview)