2024-10-02 11:01:30 +02:00
|
|
|
// Minetest
|
|
|
|
// SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
|
|
|
|
#include "networkprotocol.h"
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
PROTOCOL VERSION < 37:
|
|
|
|
Until (and including) version 0.4.17.1
|
|
|
|
PROTOCOL VERSION 37:
|
|
|
|
Redo detached inventory sending
|
|
|
|
Add TOCLIENT_NODEMETA_CHANGED
|
|
|
|
New network float format
|
|
|
|
ContentFeatures version 13
|
|
|
|
Add full Euler rotations instead of just yaw
|
|
|
|
Add TOCLIENT_PLAYER_SPEED
|
|
|
|
[bump for 5.0.0]
|
|
|
|
PROTOCOL VERSION 38:
|
|
|
|
Incremental inventory sending mode
|
|
|
|
Unknown inventory serialization fields no longer throw an error
|
|
|
|
Mod-specific formspec version
|
|
|
|
Player FOV override API
|
|
|
|
"ephemeral" added to TOCLIENT_PLAY_SOUND
|
|
|
|
PROTOCOL VERSION 39:
|
|
|
|
Updated set_sky packet
|
|
|
|
Adds new sun, moon and stars packets
|
|
|
|
Minimap modes
|
|
|
|
PROTOCOL VERSION 40:
|
|
|
|
TOCLIENT_MEDIA_PUSH changed, TOSERVER_HAVE_MEDIA added
|
|
|
|
PROTOCOL VERSION 41:
|
|
|
|
Added new particlespawner parameters
|
|
|
|
[scheduled bump for 5.6.0]
|
|
|
|
PROTOCOL VERSION 42:
|
|
|
|
TOSERVER_UPDATE_CLIENT_INFO added
|
|
|
|
new fields for TOCLIENT_SET_LIGHTING and TOCLIENT_SET_SKY
|
|
|
|
Send forgotten TweenedParameter properties
|
|
|
|
[scheduled bump for 5.7.0]
|
|
|
|
PROTOCOL VERSION 43:
|
|
|
|
"start_time" added to TOCLIENT_PLAY_SOUND
|
|
|
|
place_param2 type change u8 -> optional<u8>
|
|
|
|
[scheduled bump for 5.8.0]
|
|
|
|
PROTOCOL VERSION 44:
|
|
|
|
AO_CMD_SET_BONE_POSITION extended
|
|
|
|
Add TOCLIENT_MOVE_PLAYER_REL
|
|
|
|
Move default minimap from client-side C++ to server-side builtin Lua
|
|
|
|
[scheduled bump for 5.9.0]
|
|
|
|
PROTOCOL VERSION 45:
|
|
|
|
Minimap HUD element supports negative size values as percentages
|
|
|
|
[bump for 5.9.1]
|
|
|
|
PROTOCOL VERSION 46:
|
|
|
|
Move default hotbar from client-side C++ to server-side builtin Lua
|
|
|
|
Add shadow tint to Lighting packets
|
|
|
|
Add shadow color to CloudParam packets
|
|
|
|
Move death screen to server and make it a regular formspec
|
|
|
|
The server no longer triggers the hardcoded client-side death
|
|
|
|
formspec, but the client still supports it for compatibility with
|
|
|
|
old servers.
|
|
|
|
Rename TOCLIENT_DEATHSCREEN to TOCLIENT_DEATHSCREEN_LEGACY
|
|
|
|
Rename TOSERVER_RESPAWN to TOSERVER_RESPAWN_LEGACY
|
2024-09-02 21:11:08 +02:00
|
|
|
Support float animation frame numbers in TOCLIENT_LOCAL_PLAYER_ANIMATIONS
|
2024-10-02 11:01:30 +02:00
|
|
|
[scheduled bump for 5.10.0]
|
2024-11-19 13:30:17 +01:00
|
|
|
PROTOCOL VERSION 47
|
|
|
|
Add particle blend mode "clip"
|
2024-12-28 10:47:57 +01:00
|
|
|
Add artificial light color, beta_r0, vignette, specular intensity, foliage translucency and cdl parameters to Lighting packets
|
2024-11-19 13:30:17 +01:00
|
|
|
[scheduled bump for 5.11.0]
|
2024-10-02 11:01:30 +02:00
|
|
|
*/
|
|
|
|
|
2024-11-19 13:30:17 +01:00
|
|
|
const u16 LATEST_PROTOCOL_VERSION = 47;
|
2024-10-02 11:01:30 +02:00
|
|
|
|
|
|
|
// See also formspec [Version History] in doc/lua_api.md
|
2024-10-08 21:45:27 +02:00
|
|
|
const u16 FORMSPEC_API_VERSION = 8;
|