Joins the GameSpice identity addons into one signed-in player: who they are (GameSpice Auth), what we know about them (GameSpice User) and what they look like (GameSpice User Avatar). Each of those addons works alone; this one connects them.
Requires GameSpice Core and GameSpice Server. It finds GameSpice Auth, GameSpice User and GameSpice User Avatar at runtime and works with any subset, including none.
- Copy
addons/gs_platform/andaddons/gs_core/into your project, plus whichever of GameSpice Auth, GameSpice User and GameSpice User Avatar you want. - Enable them in Project > Project Settings > Plugins.
var hub := GSPlatformHub.new()
add_child(hub)
var admitted := await hub.admit(identity) # identity from gs-auth
var player: GSPlatformPlayer = admitted.value
player.key() # scoped id, what everything else uses
player.display_name() # from the profile, falling back to the identity
player.avatar # resolved and entitlement-checkedOn a GameSpice Server, load the module and it does this for every connection:
server.modules.load_module("res://addons/gs_platform/gs_platform_module.gd")It finds the hub through GSRegistry, admits each authenticated client, stores the result in session.data["platform"], applies the profile's name, and cleans up when the client leaves. It adds the console commands platform_status and platform_name.
When the server has a site integration credential, a signed-in member's avatar and profile are read from and kept on the site, so they follow the member to every server using that credential. Guests and local accounts keep their profile on the server's disk.
identity.uid "backbone:acc-1" global; a server must never see this
-> profile.user_key "sWrM4ym4beWFH0Nx" scoped; what everything else keys on
-> avatar filed under the SAME scoped key
Keying data on the global account id would hand every server operator a global identifier for every player. GSPlatformHub is the only place that translation happens.
| Installed | Result |
|---|---|
| all three | profile, avatar, entitlements, onboarding flag |
| GameSpice User only | a profile and a scoped key, no avatar |
| none | a player with the identity's name and no scoped key |
| a broken store | the player still joins, nothing is saved |
Both exit non-zero on failure.
| Command | What it does |
|---|---|
godot --headless --path . res://examples/seam_selftest.tscn |
All four addons in one process with real keys, ticket and stores. |
godot --headless --path . res://examples/sandbox_server.tscn |
A real server and client over loopback, through the whole sign-on. |
More: docs/design.md, docs/history.md.
Zee's Games is a collection of games I made on GameSpice, for demonstration and for fun. They show what the platform can do, and they run on live servers you can join. Anybody can create games on GameSpice, and each addon is its own repository and can be used separately from the games and from the rest of GameSpice.
Every game in the collection vendors it, and each admits its players through GSPlatformHub:
- Fatal Contact
- Airdrift
- Playlot
- Hungario
- Buses From Hell
- Smash Copter
- Zombie Zone
- Hide n Seek
- Prop Hunt
- Murder Mystery
- Deathrun
- Wipeout
- Dangerous Delivery
- Look At Me
The whole collection is at zeesgames.com.
Part of the GameSpice platform: a family of Godot addons, MIT licensed and built with Claude Code. Run seam_selftest and sandbox_server (see Examples) to check it headlessly. Every game in Zee's Games signs players in through it, and those games run on live servers. Problems go to the issue tracker.
MIT licence, see LICENSE. The only closed part of the GameSpice platform is the web back end; you can use your own instead of GameSpice's.
