Make a fresh clone servable after `git lfs pull` alone, and rebuildable with
`tools/build.py` without re-rendering unchanged PSDs:
- Track build/ (rendered base PNGs, previews, world composites), web/tiles/,
web/tiles-trimmed/, web/data/world.json and web/data/markers/. Large PNGs
and the tile pyramids go through Git LFS (.gitattributes); JSON stays plain.
- build.py: decide PSD re-export from build/<id>/base.stamp.json (PSD size,
mtime, SHA-256 recorded at export time) instead of file mtimes, which are
meaningless after an LFS checkout. Same size + new mtime hashes once and
refreshes the stamp; --stamp-only writes stamps for existing base.pngs.
- Ignore .DS_Store and .env files; track sources/**/*.jpg through LFS.
Viewer:
- Right-click (long-press) the map for a category menu that drops a draft
marker under the pointer and enters marker edit mode for that map.
- Marker editing moves out of the side panel into a box anchored next to the
marker: Enter or a left click anywhere else saves, Esc cancels, Delete
inside the box; drags save position plus the box contents.
- Maps panel expands on hover, header click pins/unpins (status shown in the
header), unpinned collapses 2 s after the pointer leaves; Overview is the
first list entry instead of a separate button. Only the panel scrolls; the
page never grows past the viewport. Hover tooltips render above markers.
Also includes the pending source additions (overall square base, skirt
textures, AI regeneration tooling and notes), service worker, Caddyfile and
map config updates.
Co-Authored-By: Claude Fable 5 <[email protected]>
A single technical reference covering architecture, the four coordinate
systems, the padding trick that keeps tile grids integral, the build
pipeline, both config contracts, the viewer, serving benchmarks, source-art
findings, traps, design decisions, troubleshooting and current state.
The traps section is the point of it. Six separate things cost real
debugging time -- psd-tools filling stroke-only shapes, crashing on stroke
effects with empty bboxes, and shadowing its own submodule; layer effects
needing the [composite] extra; immutable caching blending two builds; and
the tilt resisting automated measurement. Each is written down with the
symptom, so nobody pays for them twice.
Also reconciles README.md and PLAN.md, which had drifted: PLAN still
described the revision-2 per-map underlay, the 8192 px grid, 31 degrees as
current, and claimed all re3mr PSDs share the LOCATION convention -- which
revision 3 disproved. Verified every cross-document link resolves and swept
for stale figures.