map data processing for Kancolle Phase II
- install dependencies
# add electron mirror if necessary
export ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"
yarn- get map data
yarn get-map- use annotation tools to generate spot name file
yarn annotatethe spots name file will be output to ./data/notation.json
Note: if you have trouble running this, try export NODE_OPTIONS=--openssl-legacy-provider beforehand.
- run
yarn syncto sync spots name to ./out/WROLD_ID/MAP_ID/spots.json
- run
yarn poito generate final map data for poi at ./data/final.json
Some other scripts are used to draw a svg for preview, svg file will be saved at map dirs
-
run
yarn dstto get distance for landbase aircraft (celldata.jsonis necessary) -
run
yarn iconto draw icons (celldata.jsonis necessary)