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 Rate Thread Display Modes
  #1  
Old 03-10-2010, 08:53 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
new TServerPlayer() and a few bugs

First off, it's case sensitive. This is a bad thing. Especially since the player tends to be offline, there is no way to get the proper case for their account.

Secondly, it seems it does not properly support variables:

temp.pl = new TServerPlayer("DustyPorViva");
Works.

temp.a = "DustyPorViva";
temp.pl = new TServerPlayer(temp.a);

Does not.

temp.a = "DustyPorViva";
temp.pl = new TServerPlayer((@temp.a));

Does work, however.
Reply With Quote
  #2  
Old 03-10-2010, 12:17 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by DustyPorViva View Post
Secondly, it seems it does not properly support variables:

temp.pl = new TServerPlayer("DustyPorViva");
Works.

temp.a = "DustyPorViva";
temp.pl = new TServerPlayer(temp.a);

Does not.

temp.a = "DustyPorViva";
temp.pl = new TServerPlayer((@temp.a));

Does work, however.
This is more than likely intended behaviour. If you pass it a plain variable, you are telling GScript that you want it to instantiate in temp.a, which is precisely the same way that you can instantiate GUI controls. Using (@ temp.a) is forcing a string to be returned.
__________________
Skyld
Reply With Quote
  #3  
Old 03-10-2010, 02:35 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally Posted by Skyld View Post
This is more than likely intended behaviour. If you pass it a plain variable, you are telling GScript that you want it to instantiate in temp.a, which is precisely the same way that you can instantiate GUI controls. Using (@ temp.a) is forcing a string to be returned.
You are all crazy
Reply With Quote
  #4  
Old 03-10-2010, 05:44 PM
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 Loriel View Post
You are all crazy
Quoted for truth.
Reply With Quote
  #5  
Old 03-11-2010, 02:00 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
The "new" operator is special because of compatibility reasons, eventually that can be dropped sometime though. Right now it's forcing the argument to be a string, if you write (myvar) then it's using it as "myvar" instead of retrieving the value of myvar.
Reply With Quote
  #6  
Old 03-11-2010, 09:29 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Stefan View Post
The "new" operator is special because of compatibility reasons, eventually that can be dropped sometime though. Right now it's forcing the argument to be a string, if you write (myvar) then it's using it as "myvar" instead of retrieving the value of myvar.
What about the case sensitivity?
Reply With Quote
Reply

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 11:55 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.