Add per-map editable markers and backups

This commit is contained in:
lucio committed 2026-08-08 22:03:49 -07:00
1 parent e71447da5d
commit bbb4cadddd
23 files changed
+11090 -129

No files matched your search

+22
View File
@@ -161,6 +161,8 @@ python tools/build.py overall # just retile the base map
python tools/build.py --tiles-only # re-tile after a place/crop change
python tools/build.py --force-export # re-render even if base.png is current
python tools/extract_markers.py <id> # PSD metadata -> semantic marker JSON
python tools/backup_markers.py # one-time read-only default snapshot
python tools/render_marker_audit.py <id> # visible PSD vs semantic markers
```
Marker extraction recognizes visible on-map groups whose paths use names such
@@ -169,6 +171,26 @@ Keep legends and title furniture in clearly named groups so the extractor can
exclude them. Marker coordinates are stored normalized to the configured crop,
not as raster overlays.
Always review `<id>-comparison.jpg` from `render_marker_audit.py` before
accepting extraction. Its left pane is the PSD flattened with every visible
layer; the right pane uses that exact crop with the semantic records overlaid.
Confirm that on-map PMC, Scav, shared/co-op, hidden and transit extracts are
named once, and that legends, credits, side indicators and notes produce no
records.
If extraction produces a new category, add it to
`web/data/marker-config.json`. Categories can share a group and independently
configure their label, color, size, text-or-emoji symbol, visible text and
default visibility. Viewer-wide label zoom and spatial-index tuning live in
the same file under `defaults`.
Manual marker moves, names, categories and additions live separately in
`web/data/marker-edits/<map-id>.json`. Re-running extraction replaces only
`web/data/markers/<map-id>.json` and preserves those user-authored overrides.
Deleted extracted markers are stored as IDs in the same edit file, so defaults
are never modified. Run `backup_markers.py` after approving the initial marker
set; it will refuse to overwrite a different existing backup.
`build.py` skips the PSD render when `base.png` is newer than the PSD, so
iterating on `place` and `crop` is seconds, not minutes.