Vice City Multiplayer

VC:MP => General Discussion => Topic started by: Aldo on March 24, 2011, 02:50:14 AM

Title: VC:MP Packet
Post by: Aldo on March 24, 2011, 02:50:14 AM
Ok so SA:MP uses the packet SAMP, What packet does VC:MP use?
Title: Re: VC:MP Packet
Post by: Hanney on March 24, 2011, 11:41:16 PM
errrr VCMP?

I can't tell if this is serious or some kind of joke  ???
Title: Re: VC:MP Packet
Post by: Aldo on March 25, 2011, 02:32:50 AM
That doesn't work I tried it before
Title: Re: VC:MP Packet
Post by: VRocker on March 25, 2011, 12:40:35 PM
If you mean the Query packet, then it does start with VCMP like hanney said. Fairly sure the packet structure is the same as SAMP.

Off the top of my head, the query packet starts like this:

VCMP<4byte IP><2byte port><Packet ID>

Packet ID would be where you ask for Players, Server Data or Ping. Ping is a lowercase 'p' i think.

In the case of ping, a further 4 bytes are sent with the timestamp of when it was transmitted from the server (i think, been a while since i looked at it)

Hope this helps :)
Title: Re: VC:MP Packet
Post by: Aldo on March 25, 2011, 03:01:02 PM
Quote from: VRocker on March 25, 2011, 12:40:35 PM
If you mean the Query packet, then it does start with VCMP like hanney said. Fairly sure the packet structure is the same as SAMP.

Off the top of my head, the query packet starts like this:

VCMP<4byte IP><2byte port><Packet ID>

Packet ID would be where you ask for Players, Server Data or Ping. Ping is a lowercase 'p' i think.

In the case of ping, a further 4 bytes are sent with the timestamp of when it was transmitted from the server (i think, been a while since i looked at it)

Hope this helps :)

Thank you