229#define LATEST_PROTOCOL_VERSION 44
230#define LATEST_PROTOCOL_VERSION_STRING TOSTRING(LATEST_PROTOCOL_VERSION)
233#define SERVER_PROTOCOL_VERSION_MIN 37
234#define SERVER_PROTOCOL_VERSION_MAX LATEST_PROTOCOL_VERSION
237#define CLIENT_PROTOCOL_VERSION_MIN 37
238#define CLIENT_PROTOCOL_VERSION_MAX LATEST_PROTOCOL_VERSION
241#define PROTOCOL_ID 0x4f457403
243#define PASSWORD_SIZE 28
247#define FORMSPEC_API_VERSION 7
249#define TEXTURENAME_ALLOWED_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.-"
1103 "Your client sent something the server didn't expect. Try reconnecting or updating your client.",
1104 "The server is running in simple singleplayer mode. You cannot connect.",
1105 "Your client's version is not supported.\nPlease contact the server administrator.",
1106 "Player name contains disallowed characters",
1107 "Player name not allowed",
1109 "Empty passwords are disallowed. Set a password and try again.",
1110 "Another client is connected with this name. If your client closed unexpectedly, try again in a minute.",
1111 "Internal server error",
1113 "Server shutting down",
1114 "The server has experienced an internal error. You will now be disconnected."
ToServerCommand
Definition: networkprotocol.h:856
@ TOSERVER_RESPAWN
Definition: networkprotocol.h:950
@ TOSERVER_MODCHANNEL_LEAVE
Definition: networkprotocol.h:880
@ TOSERVER_PLAYERITEM
Definition: networkprotocol.h:942
@ TOSERVER_MODCHANNEL_MSG
Definition: networkprotocol.h:886
@ TOSERVER_DELETEDBLOCKS
Definition: networkprotocol.h:917
@ TOSERVER_GOTBLOCKS
Definition: networkprotocol.h:908
@ TOSERVER_HAVE_MEDIA
Definition: networkprotocol.h:1010
@ TOSERVER_NODEMETA_FIELDS
Definition: networkprotocol.h:976
@ TOSERVER_PLAYERPOS
Definition: networkprotocol.h:894
@ TOSERVER_CLIENT_READY
Definition: networkprotocol.h:1017
@ TOSERVER_REQUEST_MEDIA
Definition: networkprotocol.h:1001
@ TOSERVER_SRP_BYTES_M
Definition: networkprotocol.h:1047
@ TOSERVER_INTERACT
Definition: networkprotocol.h:955
@ TOSERVER_FIRST_SRP
Definition: networkprotocol.h:1027
@ TOSERVER_INIT
Definition: networkprotocol.h:857
@ TOSERVER_REMOVED_SOUNDS
Definition: networkprotocol.h:970
@ TOSERVER_DAMAGE
Definition: networkprotocol.h:937
@ TOSERVER_NUM_MSG_TYPES
Definition: networkprotocol.h:1062
@ TOSERVER_UPDATE_CLIENT_INFO
Definition: networkprotocol.h:1054
@ TOSERVER_SRP_BYTES_A
Definition: networkprotocol.h:1036
@ TOSERVER_CHAT_MESSAGE
Definition: networkprotocol.h:931
@ TOSERVER_MODCHANNEL_JOIN
Definition: networkprotocol.h:874
@ TOSERVER_INIT2
Definition: networkprotocol.h:868
@ TOSERVER_INVENTORY_ACTION
Definition: networkprotocol.h:926
@ TOSERVER_INVENTORY_FIELDS
Definition: networkprotocol.h:989
AccessDeniedCode
Definition: networkprotocol.h:1080
@ SERVER_ACCESSDENIED_SERVER_FAIL
Definition: networkprotocol.h:1090
@ SERVER_ACCESSDENIED_MAX
Definition: networkprotocol.h:1094
@ SERVER_ACCESSDENIED_CUSTOM_STRING
Definition: networkprotocol.h:1091
@ SERVER_ACCESSDENIED_CRASH
Definition: networkprotocol.h:1093
@ SERVER_ACCESSDENIED_ALREADY_CONNECTED
Definition: networkprotocol.h:1089
@ SERVER_ACCESSDENIED_TOO_MANY_USERS
Definition: networkprotocol.h:1087
@ SERVER_ACCESSDENIED_SHUTDOWN
Definition: networkprotocol.h:1092
@ SERVER_ACCESSDENIED_WRONG_PASSWORD
Definition: networkprotocol.h:1081
@ SERVER_ACCESSDENIED_SINGLEPLAYER
Definition: networkprotocol.h:1083
@ SERVER_ACCESSDENIED_UNEXPECTED_DATA
Definition: networkprotocol.h:1082
@ SERVER_ACCESSDENIED_WRONG_VERSION
Definition: networkprotocol.h:1084
@ SERVER_ACCESSDENIED_WRONG_CHARS_IN_NAME
Definition: networkprotocol.h:1085
@ SERVER_ACCESSDENIED_EMPTY_PASSWORD
Definition: networkprotocol.h:1088
@ SERVER_ACCESSDENIED_WRONG_NAME
Definition: networkprotocol.h:1086
CSMRestrictionFlags
Definition: networkprotocol.h:1124
@ CSM_RF_LOAD_CLIENT_MODS
Definition: networkprotocol.h:1130
@ CSM_RF_LOOKUP_NODES
Definition: networkprotocol.h:1134
@ CSM_RF_ALL
Definition: networkprotocol.h:1136
@ CSM_RF_CHAT_MESSAGES
Definition: networkprotocol.h:1131
@ CSM_RF_NONE
Definition: networkprotocol.h:1125
@ CSM_RF_READ_NODEDEFS
Definition: networkprotocol.h:1133
@ CSM_RF_READ_ITEMDEFS
Definition: networkprotocol.h:1132
@ CSM_RF_READ_PLAYERINFO
Definition: networkprotocol.h:1135
InteractAction
Definition: networkprotocol.h:1140
@ INTERACT_START_DIGGING
Definition: networkprotocol.h:1141
@ INTERACT_USE
Definition: networkprotocol.h:1145
@ INTERACT_DIGGING_COMPLETED
Definition: networkprotocol.h:1143
@ INTERACT_PLACE
Definition: networkprotocol.h:1144
@ INTERACT_ACTIVATE
Definition: networkprotocol.h:1146
@ INTERACT_STOP_DIGGING
Definition: networkprotocol.h:1142
AuthMechanism
Definition: networkprotocol.h:1066
@ AUTH_MECHANISM_SRP
Definition: networkprotocol.h:1074
@ AUTH_MECHANISM_NONE
Definition: networkprotocol.h:1068
@ AUTH_MECHANISM_LEGACY_PASSWORD
Definition: networkprotocol.h:1071
@ AUTH_MECHANISM_FIRST_SRP
Definition: networkprotocol.h:1077
ToClientCommand
Definition: networkprotocol.h:254
@ TOCLIENT_LOCAL_PLAYER_ANIMATIONS
Definition: networkprotocol.h:715
@ TOCLIENT_FOV
Definition: networkprotocol.h:382
@ TOCLIENT_ACCESS_DENIED_LEGACY
Definition: networkprotocol.h:376
@ TOCLIENT_ACCEPT_SUDO_MODE
Definition: networkprotocol.h:275
@ TOCLIENT_ACTIVE_OBJECT_REMOVE_ADD
Definition: networkprotocol.h:339
@ TOCLIENT_ITEMDEF
Definition: networkprotocol.h:429
@ TOCLIENT_CHAT_MESSAGE
Definition: networkprotocol.h:329
@ TOCLIENT_ADD_PARTICLESPAWNER
Definition: networkprotocol.h:523
@ TOCLIENT_ACTIVE_OBJECT_MESSAGES
Definition: networkprotocol.h:354
@ TOCLIENT_MODCHANNEL_SIGNAL
Definition: networkprotocol.h:771
@ TOCLIENT_SET_MOON
Definition: networkprotocol.h:792
@ TOCLIENT_ACCESS_DENIED
Definition: networkprotocol.h:283
@ TOCLIENT_SPAWN_PARTICLE
Definition: networkprotocol.h:503
@ TOCLIENT_PRIVILEGES
Definition: networkprotocol.h:456
@ TOCLIENT_HUD_SET_PARAM
Definition: networkprotocol.h:665
@ TOCLIENT_CSM_RESTRICTION_FLAGS
Definition: networkprotocol.h:311
@ TOCLIENT_SET_LIGHTING
Definition: networkprotocol.h:839
@ TOCLIENT_MOVE_PLAYER_REL
Definition: networkprotocol.h:809
@ TOCLIENT_STOP_SOUND
Definition: networkprotocol.h:451
@ TOCLIENT_NODEMETA_CHANGED
Definition: networkprotocol.h:778
@ TOCLIENT_DENY_SUDO_MODE
Definition: networkprotocol.h:279
@ TOCLIENT_PLAY_SOUND
Definition: networkprotocol.h:435
@ TOCLIENT_SET_STARS
Definition: networkprotocol.h:800
@ TOCLIENT_SET_SKY
Definition: networkprotocol.h:677
@ TOCLIENT_MINIMAP_MODES
Definition: networkprotocol.h:828
@ TOCLIENT_REMOVENODE
Definition: networkprotocol.h:297
@ TOCLIENT_HP
Definition: networkprotocol.h:364
@ TOCLIENT_MEDIA_PUSH
Definition: networkprotocol.h:321
@ TOCLIENT_SRP_BYTES_S_B
Definition: networkprotocol.h:814
@ TOCLIENT_DETACHED_INVENTORY
Definition: networkprotocol.h:470
@ TOCLIENT_HELLO
Definition: networkprotocol.h:255
@ TOCLIENT_AUTH_ACCEPT
Definition: networkprotocol.h:265
@ TOCLIENT_MOVEMENT
Definition: networkprotocol.h:487
@ TOCLIENT_CLOUD_PARAMS
Definition: networkprotocol.h:736
@ TOCLIENT_HUDADD
Definition: networkprotocol.h:622
@ TOCLIENT_FADE_SOUND
Definition: networkprotocol.h:746
@ TOCLIENT_NUM_MSG_TYPES
Definition: networkprotocol.h:852
@ TOCLIENT_DELETE_PARTICLESPAWNER
Definition: networkprotocol.h:731
@ TOCLIENT_HUDRM
Definition: networkprotocol.h:644
@ TOCLIENT_MEDIA
Definition: networkprotocol.h:397
@ TOCLIENT_MOVE_PLAYER
Definition: networkprotocol.h:369
@ TOCLIENT_SET_SUN
Definition: networkprotocol.h:783
@ TOCLIENT_SHOW_FORMSPEC
Definition: networkprotocol.h:478
@ TOCLIENT_ADDNODE
Definition: networkprotocol.h:291
@ TOCLIENT_TIME_OF_DAY
Definition: networkprotocol.h:305
@ TOCLIENT_BREATH
Definition: networkprotocol.h:672
@ TOCLIENT_BLOCKDATA
Definition: networkprotocol.h:290
@ TOCLIENT_DEATHSCREEN
Definition: networkprotocol.h:391
@ TOCLIENT_FORMSPEC_PREPEND
Definition: networkprotocol.h:822
@ TOCLIENT_OVERRIDE_DAY_NIGHT_RATIO
Definition: networkprotocol.h:709
@ TOCLIENT_MODCHANNEL_MSG
Definition: networkprotocol.h:761
@ TOCLIENT_NODEDEF
Definition: networkprotocol.h:412
@ TOCLIENT_PLAYER_SPEED
Definition: networkprotocol.h:316
@ TOCLIENT_HUDCHANGE
Definition: networkprotocol.h:649
@ TOCLIENT_EYE_OFFSET
Definition: networkprotocol.h:724
@ TOCLIENT_HUD_SET_FLAGS
Definition: networkprotocol.h:659
@ TOCLIENT_ANNOUNCE_MEDIA
Definition: networkprotocol.h:418
@ TOCLIENT_INVENTORY
Definition: networkprotocol.h:299
@ TOCLIENT_UPDATE_PLAYER_LIST
Definition: networkprotocol.h:752
@ TOCLIENT_INVENTORY_FORMSPEC
Definition: networkprotocol.h:464
NetProtoCompressionMode
Definition: networkprotocol.h:1097
@ NETPROTO_COMPRESSION_NONE
Definition: networkprotocol.h:1098
u16 session_t
Definition: networkprotocol.h:251
constexpr const char * accessDeniedStrings[SERVER_ACCESSDENIED_MAX]
Definition: networkprotocol.h:1101
PlayerListModifer
Definition: networkprotocol.h:1118
@ PLAYER_LIST_INIT
Definition: networkprotocol.h:1119
@ PLAYER_LIST_REMOVE
Definition: networkprotocol.h:1121
@ PLAYER_LIST_ADD
Definition: networkprotocol.h:1120