![]() |
Floating Point Bug
I know in newfeatures you said you fixed something to do with the floating point so it works with the Kingdoms item sorting.
Now, in any script any zeros directly trailing the decimal point are removed. For example: NPC Code: Place this in a level script and tap up or down. You will notice that when there should be zeros trailing the decimal place, they aren't there. Values in 0.05 increments that I am using in scripts now have small glitches or jumps when the movement of the object should otherwise be smooth. I'd say this is a rather big problem for the new client. |
Ouch, that's no good. Fix it for my buddy Delph! :)
We've got a PW to make ;) |
I didn't understand what you were saying at first, but I totally get what you mean
if you open the debugger you see the script is interpreted as PHP Code:
online, clientside, my results were even stranger from 0 to 1, it only added in 0.05 increments, but after 1 it added in 0.005 increments |
In simple terms, it removes any zeros between the decimal place and the next number higher than 0.
e.g. 0.005 becomes 0.5 13.00008 becomes 13.8 |
Yep, I found this out to, it ****ed up some Era systems. I had to change the timeout with the var...
|
Fill fix it, end of the week, sorry x-x
|
Fixed, download v2.31
|
Stefan, there are still issues with this. An NPC with this script:
NPC Code: will display the text "0.01 is converted to: 0.1". I'm working from v2.3.1 of the standalone editor, not sure if it also occurs in the online client. |
Quote:
|
Quote:
|
Quote:
|
Yes it's just the editor. As soon as I got access to an NPC Server online, the problem was gone.
|
Quote:
|
Ok new version uploaded (v2.311) for the editor, it should work correctly now.
|
| All times are GMT +2. The time now is 09:25 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.