How spytheeuclidean-a11y/knoxmap works
KnoxMap is a desktop-facing map generator that turns a selected real-world area into an installable Project Zomboid map. The documented user journey is area selection, map generation, building, compilation, and installation. Its generation stage combines geographic data with raster rendering; building adds interiors and population, while compilation packages the project for the game. The README documents additional map and building capabilities, but many implementation details were not sampled, so some subsystem links are documented at a high level rather than traced through source.
Main entry points: generation.py Generation workflow · renderer.py Terrain rendering · app.js Map window · build.py Map building
Components 20
Desktop interface
- Map window
static/js/app.js - Local API
app.py
Map generation
- Generation workflow
web/generation.py - OpenStreetMap data
generator/osm.py - Regional datasets
knoxdata - Map projection
generator/rendering/projection.py - Road layout
generator/roadgraph/snap.py - Terrain rendering
generator/renderer.py - PZ color palette
generator/pz_colors.py - Forest preview
generator/rendering/forest_preview.py - Native road search
rust/knoxroute/src/main.rs
Building design
- Map state
knoxbuild/mapstate.py - Building interiors
knoxbuild/layout/furnishing.py - Building catalog
knoxbuild/catalog.py - Map building
knoxbuild/build.py - Population spawns
knoxbuild/population.py
Game delivery
- Map compiler
tools/compile_map.py - Mod installation
tools/make_map_mod.py
Other components
- Map maker
- Project Zomboid
Connections 20
- Map maker → Map window: chooses area
README.md - Map window → Local API: sends requests
README.md - Local API → Generation workflow: routes generation
app.py - Generation workflow → OpenStreetMap data: fetches features
web/generation.py - Generation workflow → Regional datasets: loads layers
web/generation.py - Generation workflow → Terrain rendering: renders map
generator/renderer.py - Terrain rendering → Map projection: uses projection
generator/renderer.py - Terrain rendering → PZ color palette: uses colors
generator/renderer.py - Terrain rendering → Road layout: snaps roads
- Road layout → Native road search: runs search
generator/roadgraph/snap.py - Map window → Forest preview: previews forest
- Generation workflow → Map state: saves state
web/generation.py - Map maker → Map building: requests build
README.md - Map building → Building interiors: lays out interiors
- Building interiors → Building catalog: uses catalog
knoxbuild/layout/furnishing.py - Map building → Population spawns: creates spawns
- Map maker → Map compiler: requests compile
README.md - Map compiler → Mod installation: packages map
- Map maker → Mod installation: installs map
README.md - Mod installation → Project Zomboid: adds game map
README.md