Graal Forums  

Go Back   Graal Forums > PlayerWorlds > Zodiac Main Forum
FAQ Members List Calendar Today's Posts

Closed Thread
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 12-08-2007, 09:41 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
This is what I have on Maloria to check for connection problems:

PHP Code:
function onActionServerSide() {
  switch (
params[0]) {
    
//Echo back to clientside if connection works.
    
case "serverecho":
      if ((
params[2]-1) > 0)
        echo(
"System Lag: Account " params[1] @ " had a connection failure. (Tried " @ (params[2]-1) @ " times.)");
      
triggerclient("weapon"name"clientok"params[1]);
    break;
    
/*
    Serverside lag detection to be completed later.
    case "serverok":
    break;*/
  
}
}
//#CLIENTSIDE
function onCreated() {
  
this.failcount 0;
  
this.timer 0;
  
client.noconnection false;
  
onTimeOut();
}
function 
onTimeOut() {
  
this.failcount++;
  if (
this.timer 3this.timer += .1;
  else {
    
triggerserver("weapon"name"serverecho"player.accountthis.failcount);
    
this.timer 0;
  }
  if (
this.failcount 3) {
    if (
this.failcount 10)
      
client.noconnection true;
    else {
      
this.failcount 0;
      
client.noconnection false;
      
serverWarp("login");
    }
  }
  else 
client.noconnection false;
  
setTimer(0.1);
}
function 
onActionClientSide() {
  if (
player.account == params[1]) {
    switch (
params[0]) {
      
//Connection successful
      
case "clientok":
        
this.failcount 0;
      break;
      
/*
      Serverside lag detection to be completed later.
      case "clientecho":
      break;*/
    
}
  }

Probably a better alternative. If client.noconnection is true, then don't do any processes, like damage detection, movement, etc.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
  #2  
Old 12-08-2007, 09:58 PM
BigBear3 BigBear3 is offline
Zormite
BigBear3's Avatar
Join Date: Jan 2007
Location: Lynn, MA
Posts: 2,551
BigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond repute
I haven't got a chance to talk to Drander yet, no.
  #3  
Old 12-08-2007, 10:14 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 BigBear3 View Post
I haven't got a chance to talk to Drander yet, no.
So why are you complaining about them not doing anything if they don't even know? Management doesn't come with a degree in mind-reading.
  #4  
Old 12-08-2007, 10:36 PM
BigBear3 BigBear3 is offline
Zormite
BigBear3's Avatar
Join Date: Jan 2007
Location: Lynn, MA
Posts: 2,551
BigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond reputeBigBear3 has a reputation beyond repute
I'm not complaining. I do not participate in Events on Zodiac. I'm just trying to show an example of the bad management or extreme corruption.
  #5  
Old 12-09-2007, 07:24 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by coreys View Post
This is what I have on Maloria to check for connection problems:

PHP Code:
function onActionServerSide() {
  switch (
params[0]) {
    
//Echo back to clientside if connection works.
    
case "serverecho":
      if ((
params[2]-1) > 0)
        echo(
"System Lag: Account " params[1] @ " had a connection failure. (Tried " @ (params[2]-1) @ " times.)");
      
triggerclient("weapon"name"clientok"params[1]);
    break;
    
/*
    Serverside lag detection to be completed later.
    case "serverok":
    break;*/
  
}
}
//#CLIENTSIDE
function onCreated() {
  
this.failcount 0;
  
this.timer 0;
  
client.noconnection false;
  
onTimeOut();
}
function 
onTimeOut() {
  
this.failcount++;
  if (
this.timer 3this.timer += .1;
  else {
    
triggerserver("weapon"name"serverecho"player.accountthis.failcount);
    
this.timer 0;
  }
  if (
this.failcount 3) {
    if (
this.failcount 10)
      
client.noconnection true;
    else {
      
this.failcount 0;
      
client.noconnection false;
      
serverWarp("login");
    }
  }
  else 
client.noconnection false;
  
setTimer(0.1);
}
function 
onActionClientSide() {
  if (
player.account == params[1]) {
    switch (
params[0]) {
      
//Connection successful
      
case "clientok":
        
this.failcount 0;
      break;
      
/*
      Serverside lag detection to be completed later.
      case "clientecho":
      break;*/
    
}
  }

Probably a better alternative. If client.noconnection is true, then don't do any processes, like damage detection, movement, etc.
Since when did scripts process while the ESC menu was open?

There is really no way to detect a window open for 0.05 seconds unless Graal tells you.
__________________
Closed 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 02:53 AM.


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