generate_graph is a tool that constructs a graph image from a well structured flare_game mod. It does so by traversing maps and extracting relevant "map connections".
It is kinda "untyped", relying on regular expressions, yet it works just fine on the empyrean campaign (and probably others).
data_dir="/path/to/mod/" ./generate_graph.py | dot -Tpng > output.pngAdditionally, you can set environment variables
graphviz_prefix to specify prefix file,
print_npc to print npc map connections (enabled by default) and
print_dead to print/draw unreachable map nodes.
Also, you can use "svg" and many other other picture formats that dot (graphviz) tool allows.
There are also two legacy bash scripts that generate map without sorting. Unfortunately, the main smart algo does not differ much from it if you have crazy connected map tiles (hyperspace, I'm looking at you). So if you don't care about sorting, you can use the much simpler bash scripts in this repo to generate graphviz file contents. In this case, use:
./generate_graph.sh /path/to/mod/mapsInstall "graphviz" package.
GPLv3+