Skip to content

Add Map StartPos column type - #2

Open
burnhamrobertp wants to merge 7 commits into
beyond-all-reason:mainfrom
burnhamrobertp:feature/map-startpos-editor
Open

Add Map StartPos column type#2
burnhamrobertp wants to merge 7 commits into
beyond-all-reason:mainfrom
burnhamrobertp:feature/map-startpos-editor

Conversation

@burnhamrobertp

@burnhamrobertp burnhamrobertp commented Jun 30, 2026

Copy link
Copy Markdown

Adds a graphical editor for the maps table's startPos column, in the same spirit as the startbox editor. You place and name start positions on the minimap (drag to move, click a marker to rename / set coords / delete), and per team configuration assign each spawn to a team with a role and optional base center. Configs (1v1, 4v4, 8v8, ...) are read from the data and you can add or remove them. Markers approximate the in-game start circles (radius and label sizes taken from map_start_position_suggestions.lua), and there's a raw-JSON view in the editor for copy/paste. Edits auto-save.

It's a single column that should work as an in-place replacement for the JSON column presently in place. It uses some of the same configurability as what the startboxes column has but didn't require a subtable, since a startPos value is one document with shared named positions that every config references. The stored value stays a Firestore map - the same shape as the current JSON column - so update_from_rowy reads it unchanged.

Assisted by Claude Opus 4.8

@burnhamrobertp

Copy link
Copy Markdown
Author
image image

@burnhamrobertp
burnhamrobertp force-pushed the feature/map-startpos-editor branch from 84a760c to 1177e2c Compare June 30, 2026 05:57
@burnhamrobertp
burnhamrobertp changed the base branch from bar-fork to main June 30, 2026 05:57
@p2004a

p2004a commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

Edits auto-save.

And there is no undo, if you misclick something, just want to play with the thing, you accidentally modified the data.

This is exactly why the startbox editor doesn't do auto save and save is explicit action.


image

This doesn't show whole map, it's cut

startbox editor handles this correctly, in both X and Y coordinates.

image

This alignment is then also problematic when modifying the map in full screen, map doesn't fill the screen properly:

Screenshot From 2026-07-25 19-17-56

Being able to zoom-in/zoom-out to be able to place the elements precisely was a requirement and why https://files.p2004a.com/startpos-editor/ has this functionality

@burnhamrobertp

Copy link
Copy Markdown
Author

The more I got into the UX the more I saw how it could be improved, in addition to the issues you pointed out.

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