packet_db.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Client<->Map Packet Database
  2. //
  3. // Structure of Database:
  4. // PacketType,PacketLength[,Name,FieldIndex1:FieldIndex2:FieldIndex3:...]
  5. //
  6. // 01. PacketType ID of the packet.
  7. // 02. PacketLength Length of the packet. If 0, packet is disabled in current packet version. If -1, packet has variable size.
  8. // 03. Name Name of the packet parser function (optional, for incoming packets only).
  9. // 04. FieldIndex Specifies the offset of a packet field in bytes from the begin of the packet (only specified when Name is given).
  10. // Can be 0, when the layout is not known.
  11. // ...
  12. //
  13. // NOTE: Up to MAX_PACKET_POS (typically 20) field indexes may be used.
  14. //
  15. // The packet database allows you to add support for new clients,
  16. // because packets change every release.
  17. //
  18. // Note: Every packet version needs a wanttoconnection specification, since
  19. // that is the packet used to identify a client's version.
  20. // If multiple versions have the same connection packet, the higher version
  21. // will be used (unless the lower one is specified as the default)
  22. //
  23. // Incoming packets have their parser function and layout specified, which enables
  24. // them for the current and all higher versions, unless explicitely disabled.
  25. //
  26. // Outgoing packets must be specified in order to enable them for the current
  27. // and all higher versions, unless explicitely disabled. Packets that are not
  28. // enabled for a packet version are silently discarded when sent as multicast.
  29. //
  30. // Every packet version inherits packet definitions from the previous (lower)
  31. // packet version.
  32. //
  33. // Main packet version of the DB to use (default = max available version)
  34. // Client detection is faster when all clients use this version.
  35. // Version 23 is the latest Sakexe (above versions are for Renewal clients)