Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Bug Report (https://forums.graalonline.com/forums/forumdisplay.php?f=193)
-   -   Windows v6 beta test (https://forums.graalonline.com/forums/showthread.php?t=134257598)

cbk1994 05-19-2010 03:48 AM

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.

Zeke_iPhoneGP 05-20-2010 12:51 AM

Quote:

Nor do I. That said, all bugs I report have occurred on Windows 7.
Same here. I run the v6 client on two PCs. (One Win 7 netbook, and one win vista desktop. Both are 32 bit) The only frustrating thing is when using my netbook, after about 3 months, the client is really lagging for me. But, when I enable full screen, it runs the normal speed. (I don't prefer using full screen, I like to use rc2 instead of the scripted one.) :/

cbk1994 05-22-2010 04:40 PM

PHP Code:

temp.0;

for (
i<= 1+= 0.05) {

}

player.chat i

produces 1.000000119

cbk1994 05-22-2010 04:54 PM

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:

for (temp.0<= 255+= 10) {
  
MyText.profile.fontColor = {255255255min(255i)};
  
// sleep(0.05);


EDIT 2:
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?

Admins 05-23-2010 02:06 PM

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.

cbk1994 05-24-2010 08:15 AM

Quote:

Originally Posted by Stefan (Post 1578079)
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.

Cool. What about this?

Quote:

Originally Posted by cbk1994 (Post 1577945)
PHP Code:

temp.0;

for (
i<= 1+= 0.05) {

}

player.chat i

produces 1.000000119


cbk1994 05-30-2010 07:40 AM

PHP Code:

echo(57 0.1); 

echoes 5.699999808.

Admins 05-30-2010 12:47 PM

Those are floating points operations, they are not exact by nature although Graal tries to round them in special cases.

cbk1994 05-30-2010 12:53 PM

Quote:

Originally Posted by Stefan (Post 1579418)
Those are floating points operations, they are not exact by nature although Graal tries to round them in special cases.

The problem did not exist in v5, nor does it exist on Mac.

And no matter how you spin it, "57 * 0.1" should be a perfectly solvable expression for any modern programming language.

Admins 05-30-2010 04:21 PM

5.7 cannot be described precisely with a floating point number, I'm not sure where your point is.

Crono 05-30-2010 04:41 PM

Quote:

Originally Posted by Stefan (Post 1579437)
5.7 cannot be described precisely with a floating point number, I'm not sure where your point is.

I think his point is floating.

man im bad

fowlplay4 05-30-2010 05:13 PM

Quote:

Originally Posted by cbk1994 (Post 1579373)
PHP Code:

echo(57 0.1); 

echoes 5.699999808.

Works fine on my client.

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
temp.test 57 0.1;
  echo(
57 0.1); // echo'd 5.7
  
echo(temp.test); // also echo'd 5.7


PHP Code:

Stats:
System:
  
TimeSun May 30 10:12:51 2010
  Client
-version5.244
  OS
win 6.1 7600 
  CPU
x86

DirectX9 capabilities
:
  
Hardwareyes
  Non
-Power of 2 texturesyes
  Maximum texure size
8192 x 8192

Graphics card
:
  
DescriptionATI Radeon HD 4800 Series
  Driver version
8.14.10.700


Memory 
(in bytes):
  
Total79294464
  Bitmaps
1152544
  Drawing panels
4644864
  Textures 
(possibly in video RAM): 4221809 


cbk1994 05-30-2010 09:52 PM

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
temp.24;
  
temp.0.1;
  
  
player.chat b;


24.000000096

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)..

fowlplay4 05-31-2010 03:18 AM

It seems like it only occurs for operations at one decimal place.

PHP Code:

//#CLIENTSIDE

function onCreated() {
  
// Work Fine
  
temp.0.001
  
temp.24;
  echo(
temp.temp.b);
  
temp.0.01
  echo(
temp.temp.b);
  
  
// Broken
  
temp.0.1
  echo(
temp.temp.b);


On a side note, I spent most of my scripting time today making Zodiac, V6-friendly so nearly all font related things don't look messed anymore.

WhiteDragon 05-31-2010 04:15 AM

Quote:

Originally Posted by Stefan (Post 1579437)
5.7 cannot be described precisely with a floating point number, I'm not sure where your point is.

Could you provide a double type? Or arbitrary-precision? Speed wouldn't really be much of an issue here, I think just hooking in something like GMP in would be fine.


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.