A small set of python scripts to generate a world in Kanka using the API.
-
Go get a map from https://azgaar.github.io/Fantasy-Map-Generator/
-
Save the map to your computer
-
Get this repo and do all the things you need to do to run python scripts. https://lmgtfy.app/?q=how+to+run+python+scripts
-
Run convert-map.py to convert the map to a .json file
It should look something like this:
& C:/Python38/python.exe .\convert-map.py '.\Foyersia 2020-09-23-00-39.map' -
Run atk.py to parse the .json. It should look something like this:
& C:/Python38/python.exe .\atk.py '.\Foyersia 2020-09-23-00-39.json' -
Go get your Kanka campaign id https://kanka.io/en/
-
Update config.py and change the 'campaignId' to your campaign id.
-
Go get your Kanka bearer token https://kanka.io/en/settings/api
-
Create a 'kanka.token' file and save your bearer token in it as the only content.
-
Open up config.py and change 'active' to 'True'.
-
Run atk.py to parse the .json and this time create the parsed elements in Kanka.