Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-10-2002, 02:00 AM
GrowlZP2P GrowlZP2P is offline
Registered User
Join Date: Dec 2001
Location: Corpadverticus, which in case you don't know is the recently-formed and Blockbuster Video-sponsored Tenth Circle of Hell
Posts: 57
GrowlZP2P is on a distinguished road
Send a message via AIM to GrowlZP2P Send a message via Yahoo to GrowlZP2P
Lightbulb serverstrings...

... lag. If you have too many, they slow down a server, as you all know. So what I'm suggesting is:

On-request server strings.

Basically, the way I see it, the only situation in which they'd lag is if they go everywhere with the player, whether or not they need them. So I propose the next Graal version have on-request server flags, meaning that a server string is not provided until a NPC asks for it. Say, the command readserverstr flagname which would output the serverflag to #o, kinda like tokenize outputs the string you tokenized to #t(index). For example:

NPC Code:

...
if (weaponfired){
message Radio on;
sleep 1;
readserverstr server.radio;
setplayerprop #c,#o;
}
...



How about it? Cuts down on lagginess and is just as functional.
__________________


AIM: GrowlZ1010 | Y! IM: GrowlZ1010 | MSN: [email protected] | Email: [email protected]

- I use obscenely long words to befuddle my adversaries, therefore I am -

Current Favorite Quote: Real programmers don't document. If it was hard to write, it should be hard
to understand.
Reply With Quote
  #2  
Old 02-10-2002, 02:10 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
I dunno if that would work. Server strings are already pretty much useless on p2p servers because only serverside NPC's can read or write to them.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #3  
Old 02-10-2002, 02:20 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Re: serverstrings...

Quote:
Originally posted by GrowlZP2P

How about it? Cuts down on lagginess and is just as functional.
Well, you'd have to wait for the value to arrive. It might mess up the traditional scripting system. Something more like:

NPC Code:

if(suchandsuch){
requeststring server.higuy;
}
if(retrievedstring){
dostuffwithstring;
}



Might be better.
__________________
Reply With Quote
  #4  
Old 02-10-2002, 02:36 AM
GrowlZP2P GrowlZP2P is offline
Registered User
Join Date: Dec 2001
Location: Corpadverticus, which in case you don't know is the recently-formed and Blockbuster Video-sponsored Tenth Circle of Hell
Posts: 57
GrowlZP2P is on a distinguished road
Send a message via AIM to GrowlZP2P Send a message via Yahoo to GrowlZP2P
Quote:
Originally posted by Kaimetsu

Might be better.
But you agree that the current system of making your client have all server flags at all times is flawed at best? Anyway, around 0.25 seconds local slowdown, or complete 1 to 5 second global slowdown, take your pick.
__________________


AIM: GrowlZ1010 | Y! IM: GrowlZ1010 | MSN: [email protected] | Email: [email protected]

- I use obscenely long words to befuddle my adversaries, therefore I am -

Current Favorite Quote: Real programmers don't document. If it was hard to write, it should be hard
to understand.
Reply With Quote
  #5  
Old 02-10-2002, 02:48 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by GrowlZP2P


But you agree that the current system of making your client have all server flags at all times is flawed at best?
It's not perfect, but there are times when the method we describe would not work. For example, when the string needs to be monitored for changes - do we request the string every 0.05 seconds or just wait for the server to tell us that it's changed? It all depends on the string, really.

But in any case, non-P2P is always gonna be laggy, and it wouldn't be much use on P2P :-/
__________________
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:47 PM.


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