Valhalla Legends Archive

Programming => General Programming => Topic started by: MoNksBaNe_Agahnim on March 24, 2004, 08:36 PM

Title: Latency & Packet Loss
Post by: MoNksBaNe_Agahnim on March 24, 2004, 08:36 PM
I play DAoC (Dark Age of Camelot) and it has no features to display Latency/Ping/ect...

What I am wanting to do is make a program to display these things, like fps and latency, in game, like what /fps does in d2....

I know how to get the user's fps and I know how to display it over the game itself, but how would I go about retrieving the person who is using the program's latency and packet loss. Does not need to be in code but C++ references are a bonus :)

Thanks for any and all help

-Mbane_Agahnim
Title: Re:Latency & Packet Loss
Post by: Noodlez on March 24, 2004, 10:22 PM
Well, most likely DaOC sends a ping packet to ensure the connection is still alive. I suppose by measuring the time between them you could guestimmate a reasonable ping to display. Or you could just ping the server your connected to every minute.
Title: Re:Latency & Packet Loss
Post by: MoNksBaNe_Agahnim on March 24, 2004, 10:56 PM
how would one go about getting the IP of the server? Would a packet sniffer do it?
Title: Re:Latency & Packet Loss
Post by: Stealth on March 24, 2004, 11:14 PM
Most likely after starting up DAoC you would notice a large amount of traffic between your computer and one or two servers. Those will be the one(s) you want to ping.
Title: Re:Latency & Packet Loss
Post by: Eric on March 25, 2004, 01:02 AM
Quote from: MoNksBaNe_Agahnim on March 24, 2004, 10:56 PM
how would one go about getting the IP of the server? Would a packet sniffer do it?
Anything from netstat to a packet logger can get you that information.
Title: Re:Latency & Packet Loss
Post by: Noodlez on March 25, 2004, 09:10 AM
Quote from: LoRd[nK] on March 25, 2004, 01:02 AM
Quote from: MoNksBaNe_Agahnim on March 24, 2004, 10:56 PM
how would one go about getting the IP of the server? Would a packet sniffer do it?
Anything from netstat to a packet logger can get you that information.

You could even check the registry entry for which server was selected before collectin, assuming DaOC saves this information.