feat(registry): the worlds and characters an account may hold come from SAVES_MAX_OWNED #11

Merged
kblack0610 merged 1 commit from feat/saves-max-owned into main 2026-11-02 17:50:16 +00:00
Owner

The cap was a constant 50 across every game, deleted ones included for 30 days, so a week of editor testing filled a dev account and every New game failed to save with 409 (unity-core-playground GameSession.Saves.cs:519 logged it).

  • SAVES_MAX_OWNED (default 50) in config.go, passed to checkOwned from the world create, fork and character create.
  • Tests: TestOwnedCapFromConfig (cap of 3 for worlds and characters; negative control: fails with 201 when checkOwned ignores the setting), TestSavesMaxOwnedEnv. Full go test ./... green locally (Go 1.24.9).
  • README: env table row and the cap sentence.

Deploy is a release tag plus the home-config env, not in this PR.

https://claude.ai/code/session_01AWkPsr8mNh2weSpfa3eo1S

The cap was a constant 50 across every game, deleted ones included for 30 days, so a week of editor testing filled a dev account and every New game failed to save with 409 (unity-core-playground GameSession.Saves.cs:519 logged it). - `SAVES_MAX_OWNED` (default 50) in `config.go`, passed to `checkOwned` from the world create, fork and character create. - Tests: `TestOwnedCapFromConfig` (cap of 3 for worlds and characters; negative control: fails with 201 when checkOwned ignores the setting), `TestSavesMaxOwnedEnv`. Full `go test ./...` green locally (Go 1.24.9). - README: env table row and the cap sentence. Deploy is a release tag plus the home-config env, not in this PR. https://claude.ai/code/session_01AWkPsr8mNh2weSpfa3eo1S
The cap was a constant 50 across every game, deleted ones included for 30 days, so a
week of editor testing filled a dev account and every New game failed to save with 409.
It is now SAVES_MAX_OWNED, default 50, so the deployment sets it.

Claude-Session: https://claude.ai/code/session_01AWkPsr8mNh2weSpfa3eo1S
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kblack0610/bnb-game-servers!11
No description provided.