OpenTTDDevBlackBook/Network/UDP

From OpenTTD
Jump to: navigation, search
HAL (Hardware Abstraction Layer)

Audio
Music
Graphic

Window System

Using the Window System
Colour codes that exist in OpenTTD
Adding a text box
Understanding the widget focus system

Settings

Add a setting
Add a squirrel function
Do a savegame BUMP

The Map / Scenario

Understanding the Dynamic Landscape Array
Understanding the SaveGame Handler
HOWTO - Create good Scenarios
HOWTO - Add New Town Name Generators

The actual simulation

Vehicles
Using Orders
Pathfinding
Ratings
Train Acceleration

Language and Strings

Format of langfiles
Using OpenTTD Strings
List of Special Strings

Multiplayer

The Core Interface

Starting a Server
Connecting to a Server
Using the list of LAN/Internet Games

The OpenTTD TCP Protocol
The OpenTTD UDP Protocol
HOWTO - Debug desyncs

Ingame Console

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)

Packet Format

Enumerate Server List

Enumerate Company Information

Personal tools