![]() |
Can someone please fix the console window? It does not update 90% of the time when new text arrives. This happens on both Windows and Mac, so it's probably a problem with the scripts on login.
|
Quote:
|
PHP Code:
|
Changing the alpha of a GuiMLTextCtrl, even to 1, causes it to disappear indefinitely.
EDIT: Weird. This works fine (shows the text) until you uncomment the sleep, at which point the text never shows at all (even though echoing profile.fontColor works fine) PHP Code:
It appears like the text doesn't update after the first 0.05 seconds. If you set the alpha in the font color to 100 it works, but if you schedule an event in 0.05 seconds you can no longer change it. Changing the text works to update it, though... EDIT 3: Also a problem in the current client it seems. EDIT 4: Same goes for GuiControl for borderColor, but I can't find a way to update it... alpha only effects the fill color? |
MLTextCtrl only uses the profile when updating the text, and only parts of it (bold, italic are only done with b and I tags). The reason is that tags can change the text attributes. Just use reflow() to update it.
|
Quote:
Quote:
|
PHP Code:
|
Those are floating points operations, they are not exact by nature although Graal tries to round them in special cases.
|
Quote:
And no matter how you spin it, "57 * 0.1" should be a perfectly solvable expression for any modern programming language. |
5.7 cannot be described precisely with a floating point number, I'm not sure where your point is.
|
Quote:
man im bad |
Quote:
PHP Code:
PHP Code:
|
PHP Code:
You're right, simply echoing "24 * 0.1" doesn't produce the glitch, although very rarely do you use static numbers in scripting that aren't stored in a variable or constant. The reason it is a problem, Stefan, is because the glitch does not exist on Mac and did not exist in v5. I'm not sure about how floating-point numbers work, but maybe your "special case rounding" needs to be fixed? I can find places where it has an impact on literally every server. Even Kingdoms, which generally rounds numbers, has errors where items will appear to weigh 5.0000006 kg (which do not appear so on v5).. |
It seems like it only occurs for operations at one decimal place.
PHP Code:
|
Quote:
|
All times are GMT +2. The time now is 02:33 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.