OpenTTDDevBlackBook/Network/UDP
Audio
Music
Graphic
Using the Window System
Events used by the Window System
Colour codes that exist in OpenTTD
Adding a text box
Understanding the widget focus system
HOWTO - Add a patch option
HOWTO - Add a squirrel function
HOWTO - Do a savegame BUMP
Understanding the Dynamic Landscape Array
Understanding the SaveGame Handler
HOWTO - Create good Scenarios
HOWTO - Add New Town Name Generators
Vehicles
Using Orders
Pathfinding
Ratings
Train Acceleration
Format of langfiles
Using OpenTTD Strings
List of Special Strings
The OpenTTD TCP Protocol
The OpenTTD UDP Protocol
HOWTO - Debug desyncs
The Console Window
Using Console Scripting
HOWTO - Add Functions/Commands to the Console
HOWTO - Add Variables to the Console
HOWTO - Direct Variable Access using ICONSOLE_VAR_POINTER
OpenTTD Console Commands
OpenTTD Console Variables
Development History
Contents |
Open TTD Network Protocol - UDP
Packet List
The packet list is ordered in the same way as PacletUDPType enum from network/core/udp.h
| Packet name | Sent by | Purpose |
|---|---|---|
| PACKET_UDP_CLIENT_FIND_SERVER | Client | Queries a game server for game information |
| PACKET_UDP_SERVER_RESPONSE | Server | Reply of the game server with game information |
| PACKET_UDP_CLIENT_DETAIL_INFO | Client | Queries a game server about details of the game, such as companies |
| PACKET_UDP_SERVER_DETAIL_INFO | Server | Reply of the game server about details of the game, such as companies |
| PACKET_UDP_SERVER_REGISTER | Server | Packet to register itself to the master server |
| PACKET_UDP_MASTER_ACK_REGISTER | Master Server | Packet indicating registration has succedeed |
| PACKET_UDP_CLIENT_GET_LIST | Client | Request for serverlist from master server |
| PACKET_UDP_MASTER_RESPONSE_LIST | Master Server | Response from master server with server ip's + port's |
| PACKET_UDP_SERVER_UNREGISTER | Server | Request to be removed from the server-list |
| PACKET_UDP_CLIENT_GET_NEWGRFS | Client | Requests the name for a list of GRFs (GRF_ID and MD5) |
| PACKET_UDP_SERVER_NEWGRFS | Server | Sends the list of NewGRF's requested. |
| PACKET_UDP_END | None | Must ALWAYS be on the end of this list!! (period) |