Skip to content

Make Yardline map editor reachable from the console - #32

Merged
vetonshabani0 merged 1 commit into
mainfrom
feat/yardline-map-editor-entry
Jul 30, 2026
Merged

Make Yardline map editor reachable from the console#32
vetonshabani0 merged 1 commit into
mainfrom
feat/yardline-map-editor-entry

Conversation

@vetonshabani0

Copy link
Copy Markdown
Collaborator

What

Yardline RC's bundle already contained two editors, but nothing linked to either and their navigation was broken under the subpath embed:

  • 2D "Map Workbench"?tool=map-editor
  • 3D fly-and-edit overlay?fly=1

Five URL literals were emitted as site-absolute (/?map=…, /map-editor, /). Under /games/yardline-rc/ they resolve to the console root instead of the game — the same class of bug BUILD.md already documents for the runtime asset paths.

Changes

File Change
yardline-rc/assets/index-CSoa7UUc.js 5 URL literals made relative (11 bytes)
index.html "Map Workbench" tile → ./yardline-rc/?tool=map-editor
yardline-rc/BUILD.md Documented the patch + rebuild check; noted the pruning caveat

Risk

Low, and bounded. Reversing the 5 substitutions returns the bundle byte-identical to its pre-patch SHA — nothing else in those 7 MB moved. All 5 sites live in editor-only components (testDrive(), the workbench brand link, the fly-overlay link); the racing path never reads them. Nothing was rebuilt or re-copied, which is what caused the 2026-07-23 and 2026-07-24 regressions.

Verification

  • ✅ Bundle parses — acorn --module --ecma2022
  • ✅ Headless Chrome renders the editor: MAP WORKBENCH, editorShell, canvas, Test drive — and the brand link resolves to ./ in the live DOM
  • BUILD.md invariants hold: 0 absolute `/assets/, phone bridge intact, __scInput hook present
  • ⚠️ The game page itself was not rendered headless — 64 MB of models + Havok wasm won't complete under software GL. Please drive one lap before merging.

Known limitation (not fixed here)

The workbench's asset palette lists the full Downtown MegaKit, but only preset-used models are on disk (the build was pruned 138 MB → 64 MB). Placing a non-preset prop will 404 the model. Fixing it means re-copying the full dist/, which would destroy the stripped-slash asset paths and the inline phone bridge — deliberately re-running both past outages. Left alone; documented in BUILD.md.

The bundle already shipped two editors — the 2D "Map Workbench"
(?tool=map-editor) and a 3D fly-and-edit overlay (?fly=1) — but nothing
linked to either, and their navigation was emitted as site-absolute
literals. Under the /games/yardline-rc/ subpath those resolved to the
console root instead of the game, the same class of bug BUILD.md already
documents for the runtime asset paths.

Rewrite the 5 URL literals to be relative (11 bytes total, all inside
editor-only components — the racing path never reads them) and add a Map
Workbench tile to the hub.

Verified: bundle parses (acorn --module); headless Chrome renders the
editor shell with the brand link resolving to "./"; BUILD.md's three
existing rebuild invariants still hold (no absolute /assets/, phone
bridge intact, __scInput hook present).
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Preview for feat/yardline-map-editor-entry: https://space-console.github.io/games/preview/feat-yardline-map-editor-entry-914b/

@vetonshabani0
vetonshabani0 merged commit d96800c into main Jul 30, 2026
4 checks passed
@vetonshabani0
vetonshabani0 deleted the feat/yardline-map-editor-entry branch July 30, 2026 15:15
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.

1 participant