[edit] Universal Game Server ProtocolTHIS IS WORK IN PROGRESS
[edit] What is a Game ServerThe Game Server is a meta server, where players can connect to, chat and start games and join them. Very simple examples are the wesnoth server, very complex are battle.net or the bluebyte game channel. The basic idea is, that players can chat in the game, without leaving the 'virtual world' (look & feel) the game creates. Some game servers offer the functionality to update the game (through a binary patch system), some offer a database which counts win and looses or offer some tournament system.
[edit] What are the Protocols FeaturesThe protocol is designed for easy enhancement, it started with vary basic functionality in 1.0 and (might) grow to a full featured Game Server Application in it's later versions. The Protocol is game independant. This means, that a game that fullfills the following criterias can easily implement the protocol and offer games on any game server that chooses to serve this game. The criterias are as follows:
[edit] The ProtocolFirst thing to notice: All sended strings are unicode !! Second thing, all names written in BIG_LETTERS are numerical values which can be looked up in the widelands code in the file game_server_proto.h The protocol consist of packages. Each package passes four stages:
Each package consits at least of the following data
When a client connects to a server it sends a connect package. This package also contains the ability of the client (see the hello package source for more informations).
[edit] The packages
|
![[Main Page]](/modules/mediawiki/images/mediawiki.png)
Game Server Protocol
From Widelands.org
Main Page | Recent changes | Edit this page | Page history | Switch to MediaWiki modePrintable version | Disclaimers | Privacy policy
