A browser map for vanilla DayZ Mod (ArmA II) with vehicle spawns etc. Working example here.
- node with angular, leaflet, see
package.json
- python to render the map tiles
- ArmA 3 Tools
- ImageMagick (linux via packet manager, windows via MinGW)
- GDAL (On Windows via Anaconda)
- Run
ng build --aot --prod --base-href=/dayz/ --deploy-url=http://www.example.com/
- Copy to webserver
- Unpack
Arma 2/AddOns/Chernarus_Data_Layers.pbo
with your favorite pbo extractor - Convert tiles in
ca/chernarus/data/layers
from.paa
to.png
2.1. Get full path toPal2PacE.exe
from Arma 3 Tools and edit paths intools/create_tiles.sh
accordingly 2.2. Run it, this should give you a singlemap.png
with about 500 MB as output.
You can skip some these steps marked as (optional) by grabbing the pre-rendered map at tools\Chernarus.png
. (Its only 15360x15360, you might need a better resolution for higher zoom levels)
- (Optional) Export
Chernarus.emf
from Arma 2 1.1. Start game as admin 1.2. Pressleft shift + numpad minus
, then release and typetopographz
(it uses QUERTZ layout, not QUERY) 1.3. You should findC:\chernarus.emf
1.4. Since Arma 3 there is alsoExportNoGrid
, you will have to play around with that - (Optional) Convert
.emf
to.png
as described here.
EmfToPng.exe Chernarus.emf 8
- Run
python gdal2tiles.py -l -p raster -z 0-7 -w none map.png tiles
and wait for it to finish. Here maximum zoom level is 7, you can increase, but it will increase render time and size. 2. You should have your finished map in the /tiles folder. 3. Copy the entire folder to some static url on your webserver.
- nginx/apache webserver
- around 1 GB for both topo and sat map
- map tiles
- Copy map tiles to your webserver (you can send me a message, I can upload them for you).
- Edit
src/assets/config.json
to your needs. - Move angular build to your webserver.