The teeworlds 0.7 network protocol
Table of contents
- Fundamentals
-
Annotated sample traffic
- [CLIENT->SERVER] Hello server this is my token
- [SERVER->CLIENT] Hello client this my token
- [CLIENT->SERVER] Connect
- [SERVER->CLIENT] Accept connection
- [CLIENT->SERVER] Version and password
- [SERVER->CLIENT] Map info
- [CLIENT->SERVER] Ready
- [SERVER->CLIENT] Motd, Server Settings, Ready
- [CLIENT->SERVER] Start info (skin data)
- [SERVER->CLIENT] Vote Clear, Tune Params, Ready To Enter
- [CLIENT->SERVER] Enter game
- [SERVER->CLIENT] Server info
- [SERVER->CLIENT] Game Info, Client Info, Snap Single
- [SERVER->CLIENT] Snap Single
- [CLIENT->SERVER] Client Input (hook/move/fire/jump)
- [SERVER->CLIENT] Input Timing, Snap Empty
- [CLIENT->SERVER] Client says bye
- [SERVER->CLIENT] Server says bye
-
Snap items
- 1 obj_player_input
- 2 obj_projectile
- 3 obj_laser
- 4 obj_pickup
- 5 obj_flag
- 6 obj_game_data
- 7 obj_game_data_team
- 8 obj_game_data_flag
- 9 obj_character_core
- 10 obj_character
- 11 obj_player_info
- 12 obj_spectator_info
- 13 obj_de_client_info
- 14 obj_de_game_info
- 15 obj_de_tune_params
- 16 event_common
- 17 event_explosion
- 18 event_spawn
- 19 event_hammerhit
- 20 event_death
- 21 event_sound_world
- 22 event_damage
- 23 obj_player_info_race
- 24 obj_game_data_race
-
System messages
- 0 NETMSG_NULL
- 1 NETMSG_INFO
- 2 NETMSG_MAP_CHANGE
- 3 NETMSG_MAP_DATA
- 4 NETMSG_SERVERINFO
- 5 NETMSG_CON_READY
- 6 NETMSG_SNAP
- 7 NETMSG_SNAPEMPTY
- 8 NETMSG_SNAPSINGLE
- 9 NETMSG_SNAPSMALL
- 10 NETMSG_INPUTTIMING
- 11 NETMSG_RCON_AUTH_ON
- 12 NETMSG_RCON_AUTH_OFF
- 13 NETMSG_RCON_LINE
- 14 NETMSG_RCON_CMD_ADD
- 15 NETMSG_RCON_CMD_REM
- 16 NETMSG_AUTH_CHALLANGE
- 17 NETMSG_AUTH_RESULT
- 18 NETMSG_READY
- 19 NETMSG_ENTERGAME
- 20 NETMSG_INPUT
- 21 NETMSG_RCON_CMD
- 22 NETMSG_RCON_AUTH
- 23 NETMSG_REQUEST_MAP_DATA
- 24 NETMSG_AUTH_START
- 25 NETMSG_AUTH_RESPONSE
- 26 NETMSG_PING
- 27 NETMSG_PING_REPLY
- 28 NETMSG_ERROR
- 29 NETMSG_MAPLIST_ENTRY_ADD
- 30 NETMSG_MAPLIST_ENTRY_REM
-
Game messages
- 0 NETMSG_INVALID
- 1 NETMSGTYPE_SV_MOTD
- 2 NETMSGTYPE_SV_BROADCAST
- 3 NETMSGTYPE_SV_CHAT
- 4 NETMSGTYPE_SV_TEAM
- 5 NETMSGTYPE_SV_KILLMSG
- 6 NETMSGTYPE_SV_TUNEPARAMS
- 7 NETMSGTYPE_SV_EXTRAPROJECTILE
- 8 NETMSGTYPE_SV_READYTOENTER
- 9 NETMSGTYPE_SV_WEAPONPICKUP
- 10 NETMSGTYPE_SV_EMOTICON
- 11 NETMSGTYPE_SV_VOTECLEAROPTIONS
- 12 NETMSGTYPE_SV_VOTEOPTIONLISTADD
- 13 NETMSGTYPE_SV_VOTEOPTIONADD
- 14 NETMSGTYPE_SV_VOTEOPTIONREMOVE
- 15 NETMSGTYPE_SV_VOTESET
- 16 NETMSGTYPE_SV_VOTESTATUS
- 17 NETMSGTYPE_SV_SERVERSETTINGS
- 18 NETMSGTYPE_SV_CLIENTINFO
- 19 NETMSGTYPE_SV_GAMEINFO
- 20 NETMSGTYPE_SV_CLIENTDROP
- 21 NETMSGTYPE_SV_GAMEMSG
- 22 NETMSGTYPE_DE_CLIENTENTER
- 23 NETMSGTYPE_DE_CLIENTLEAVE
- 24 NETMSGTYPE_CL_SAY
- 25 NETMSGTYPE_CL_SETTEAM
- 26 NETMSGTYPE_CL_SETSPECTATORMODE
- 27 NETMSGTYPE_CL_STARTINFO
- 28 NETMSGTYPE_CL_KILL
- 29 NETMSGTYPE_CL_READYCHANGE
- 30 NETMSGTYPE_CL_EMOTICON
- 31 NETMSGTYPE_CL_VOTE
- 32 NETMSGTYPE_CL_CALLVOTE
- 33 NETMSGTYPE_SV_SKINCHANGE
- 34 NETMSGTYPE_CL_SKINCHANGE
- 35 NETMSGTYPE_SV_RACEFINISH
- 36 NETMSGTYPE_SV_CHECKPOINT
- 37 NETMSGTYPE_SV_COMMANDINFO
- 38 NETMSGTYPE_SV_COMMANDINFOREMOVE
- 39 NETMSGTYPE_CL_COMMAND
- Control messages