16 Commits
Author SHA1 Message Date
lucioandClaude Fable 5 f27a95e47a Regenerate the square base from the image-to-image render; add tools/align_square.py
The new render re-drew the whole map scaled 0.992 and shifted (26, 54) px,
which would move every placement. align_square.py fits that transform by
phase correlation, warps the render back, re-pastes the rotated source over
all real pixels so only the corner triangles are generated, and tone-matches
the corners to the seam. sea_corner.py then keeps the bottom-left corner as
flat sea. world.json carries the retiled versions.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-22 16:24:42 -07:00
lucioandClaude Fable 5 cf8f822e74 Add EN/Chinese language toggle for extract and transit names
Chinese strings live in web/data/extract-translations.zh-CN.json, keyed
by stable marker ID; the bottom-right control switches live-rendered
markers and tooltips and persists the choice in localStorage.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-22 14:11:45 -07:00
lucioandClaude Fable 5 f7cd4fde04 Declare UTF-8 for the stylesheet and served text types
style.css uses non-ASCII glyphs in CSS content (panel arrow, pin). Without a
declared encoding the browser can fall back to Latin-1 for the stylesheet and
render them as mojibake, which happened once in the preview. @charset at the
top of style.css fixes it everywhere; serve.py also sends charset=utf-8 for
html/css/js/json.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-22 11:31:43 -07:00
lucioandClaude Fable 5 08c8445ba1 Fill the bottom-left corner in the world composites too; rebuild Lighthouse skirt
Maps with an "aligned" skirt paste their surroundings from
build/world/unified-z6.png (z5/composite fallbacks), so Lighthouse's trimmed
tiles still showed the AI-invented peninsula and the diamond seam west of the
lighthouse island after overall-square.png was fixed. tools/sea_corner.py now
accepts --image for a composite at another scale (masks scaled from the
rotated source, feather from the image's own pixels, no full-size mgrid
planes, no PNG optimize pass on 217 Mpx) and was applied to all four
composites with a sampled sea colour. Lighthouse trimmed tiles rebuilt.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-22 11:30:49 -07:00
lucioandClaude Fable 5 2e26c485c7 Sea fill for the bottom-left corner only; restore the other three corners
The outpainted top-left, top-right and bottom-right corners of
overall-square.png are back to the 72fa9f5 version; only the bottom-left
corner is flat sea (#121818, with the 96 px flat-margin feather along its
edge). tools/sea_corner.py defaults to bottom_left again. Overall tiles rebuilt.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-22 10:59:27 -07:00
lucioandClaude Fable 5 5f1ff26832 Drop the sea_corner dry-run preview from the repo
It is a throwaway build/ artefact of tools/sea_corner.py --dry-run; ignore it.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-22 10:23:10 -07:00
lucioandClaude Fable 5 30a0338233 Make everything outside the cropped overall map flat sea
The overall source is a feathered "cropped map" sitting on a uniform dark
background: its whole left, bottom and right margins and most of its top edge
are flat (#121818). Everything outside it is sea, so the AI-outpainted land in
all four corners of overall-square.png was wrong, not just bottom-left.

tools/sea_corner.py now fills all four corner triangles by default with that
background colour (--color sample restores per-corner sampling) and feathers
flat-background pixels within 96 px inside the diamond toward the fill, so the
diamond outline no longer shows where the source margin was a little brighter;
textured content is untouched and the result is idempotent (real pixels are
re-read from the rotated source). Overall tiles rebuilt.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-22 10:22:57 -07:00
lucioandClaude Fable 5 6750cc8722 Fill the bottom-left corner of the overall base with flat sea
The AI-outpainted bottom-left corner of sources/overall/overall-square.png
invented a coastline and harbour where there is only open sea. tools/sea_corner.py
replaces a corner triangle (exactly the rotated source's alpha == 0 quadrant, so
no real satellite pixel changes) with one flat colour sampled as the median of
the real sea within 20 px of that edge (#111819 here). Applied to bottom_left
and the overall tiles rebuilt (world.json version bump).

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-22 10:14:37 -07:00
lucioandClaude Fable 5 72fa9f5742 Stop tracking tile pyramids; add tools/release.py for Gitea static releases
The tiles were 10.7k LFS objects for 82 MB: almost all of the per-object
transfer cost of a push/pull for 1% of the bytes. build.py regenerates them
from the committed build/<id>/base.png in a couple of minutes (and skips the
PSD render via base.stamp.json), so web/tiles* go back to .gitignore.

tools/release.py makes a stable static-site release: the read-only export ZIP
(server/serve.py export_static_site), an annotated git tag, and a Gitea
release for that tag with the ZIP attached through the REST API
(GITEA_TOKEN from env or .env). README documents the flow and deployment.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-22 09:59:16 -07:00
lucioandClaude Fable 5 472c983287 Commit build outputs via LFS; right-click markers, inline edit box, panel pin
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]>
2026-08-22 09:46:02 -07:00
lucio 234dc32c86 Add editable export workflow and new map sources 2026-08-09 17:04:36 -07:00
lucio b079009d74 Fix Interchange export and extract styling 2026-08-09 01:24:21 -07:00
lucio 7c9e0ba5e1 Refine map controls and fix Dorms export 2026-08-08 23:09:55 -07:00
lucio bbb4cadddd Add per-map editable markers and backups 2026-08-08 22:03:49 -07:00
lucio e71447da5d Add permanent trims and semantic map layers 2026-08-08 18:47:56 -07:00
lucio 3abdc95500 Add interactive map placement and sizing editor 2026-08-08 16:40:09 -07:00