valheim-map/notes/tile-format-readme.txt
Aelith 3a08501b0d Initial commit: Nerdhalla Valheim World Map
- Phase 1: POI database (11,309 locations, SQLite with spatial queries)
- Phase 2: Tile decoder + Leaflet.js web viewer (3 map layers, search, categories)
- Phase 3: .db/.fch parser WIP for fog-of-war overlay
- Full README with roadmap, architecture, and usage docs
2026-06-16 13:18:39 -04:00

19 lines
728 B
Text

Tile format (from valheim-map.world export Readme.txt):
Each tile is a gzip-compressed binary file containing a flat array of:
struct MapSample {
uint16_t biome; // 2 bytes - biome enum
float height; // 4 bytes - height in Valheim units
float forestFactor; // 4 bytes - forest density
} // = 10 bytes per sample
1024 x 1024 samples per tile = 10,485,760 bytes uncompressed
4x4 tiles = 16 tiles total
World: 24000 x 24000 Valheim units
Biome enum:
None=0, Meadows=1, Swamp=2, Mountain=4, BlackForest=8,
Plains=16, AshLands=32, DeepNorth=64, Ocean=256, Mistlands=512
locations.json: list of every location with prefab name, position, contents
map.json: world metadata (seed, tile size, version)