This project parses assets for the "Clausewitz" game engine used by the popular games "Europa Universalis IV" and "Crusader Kings II". To make sense of this data, it does a couple of things:
- Opens the
default.mapbitmap file and the
definitions.csvcontaining the location of each province. Each province is then converted from bitmap data to a list of "edge" points that make up its shape. All of the points are then put into a geojson format file. See
geojson.hsfor more info.
- Parses other assets used by the Clausewitz engine into a more generic JSON text format. See
generator.hsfor more info.
- Provides a frontend to make sense of the above JSON files. Each of the geojson features are projected onto the world map. Each feature has some data associated with it like "capital" or "base_manpower". See
index.htmlfor more info.
A live demo is available at https://matthewbauer.us/eu4-parser/.
exec generate-all.sh python -m SimpleHTTPServer
Open localhost:8000 for interactive map.