JSON documentation? #1179
-
Is there any documentation for how the JSON data is formatted when you export a map as JSON? I need to pick out all cities on the map and map their coordinates to between 0.0 and 1.0 based on their X/Y coordinates. I also need their population. How can I find this information? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, you can find the data model description here: https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Data-model. To get relative coordinates you need to calculate |
Beta Was this translation helpful? Give feedback.
Hello, you can find the data model description here: https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Data-model.
It's not the same as json, but it's almost the same.
To get relative coordinates you need to calculate
burgX / graphWidth
andburgY / graphHeight
.graphWidth
/graphHeight
can be checked in dev console. Burg coordinates are there in JSON.