Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Bug Report
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 13 votes, 4.69 average. Display Modes
  #301  
Old 05-19-2010, 04:48 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
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.
__________________
Reply With Quote
  #302  
Old 05-20-2010, 01:51 AM
Zeke_iPhoneGP Zeke_iPhoneGP is offline
Old Account
Zeke_iPhoneGP's Avatar
Join Date: Apr 2010
Location: United States, Virginia
Posts: 46
Zeke_iPhoneGP is on a distinguished road
Send a message via Skype™ to Zeke_iPhoneGP
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.) :/
__________________
Quote:
*Trigger: Xor knows how to have fun too guys...
EllyBelly: suuuuurrreeeeee
Wafflez: thats why we pull out the pizza rolls when xor is back
Reply With Quote
  #303  
Old 05-22-2010, 05:40 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Graal Script Code:
temp.0;

for (
i<= 1+= 0.05) {

}

player.chat i
produces 1.000000119
__________________
Reply With Quote
  #304  
Old 05-22-2010, 05:54 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
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)
Graal Script 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?
__________________

Last edited by cbk1994; 05-22-2010 at 06:35 PM..
Reply With Quote
  #305  
Old 05-23-2010, 03:06 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
  #306  
Old 05-24-2010, 09:15 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Admins View Post
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 View Post
Graal Script Code:
temp.0;

for (
i<= 1+= 0.05) {

}

player.chat i
produces 1.000000119
__________________
Reply With Quote
  #307  
Old 05-30-2010, 08:40 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Graal Script Code:
echo(57 0.1); 
echoes 5.699999808.
__________________
Reply With Quote
  #308  
Old 05-30-2010, 01:47 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Those are floating points operations, they are not exact by nature although Graal tries to round them in special cases.
Reply With Quote
  #309  
Old 05-30-2010, 01:53 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Admins View Post
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.
__________________
Reply With Quote
  #310  
Old 05-30-2010, 05:21 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
5.7 cannot be described precisely with a floating point number, I'm not sure where your point is.
Reply With Quote
  #311  
Old 05-30-2010, 05:41 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 19,993
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Send a message via AIM to Crono
Quote:
Originally Posted by Admins View Post
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
__________________
Reply With Quote
  #312  
Old 05-30-2010, 06:13 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by cbk1994 View Post
Graal Script Code:
echo(57 0.1); 
echoes 5.699999808.
Works fine on my client.

Graal Script 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

Graal Script 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 
__________________
Quote:

Last edited by fowlplay4; 05-30-2010 at 06:41 PM..
Reply With Quote
  #313  
Old 05-30-2010, 10:52 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Graal Script 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)..
__________________
Reply With Quote
  #314  
Old 05-31-2010, 04:18 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
It seems like it only occurs for operations at one decimal place.

Graal Script 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.
__________________
Quote:
Reply With Quote
  #315  
Old 05-31-2010, 05:15 AM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Quote:
Originally Posted by Admins View Post
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.
Reply With Quote
Reply

Tags
graal v6, windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:02 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright (C) 1998-2008 Linux cyberjoueurs All Rights Reserved.