Skip to main content
The Gamend dock

The Gamend dock

· 2 min read
Balaur

A project that carries the Gamend addon now has a Gamend tab in the editor. It shows what the played game holds on the server, and reads each server feature without a line of script.

The Gamend dock reading gamend.org's leaderboards

The server

  • The header switches between the project's two servers, [gamend] url and local_url.
  • The choice is kept in the editor's own settings, so an exported game always talks to url.
  • A new project starts on https://gamend.org.
  • Open and Admin go to the server and to its admin site.

The player

The User tab signed in to a local Gamend

  • The User tab shows the session, both tokens masked behind show and copy, and when the access token expires.
  • A session kept by an earlier run can be read while signed out, restored or forgotten.
  • The editor uses the game's own user data folder and device id, so a device sign-in from the dock is the game's account.

One tab per feature

  • Leaderboards, Quests, Economy, Friends, Chat, Parties, Groups, Tournaments, Matchmaking, Notifications, Payments, Hooks and Users list their GET endpoints as trees.
  • The Lobby tab follows the lobby the game joined, and reads it again when a message lands on its topic.
  • Activity lists every call and socket message, opens each to its arguments and reply, and filters to errors.

Shipping the log

The Logs tab while the game plays

  • Nothing is sent unless the game puts addons/gamend/log_sink.rn on a long-lived node.
  • The sink reads log::since and collects what the server's policy asks for.
  • A batch goes at 50 lines, every 10 seconds, and at once on an error.
  • Unsent lines wait in a save slot for the next launch.
  • Every call, the socket and each batch carry gamend::run_id(), so the server files a run's lines together.
  • The Logs tab shows the newest lines and flushes on demand.

Docs