Salta ai contenuti

Versions and the API freeze

Questi contenuti non sono ancora disponibili nella tua lingua.

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.

  • 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 90 gdmp.audio, gdmp.nametags.setColor and the UI’s addIcon, addSprite, setStyle; level 91 gdmp.players.setOutline and the UI’s setPosition on windows and elements; level 92 gdmp.player.setMovement / getMovement and gdmp.players.setMovement), including the methods of the objects calls return.
  • Checked. python tools/api_surface.py --check reads it from the engine’s source. tools/run_regression.py runs the check, so an accidental change fails the regression.

The rules for every 1.x release:

  1. Nothing listed is removed or renamed, and nothing changes meaning. That covers arguments, return values, event shapes and the coordinate system.
  2. 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.
  3. A removal, or a change of meaning, needs API 2.0.
  4. Limits may grow, never shrink. That covers sizes, rates and callback counts.

Frozen with the API:

  • the manifest format (formatVersion 2);
  • 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/health reports it.