T3D 1.1 Beta 3 - getWords returning incorrectly - DUPLICATE
by Aloshi · in Torque 3D Professional · 05/01/2011 (1:48 pm) · 2 replies
Build: T3D 1.1 Beta 3 Pro.
Platform: Windows 7, 64 bit.
Target: The function getWords (and by extension StringUnit::getUnits, I suppose).
Issues: getWords seems to be leaving off the last two characters when the end index is the end of the string. Examples:
This problem only occurs when using getWords through the end of the string. For example,
Steps to repeat: Echo these examples.
Edit: Seems this has already been reported elsewhere (I searched but found nothing) and is fixed in the 1.1 Preview. Whoops.
Platform: Windows 7, 64 bit.
Target: The function getWords (and by extension StringUnit::getUnits, I suppose).
Issues: getWords seems to be leaving off the last two characters when the end index is the end of the string. Examples:
getWords("0 1 2 3 4 5 6", 3, 6);Will return: "3 4 5".getWords("0.0 1.0 2.0 3.0 4.0 5.0 6.0", 3, 6);Will return: "3.0 4.0 5.0 6".This problem only occurs when using getWords through the end of the string. For example,
getWords("0.0 1.0 2.0 3.0 4.0 5.0 6.0", 3, 5);Will return: "3.0 4.0 5.0". It works fine.Steps to repeat: Echo these examples.
Edit: Seems this has already been reported elsewhere (I searched but found nothing) and is fixed in the 1.1 Preview. Whoops.
#2
05/02/2011 (10:59 am)
Already reported and there's a bugfix in the 1.1 beta3 forums ... somewhere.
Torque 3D Owner Lunacy