Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-26-2008, 06:49 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Serverside GUI

Well, I'm currently trying to make a "Message System", something like Era got in the right corner, where it goes like: "You picked up a rock" or stuff like that..

But I noticed that you can't create GUIs serverside, so now I am really confused and have no idea how such a "Message System" can be created oO, isn't it just a transparent GUI?
Reply With Quote
  #2  
Old 12-26-2008, 07:04 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
You do the GUI on the client side and send the data from the server to the client.
Reply With Quote
  #3  
Old 12-27-2008, 03:42 AM
[email protected] zeektheman2@hotmail.com is offline
SirZeek
Join Date: May 2008
Posts: 37
zeektheman2@hotmail.com is on a distinguished road
Hmm.....

You can use strings, and set strings like ( client.messages ) clientside. Also you could use showtext() clientside and use the string.

Last edited by [email protected]; 12-27-2008 at 03:43 AM.. Reason: fixing words
Reply With Quote
  #4  
Old 12-27-2008, 06:24 AM
thatdwarf thatdwarf is offline
Former UN Dev Admin
Join Date: Nov 2005
Posts: 42
thatdwarf is on a distinguished road
You could also trigger a clientside function ( triggerClient() ) with the data you are wanting to show as a parameter, whether it be multiple parameters or one parameter as an array
Reply With Quote
  #5  
Old 12-27-2008, 09:27 AM
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 thatdwarf View Post
You could also trigger a clientside function ( triggerClient() ) with the data you are wanting to show as a parameter, whether it be multiple parameters or one parameter as an array
I'd say Zeek's suggestion is the better choise, by using an array for messages that are read and updated clientside automatically.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #6  
Old 12-27-2008, 01:22 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 xXziroXx View Post
I'd say Zeek's suggestion is the better choise, by using an array for messages that are read and updated clientside automatically.
This would require a constant clientside timeout to check for entries in that array though. I still prefer the triggerClient() method, and it's also what I used on Era.
Reply With Quote
  #7  
Old 12-27-2008, 04:35 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
triggerclient forever
Reply With Quote
  #8  
Old 12-27-2008, 04:37 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 Pelikano View Post
triggerclient forever
Depends on what you want to achieve.
Reply With Quote
  #9  
Old 12-27-2008, 05:23 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
A clientsided timeout isn't really demanding, a triggerClient check would put more strain on the server, especially during "spam hours".
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #10  
Old 12-27-2008, 06:04 PM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
but isn't a clientside timeout running ALWAYS?
and isn't that way worse oO
Reply With Quote
  #11  
Old 12-27-2008, 06: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
Quote:
Originally Posted by Pelikano View Post
but isn't a clientside timeout running ALWAYS?
and isn't that way worse oO
No, a timeout in itself is causing no harm, it's if you crowd it with lots of ****, and even then it wouldn't be demanding on the server at all, but rather on your own computer.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #12  
Old 12-27-2008, 07:23 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 xXziroXx View Post
No, a timeout in itself is causing no harm, it's if you crowd it with lots of ****, and even then it wouldn't be demanding on the server at all, but rather on your own computer.
Keep in mind clientside timeouts can cause lots of trouble with iPhone Graal though
Reply With Quote
  #13  
Old 12-27-2008, 07:26 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
Quote:
Originally Posted by Crow View Post
Keep in mind clientside timeouts can cause lots of trouble with iPhone Graal though
It can cause lots of trouble for anyone, not just iphone users.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #14  
Old 12-27-2008, 07:27 PM
[email protected] zeektheman2@hotmail.com is offline
SirZeek
Join Date: May 2008
Posts: 37
zeektheman2@hotmail.com is on a distinguished road
Quote:
Originally Posted by xXziroXx View Post
No, a timeout in itself is causing no harm, it's if you crowd it with lots of ****, and even then it wouldn't be demanding on the server at all, but rather on your own computer.
Agreed, I'm pretty sure that using a timeout clientside won't be harmful. Correct me if i'm wrong but, isn't clientside scripts take less CPU time then serverside.
Reply With Quote
  #15  
Old 12-27-2008, 07:37 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by [email protected] View Post
Agreed, I'm pretty sure that using a timeout clientside won't be harmful. Correct me if i'm wrong but, isn't clientside scripts take less CPU time then serverside.
Clientside scripts are done on the players computer.
Serverside scripts are not
__________________
Reply With Quote
Reply


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 12:46 AM.


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