The top 10 looks nice.
Let me know if I can help in any way.
I don't know if it would mean a lot work, but if you want to get something like in game when selecting a country, you could do clickable each row in the list of results, then show in the right part some info like in game:
Maybe not needed some stuff like liberty desire, ideas monarch or heir, but some other stuff like alliances, vassals and even historic rivals/friends could be handy.
From "history/countries/*.txt" you can get (for "POL - Poland.txt"):
Code:
government = feudal_monarchy
primary_culture = polish
religion = catholic
technology_group = eastern
historical_friend = LIT
historical_rival = TEU
capital = 262 # Krakow
national_focus = ADM
1444.11.11 = {
monarch = {
name = "(Interregnum)"
adm = 0
mil = 0
dip = 0
regent = yes
}
}
more data follows for posterior monarchs
From "history/diplomacy/*.txt" you can parse data for:
vassal, march, union, dependency (tributary states), alliance, guarantee, royal_marriage
then filter out data for end_date <= 1444.1.11 AND start_date >= 1444.1.11
and get the identifiers for both countries involved in each relation (first, second).
An idea suitable for another tool, just in case you want it:
Often in my games I get a single province from the enemy in a war, just to release a new vassal and after the truce use the re-conquest casus belli.
I would like to know the releasable countries from enemy provinces, and a list of provinces for each releasable vassal, to find the cheaper initial province (lower development/war score) and maximum total development or amount of provinces to get in next war.
For this task, I would like a tool where I could upload my save game and examine my possible goals.