Difference between revisions of "Game Protocol FAQ"

From ASSS Wiki
Jump to: navigation, search
m (Reverted edit of Zc321, changed back to last version by Smong)
(added What port should I be using?)
 
Line 7: Line 7:
  
 
== Why do I sometimes get two position packets with the same timestamp? ==
 
== Why do I sometimes get two position packets with the same timestamp? ==
Chances are you got two 0x05 weapon packets or one 0x05 weapon and a 0x28 position. It is possible to fire a weapon right after the client has just sent a position.
+
Chances are you got two 0x05 weapon packets or one 0x05 weapon and one 0x28 position. It is possible to fire a weapon right after the client has just sent a position.
  
 
== Can I get LVZ by using the VIE protocol? ==
 
== Can I get LVZ by using the VIE protocol? ==
Line 14: Line 14:
 
== Do file transfers use compression? ==
 
== Do file transfers use compression? ==
 
The news.txt and the map are sent by the server compressed with zlib. All other filetrans are uncompressed.
 
The news.txt and the map are sent by the server compressed with zlib. All other filetrans are uncompressed.
 +
 +
== What port should I be using? ==
 +
Connect using the server's main port. Port + 1 is used for measuring pings and getting the player count.
  
 
[[Category: FAQ]]
 
[[Category: FAQ]]
 
[[Category: Protocol]]
 
[[Category: Protocol]]

Latest revision as of 20:28, 26 June 2006

How are the news.txt and map checksums computed?

They both use a CRC32 algorithm. The popular zlib library has these functions.

Why do I get disconnected for no data?

Once you have entered an arena you must send position packets regularly to stay connected.

Why do I sometimes get two position packets with the same timestamp?

Chances are you got two 0x05 weapon packets or one 0x05 weapon and one 0x28 position. It is possible to fire a weapon right after the client has just sent a position.

Can I get LVZ by using the VIE protocol?

Yes, but you can either get all the LVZ, or none. You do not have a choice when it comes to optional LVZ. This currently only works on ASSS. See Game Protocol's login packet.

Do file transfers use compression?

The news.txt and the map are sent by the server compressed with zlib. All other filetrans are uncompressed.

What port should I be using?

Connect using the server's main port. Port + 1 is used for measuring pings and getting the player count.