Versions and the API freeze
Ce contenu n’est pas encore disponible dans votre langue.
gdmp.version is the API level as a string: "77" for 1.0, "89" with player touch, "90" with sounds
(gdmp.audio) and UI icons / sprites / fades, "91" with outlines and moving UI, "92" with free (X/Y) movement and
more input keys, "93" with data stores, "103" with gdmp.sprites, "120" with gdmp.console, "122" with gdmp.voice. It only grows. Compare it as a number: Number(gdmp.version) >= 92.
API 1.0: the freeze
Section titled “API 1.0: the freeze”- Pinned. The exact surface is in
docs/api-1.0.json(in the GDMP source): 125 names in 19 namespaces (108 at 1.0; level 89 added the four touch calls; level 90gdmp.audio,gdmp.nametags.setColorand the UI’saddIcon,addSprite,setStyle; level 91gdmp.players.setOutlineand the UI’ssetPositionon windows and elements; level 92gdmp.player.setMovement/getMovementandgdmp.players.setMovement), including the methods of the objects calls return. - Checked.
python tools/api_surface.py --checkreads it from the engine’s source.tools/run_regression.pyruns the check, so an accidental change fails the regression.
The rules for every 1.x release:
- Nothing listed is removed or renamed, and nothing changes meaning. That covers arguments, return values, event shapes and the coordinate system.
- Additions are allowed: a new namespace, method, optional argument or field. Each one:
- bumps
gdmp.version(the API level); - is documented here;
- is recorded with
python tools/api_surface.py --write.
- bumps
- A removal, or a change of meaning, needs API 2.0.
- Limits may grow, never shrink. That covers sizes, rates and callback counts.
Frozen with the API:
- the manifest format (
formatVersion2); - the capability names;
- the Studio object grammar (
gdmp game | spawn | spectate | zone); - the reserved channel prefix
gdmp..
Not part of the script API:
- The host ABI (
GDMP_SCRIPT_ABI_VERSION, between the game / server and GdmpScripting.dll) is internal. It changes with every release; scripts never see it. - The GDMP Hub HTTP API (
Hub/README.md) is versioned separately:/api/healthreports it.
