Skip to content

Send polygon startboxes to the game#601

Merged
p2004a merged 8 commits into
beyond-all-reason:masterfrom
burnhamrobertp:feature/polygon-startboxes-finalized
Jun 25, 2026
Merged

Send polygon startboxes to the game#601
p2004a merged 8 commits into
beyond-all-reason:masterfrom
burnhamrobertp:feature/polygon-startboxes-finalized

Conversation

@burnhamrobertp

@burnhamrobertp burnhamrobertp commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Picks up where #574 left off, which rendered polygon startboxes in the preview but still handed the game a plain bounding-box rectangle at launch, so an offline game never got the real shape. Now the offline start script sends the start areas as modoptions, the way the game PR settled on: a selected preset goes out as the set (mapmetadata_startboxes_set, the server-owned default), and custom drag-edited boxes go out as the override (mapmetadata_startbox_override, lobby-owned) which the game prefers over the set. So an offline game enforces the real shape, custom boxes aren't silently replaced by the map's default, and online games get the set from the server.

It also brings the preview's spline in line with the game and Chobby so the curves match exactly. The old math overshot at sharp corners and could draw a small curl the game never showed.

Related PRs:

Assisted by Claude Code (Opus 4.8); all code reviewed and verified locally.

Comment thread src/main/utils/start-script-converter.ts Outdated
Comment thread tests/unit/main/start-script-converter.spec.ts Outdated
@p2004a
p2004a merged commit 58f2c26 into beyond-all-reason:master Jun 25, 2026
3 checks passed
@burnhamrobertp
burnhamrobertp deleted the feature/polygon-startboxes-finalized branch June 26, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants