Graal Forums  

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

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 13 votes, 4.69 average. Display Modes
  #1  
Old 01-12-2011, 07:48 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 Crow View Post
Which one?
performClick

I asked about this a while back too

Quote:
Originally Posted by cbk1994 View Post
GuiButtonCtrl.performclick() doesn't seem to work; Script: Function SQL_Data_CloseTab.performclick not found in function SQL_Data_Tabs_Menu.onSelect in script of Weapon Staff/SQL Explorer. I can use any other functions or variables of the button, and objectType() returns "GuiButtonCtrl". Can anyone reproduce this?
Quote:
Originally Posted by Stefan View Post
It has been removed a long time ago because of security issues.
__________________
Reply With Quote
  #2  
Old 01-12-2011, 07:49 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 Crow View Post
Which one?
guiObj.performClick() but to be fair the function still exists since V5 is still the main client.
__________________
Quote:
Reply With Quote
  #3  
Old 01-12-2011, 08:07 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Stefan View Post
That function has been removed around 3 years ago, will not be added again.
That can't be true, I'm using it this very moment in v5.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #4  
Old 01-12-2011, 08:39 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 xXziroXx View Post
That can't be true, I'm using it this very moment in v5.
He probably means in the early v6 versions. Keep in mind there hasn't been a client update in at least 2 years, maybe 3.
__________________
Reply With Quote
  #5  
Old 01-12-2011, 11:54 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
I know this has been said before, but I keep having scripts breaking because of this:

PHP Code:
GraalScript: Function Interface_LevelText.adjustText not found in script of Weapon _Interface 
When I use join("classname"); I expect it to be instant or at least freeze the rest of the script until it really is joined. In this particular case, adjustText() is a function found in the class gui_basics which is joined to the GUI when created and later on called.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #6  
Old 01-13-2011, 12:48 AM
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
You have to preload the class (loadclass) or call a function of the object to force load, the best is to use a init() function or so.
Reply With Quote
  #7  
Old 01-13-2011, 01:49 AM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
Quote:
Originally Posted by Stefan View Post
You have to preload the class (loadclass) or call a function of the object to force load, the best is to use a init() function or so.
You can't make join() wait for the class to fully load before returning?
__________________
Reply With Quote
  #8  
Old 01-13-2011, 02:17 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by Stefan View Post
You have to preload the class (loadclass) or call a function of the object to force load, the best is to use a init() function or so.
Any possibility for an implementation of obj.loadclass?
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #9  
Old 01-13-2011, 08:08 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
I'd really like to see the main window being created at the mouse fixed. That's an annoying one. Also, I noticed that Graal falsely accepts keystrokes when out of focus sometimes. A way to reproduce would be to connect to a server and, while it connects, change to another window (explorer or something else), then hit a couple keys.
Reply With Quote
  #10  
Old 01-13-2011, 11:54 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 Crow View Post
I'd really like to see the main window being created at the mouse fixed.
Not only that but all external windows open at mouse center which is annoying as hell.
__________________
Quote:
Reply With Quote
  #11  
Old 01-14-2011, 12:02 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
Ya, trying to open PMs is a pain in the ass when you have to open a mass, close it, open a mass, close it. So on and so forth. I talked to Tig about the new ability to position external windows via script but login 2 is broken or something.

Either way, I'd like to see this hardcoded. It was a horrible addition to RC2 and I don't know why it was ever brought to v6.
Reply With Quote
  #12  
Old 01-14-2011, 08:34 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
Stefan, this is how you should solve ALL your font rendering complaints.
Reply With Quote
  #13  
Old 01-14-2011, 09:24 AM
MrOmega MrOmega is offline
One More Time
MrOmega's Avatar
Join Date: Aug 2010
Location: TN, USA
Posts: 631
MrOmega is an unknown quantity at this point
Send a message via AIM to MrOmega Send a message via MSN to MrOmega Send a message via Yahoo to MrOmega
Quote:
Originally Posted by DustyPorViva View Post
Stefan, this is how you should solve ALL your font rendering complaints.
Haha, "On Some Servers", so true. I think these options should somehow actually effect the rendering and not just options, but I can get by for now.

Anywho, I've noticed on my server and other UC/Hosted servers once I connected I can't connect to another server, I must close Graal to do so. Serverwarp() still works though.
__________________
Time is the fire in which we burn...
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Select, Start! Now I got 99 LIVES!!!
Reply With Quote
  #14  
