The canvas is no longer an abstract grid of unrelated cells. overall.jpeg is now the base, rotated 31 degrees so north is up, and every detail map is scaled and positioned onto its real location. Zoom out for all of Tarkov; zoom in and the full-resolution re3mr map takes over. The 31 degrees was measured, not guessed: Customs' detail map is north-up (its PSD compass confirms it) and runs 2.6:1 east-west, so solving its 259x207 zone outline for the band angle gives 31. rotate_point is verified sub-pixel against PIL. Adds Woods, Interchange, Reserve, Shoreline, Shoreline Resort, Lighthouse and Streets, and moves every source under sources/<id>/. baseGroup becomes baseLayers, a list of slash-paths. These PSDs share no naming convention at all -- the base is variously LOCATION, Baselayer, Day, 3DRENDER, BASEMAP+2DLAYERS or Map&Art; several need more than one top-level layer, and Woods buries its terrain three groups deep. Exports also keep alpha now, so maps composite onto the terrain instead of sitting in opaque rectangles. Placement needs sub-cell precision, but tile grids stay integral only when a map's origin is a multiple of tileSize * 2^maxZoom (131072 px). So rather than snapping a map to the grid, the tiler pads it up-and-left to the nearest cell boundary and visits only tiles holding content: exact placement, integral grid, no cost. Each map is tiled to its native level and carries a minZoom, so the overview stays cheap. Two psd-tools failures worked around: stroke effects on empty-bbox layers crash scikit-image (patched to skip), and psd_tools.composite exports a function that shadows its own submodule. Verified zoom 0-9: 10 layers, zero broken tiles. Co-Authored-By: Claude Opus 5 <[email protected]>
153 lines
3.6 KiB
JSON
153 lines
3.6 KiB
JSON
{
|
|
"$comment": "Single source of truth for the whole build. See docs/adding-a-map.md.",
|
|
"tileSize": 256,
|
|
"maxZoom": 9,
|
|
"attribution": "Maps by <a href=\"https://re3mr.com\" target=\"_blank\" rel=\"noopener\">re3mr.com</a> · CC BY-NC-SA 4.0",
|
|
"$comment_world": "The overall map is the base everything else sits on. It is rotated by `rotate` degrees (counter-clockwise) to put north at the top; 31 deg was measured from the Customs zone outline, whose detail map is north-up and 2.6:1 east-west. `overallScale` is world pixels per overall-map pixel, set so Customs lands at its native 7832 px.",
|
|
"world": {
|
|
"image": "sources/overall/overall.jpeg",
|
|
"rotate": 31,
|
|
"overallScale": 64
|
|
},
|
|
"$comment_place": "`place` is in ROTATED overall-map pixels (the north-up image, which is what tools/place_preview.py draws a grid over): cx/cy = centre, w = width. Positions are deliberately approximate -- the game's maps do not tile exactly onto the satellite view.",
|
|
"maps": [
|
|
{
|
|
"id": "customs",
|
|
"name": "Customs",
|
|
"psd": "sources/customs/customs.psd",
|
|
"baseLayers": [
|
|
"LOCATION"
|
|
],
|
|
"excludeLayers": [
|
|
"Map Borders"
|
|
],
|
|
"crop": [
|
|
0,
|
|
860,
|
|
7832,
|
|
3875
|
|
],
|
|
"pxPerMeter": 7.39,
|
|
"place": {
|
|
"cx": 952,
|
|
"cy": 960,
|
|
"w": 265
|
|
}
|
|
},
|
|
{
|
|
"id": "customs-dorms",
|
|
"name": "Customs — Dorms",
|
|
"psd": "sources/customs/customs-dorms.psd",
|
|
"baseLayers": [
|
|
"LOCATION"
|
|
],
|
|
"crop": null,
|
|
"place": {
|
|
"cx": 1000,
|
|
"cy": 990,
|
|
"w": 70
|
|
}
|
|
},
|
|
{
|
|
"id": "woods",
|
|
"name": "Woods",
|
|
"psd": "sources/woods/woods.psd",
|
|
"baseLayers": [
|
|
"re3mr.com/Map&Art/Map&OverlayArt/RawMapLayer",
|
|
"re3mr.com/Map&Art/Map&OverlayArt/WaterDetail"
|
|
],
|
|
"crop": null,
|
|
"place": {
|
|
"cx": 818,
|
|
"cy": 652,
|
|
"w": 380
|
|
}
|
|
},
|
|
{
|
|
"id": "interchange",
|
|
"name": "Interchange",
|
|
"psd": "sources/interchange/interchange.psd",
|
|
"baseLayers": [
|
|
"3DRENDER"
|
|
],
|
|
"crop": null,
|
|
"place": {
|
|
"cx": 1132,
|
|
"cy": 875,
|
|
"w": 95
|
|
}
|
|
},
|
|
{
|
|
"id": "reserve",
|
|
"name": "Reserve",
|
|
"psd": "sources/reserve/reserve.psd",
|
|
"baseLayers": [
|
|
"Day copy"
|
|
],
|
|
"crop": null,
|
|
"place": {
|
|
"cx": 770,
|
|
"cy": 1022,
|
|
"w": 140
|
|
}
|
|
},
|
|
{
|
|
"id": "shoreline",
|
|
"name": "Shoreline",
|
|
"psd": "sources/shoreline/shoreline.psd",
|
|
"baseLayers": [
|
|
"Baselayer"
|
|
],
|
|
"crop": null,
|
|
"place": {
|
|
"cx": 735,
|
|
"cy": 1222,
|
|
"w": 380
|
|
}
|
|
},
|
|
{
|
|
"id": "shoreline-resort",
|
|
"name": "Shoreline — Resort",
|
|
"psd": "sources/shoreline-resort/shoreline-resort.psd",
|
|
"baseLayers": [
|
|
"BGCOLOR PATTERN",
|
|
"BASEMAP+2DLAYERS"
|
|
],
|
|
"crop": null,
|
|
"place": {
|
|
"cx": 660,
|
|
"cy": 1175,
|
|
"w": 130
|
|
}
|
|
},
|
|
{
|
|
"id": "lighthouse",
|
|
"name": "Lighthouse",
|
|
"psd": "sources/lighthouse/lighthouse.psd",
|
|
"baseLayers": [
|
|
"Day"
|
|
],
|
|
"crop": null,
|
|
"place": {
|
|
"cx": 540,
|
|
"cy": 1010,
|
|
"w": 300
|
|
}
|
|
},
|
|
{
|
|
"id": "streets",
|
|
"name": "Streets of Tarkov",
|
|
"psd": "sources/streets/streets.psd",
|
|
"baseLayers": [
|
|
"Map - 3D map portion at the bottom [Update this when new basemap available]"
|
|
],
|
|
"crop": null,
|
|
"place": {
|
|
"cx": 1130,
|
|
"cy": 445,
|
|
"w": 110
|
|
}
|
|
}
|
|
]
|
|
}
|