Old 01-15-2011, 07:35 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Made some large changes to the playerlist on Login 2.

Now profile windows will open at the center of your screen, likewise for PM windows and history.

Your Playerlist will save position now too if you have alwayson checked, so if you open it and move it to a certain spot on your screen, then when you log back into Graal, it'll open in that location. If anyone has any issues, please let me know.

Note: These features are only available on Login 2.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #15  
Old 01-16-2011, 01:20 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
On testbed, Personal/Mark_Sir_Link/GUITEST

On v5, using this style and changing the font in the profile is working just fine.

http://img834.imageshack.us/img834/1...1295133596.png

On v6, it is replacing the font with something else that doesn't appear to be in the window's blind skin nor is it my default font.

http://img141.imageshack.us/img141/5...1295133197.png

Happening to Jacob_Bald6225 also.

overridestylefont appears to work but isn't allowing the font color to be changed
Reply With Quote
  #16  
Old 01-16-2011, 04:38 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
It's using the font color defined in the wba file (Personality, ActiveTextR/G/B). You can set the profile.overridestylefont to override the font type, or set style = "" or "none" or so to get rid of the wba stuff in a sub-control.

Hmmm the window position things aren't working at all for me on login2, just seeing some windows shifting positions and the playerlist always appear at {0,0}
Reply With Quote
  #17  
Old 01-16-2011, 08:58 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
PHP Code:
File downloadguigames_arcmessage2.png (size10128done
File download
guiblue_scroll_noback.png (size2543done
File download
loginserver_en.po not found
File download
login_gradient_blue.png (size309done
File download
graalv4title.png (size32000)...
File downloadgraalv4title.png (size64000)...
File downloadgraalv4title.png (size83319)...
File downloadgraalv4title.png (size83319doneFile downloadguigames_arcmessage2.png (size10128done
File download
verdanabd.ttf not found
File download
graalicon_big.png (size322done
File download
microsoft sans serif.ttf not found
File download
guiblue_scroll_noback.png (size2543done 
I get this every single time I open v6, it's rather annoying to download the same files over and over.

Also, and this is a bug that's been around on v5 for ages as well, when all the downloads are done it doesn't close down the window, and forces you to do it on your own. Which is annoying to say the least.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #18  
Old 01-16-2011, 09:06 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Also, if you press Alt (without any modifier) in the main Graal window or an external one, the game freezes completely.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #19  
Old 01-16-2011, 09:25 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 xXziroXx View Post
Also, if you press Alt (without any modifier) in the main Graal window or an external one, the game freezes completely.
I think that is because it is technically selecting the "window menu" (I am guessing if you press Alt and then when it is frozen press the down key, you will see the window menu appear).
__________________
Skyld
Reply With Quote
  #20  
Old 01-16-2011, 10:00 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Skyld View Post
I think that is because it is technically selecting the "window menu" (I am guessing if you press Alt and then when it is frozen press the down key, you will see the window menu appear).
Yeah, I know that much, was just hoping for it to be disabled somehow since the window menu doesn't really do much for Graal.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #21  
Old 01-16-2011, 11:35 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 xXziroXx View Post
Yeah, I know that much, was just hoping for it to be disabled somehow since the window menu doesn't really do much for Graal.
This is probably more a Windows restriction I am guessing.
__________________
Skyld
Reply With Quote
  #22  
Old 01-17-2011, 04:00 AM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud of
Quote:
Originally Posted by Skyld View Post
This is probably more a Windows restriction I am guessing.
I'm pretty sure it is. If there are no in-window menus available, it treats the ALT key as though you clicked the program icon in the top left of the title bar, which brings up the default "Move, Close, Resize," etc menu. I don't think programs themselves can disable that function. Google Chrome completely removed the title text and icon at the top of their window, yet you can still click that top left corner and achieve the same results.
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·
Reply With Quote
  #23  
Old 01-17-2011, 05:33 AM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
Quote:
Originally Posted by Skyld View Post
This is probably more a Windows restriction I am guessing.
It's a restriction of the rendering loop being in the same thread as the Windows message loop. I highly doubt Stefan is going to go through the potential multi-threading headaches to resolve this.
__________________
Kat
Reply With Quote
  #24  
Old 01-22-2011, 06:19 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
Perhaps a emitter.particle.unique is in order to deal with those conditions.
__________________
Quote:
Reply With Quote
  #25  
Old 01-22-2011, 07:36 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by fowlplay4 View Post
Perhaps a emitter.particle.unique is in order to deal with those conditions.
Sounds good. Stefan, would you kindly implement this, please? :3
Reply With Quote
  #26  
Old 01-22-2011, 07:48 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Stefan did that on purpose for efficiency. On kingdoms iphone we have to create a new object each time we want new text basically. After about 30 objects or so, modulus back to 0.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #27  
Old 01-22-2011, 08:24 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Tigairius View Post
Stefan did that on purpose for efficiency. On kingdoms iphone we have to create a new object each time we want new text basically. After about 30 objects or so, modulus back to 0.
I know he did. The behavior should be optional, though. I also asked him personally about it, and he replied that it shouldn't even do that with text particles or something like that. He also said I should try two particle types and setting both vars the same, for that would eliminate his optimization, but that didn't work either.
Reply With Quote
  #28  
Old 01-26-2011, 12:08 AM
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
Ok next version will have emitter.particle.uniqueparticle = true/false, will be released this weekend or so.
Reply With Quote
  #29  
Old 01-26-2011, 06:03 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Stefan View Post
Ok next version will have emitter.particle.uniqueparticle = true/false, will be released this weekend or so.
Thank you <3
Reply With Quote
  #30  
Old 01-26-2011, 06:44 PM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by Stefan View Post
Ok next version will have emitter.particle.uniqueparticle = true/false, will be released this weekend or so.
I got a friend to tell bout this.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #31  
Old 01-26-2011, 10:48 PM
Geno Geno is offline
Prinking Droblem
Geno's Avatar
Join Date: Jul 2003
Posts: 7,013
Geno has much to be proud ofGeno has much to be proud ofGeno has much to be proud ofGeno has much to be proud ofGeno has much to be proud ofGeno has much to be proud of
Send a message via AIM to Geno
graal runs on my netbook when using V6.

the last version would not run...so

Thanks!
Reply With Quote
  #32  
Old 01-27-2011, 01:19 AM
MrOmega MrOmega is offline
One More Time
MrOmega's Avatar
Join Date: Aug 2010
Location: TN, USA
Posts: 631
MrOmega is an unknown quantity at this point
Send a message via AIM to MrOmega Send a message via MSN to MrOmega Send a message via Yahoo to MrOmega
Here's an issue I'm having. I'm using GraalControl.onMouseDown() and call a function from within side this. Now within this function I call another and same again in the next function. The params in getDist() are always the params of onMouseDown(), not the ones I send.
PHP Code:
function GraalControl.onMouseDown()
{

  
doActions();

}

function 
doActions()
{

  
someFunction();

}

function 
someFunction()
{

  
temp.dist getDistplayer.xtemp.nx);

}

function 
getDisttemp.x1temp.x2temp.y1temp.y2)
{

  if ( 
params.size() == 4)
    return (((( 
temp.x2 temp.x1) ^ 2) + (( temp.y2 temp.y1) ^ 2)) ^ 0.5);

  if ( 
params.size() == 2)
    return ((( 
temp.x2 temp.x1) ^ 2) ^ 0.5);


Basically in getDist the params are that of onMouseDown() regardless.
__________________
Time is the fire in which we burn...
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Select, Start! Now I got 99 LIVES!!!
Reply With Quote
  #33  
Old 01-27-2011, 01:45 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 MrOmega View Post
Basically in getDist the params are that of onMouseDown() regardless.
This is intentional. You have to give the parameters names. Stefan explained it somewhere but I can't find the post.

EDIT:
Quote:
Originally Posted by Stefan View Post
The params[] array is only created when the script is called (doesn't even need to be a function, GS1 style). That is either on an event, or when you call a function of another object. To get a variable number of parameters either use func(arg1, arg2, arg3, arg4 etc) and ignore the arguments that you don't want, or pass the parameters as array.

Currently accessing the parameters for each function as array is not possible because it would mean a big speed slowdown, although if it's really important to have it then we could add something like temp.functionparams[] which dynamically converts the function parameters to variables.
__________________
Reply With Quote
  #34  
Old 01-27-2011, 01:50 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
Quote:
Originally Posted by MrOmega View Post
Here's an issue I'm having. I'm using GraalControl.onMouseDown() and call a function from within side this. Now within this function I call another and same again in the next function. The params in getDist() are always the params of onMouseDown(), not the ones I send.

Basically in getDist the params are that of onMouseDown() regardless.
Provide an actual working script (especially in Bug Reports) with some output if you want to help get the issue resolved.

Edit: So it's intentional.

PHP Code:
//#CLIENTSIDE

function onCreated() {
  echo(
"== Created ==");
  
getSomevalue(12);
}

function 
GraalControl.onMouseDown() {
  echo(
"== Clicked ==");
  echo(
"MouseDown: " params);
  
somefunction();
  
this.scheduleevent(1"CheckParams""");
}

function 
onCheckParams() {
  echo(
"check: " params);
}

function 
somefunction() {
  echo(
"somefunction: " params);
  
someotherfunction();
}

function 
someotherfunction() {
  echo(
"someotherfunction: " params);
  
temp.getsomething getSomevalue(12);
}

function 
getSomevalue() {
  echo(
"getsomevalue: " params);
  echo(
"getsomevalue params: " a SPC b SPC c SPC d);

echos..

PHP Code:
== Created ==
getsomevalue
getsomevalue params0 10  
== Clicked ==
MouseDown0,414,540,1,0
somefunction
0,414,540,1,0
someotherfunction
0,414,540,1,0
getsomevalue
0,414,540,1,0
getsomevalue params
0 10  
check
""
My advice, don't rely on the params array when you can specify parameters in the function. In your case just add a second function.
__________________
Quote:
Reply With Quote
  #35  
Old 01-27-2011, 02:29 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 MrOmega View Post
PHP Code:
  if ( params.size() == 2)
    return ((( 
temp.x2 temp.x1) ^ 2) ^ 0.5);


On second look at your code... lol?
__________________
Reply With Quote
  #36  
Old 01-27-2011, 02:49 AM
MrOmega MrOmega is offline
One More Time
MrOmega's Avatar
Join Date: Aug 2010
Location: TN, USA
Posts: 631
MrOmega is an unknown quantity at this point
Send a message via AIM to MrOmega Send a message via MSN to MrOmega Send a message via Yahoo to MrOmega
Quote:
Originally Posted by cbk1994 View Post
On second look at your code... lol?
What? It checks to see if it's getting the dist from two points or just the xdist/ydist. 4 params means its getting it from two actual points...
__________________
Time is the fire in which we burn...
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Select, Start! Now I got 99 LIVES!!!
Reply With Quote
  #37  
Old 01-27-2011, 02:52 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 MrOmega View Post
What? It checks to see if it's getting the dist from two points or just the xdist/ydist. 4 params means its getting it from two actual points...
You don't see anything wrong with:



?
__________________
Reply With Quote
  #38  
Old 01-27-2011, 02:55 AM
MrOmega MrOmega is offline
One More Time
MrOmega's Avatar
Join Date: Aug 2010
Location: TN, USA
Posts: 631
MrOmega is an unknown quantity at this point
Send a message via AIM to MrOmega Send a message via MSN to MrOmega Send a message via Yahoo to MrOmega
Quote:
Originally Posted by cbk1994 View Post
You don't see anything wrong with:



?
Well when you put it in that view I do. But it basically acts as abs(); I could do abs( temp.x2 - temp.x1);

@fowlplay4:
What do you mean add a second function...

Why can't I just recreate the params array when I call a function?
__________________
Time is the fire in which we burn...
Up, Up, Down, Down, Left, Right, Left, Right, B, A, Select, Start! Now I got 99 LIVES!!!

Last edited by MrOmega; 01-27-2011 at 03:51 AM..
Reply With Quote
  #39  
Old 01-27-2011, 03:19 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
Alternatively, write an n-dimensional distance function that accepts an array of tuples.
Reply With Quote
  #40  
Old 01-30-2011, 10:37 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
A new v6 beta version (v5.317) has been released for Windows at http://www.graalonline.com/downloads...al_windows.zip:
- fixed some problems with gani script initialization (onPlayerEnters when re-entering a level)
- fixed update problems of gui graphics with grids
- for avoiding problems with the new particle engine you can specify emitter.particle.uniqueparticle = true; which will disable the optimized rendering and allow different text and images for each particle

Last edited by Admins; 01-30-2011 at 11:26 PM..
Reply With Quote
Reply

Tags
graal v6, windows


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 08:48 PM.


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