How to use:
This is an example on how the configuration file could look.
Code:
# Please list the country tags of the countries whose pops you want to be split below:
# REMOVE: Write the province ID you don't want split
# TYPE: aristocrats, officers, clergymen, capitalists, clerks, craftsmen, soldiers, farmers, labourers, slaves
# No start and end tags in the same line
# Tag: <COUNTRY REMOVE="" TYPE=""></COUNTRY>
# Tag: <PROVINCE TYPE=""></PROVINCE>
# Tag: GAMEDIR
GAMEDIR = D:\Spil\VIP-R
<COUNTRY TYPE="clerks craftsmen farmers labourers slaves">
AUS # Austria
</COUNTRY>
<COUNTRY REMOVE = "" TYPE="clerks craftsmen farmers labourers slaves">
ENG # United Kingdom
GER # Germany
</COUNTRY>
<COUNTRY REMOVE = "843" TYPE="clerks craftsmen farmers labourers slaves">
ITA # Italy
</COUNTRY>
<COUNTRY>
POR # Portugal
</COUNTRY>
<COUNTRY REMOVE = "451">
RUS # Russia
SWE # Sweden
</COUNTRY>
<PROVINCE TYPE="aristocrats officers clergymen capitalists clerks craftsmen soldiers farmers labourers slaves">
1501
</PROVINCE>
It's important to note that the configuration file is loaded when you start the program. So if you change anything in the file while running the program, it wont affect the split. You need to restart the program
The directory specified after the GAMEDIR tag, is used when the automatic POP splitting function is used. Here you specify where you have your game installed
the first tags results in all clerks, craftsmen, farmers, labourers and slaves being split in all provinces owned by Austria.
the second tag will do the same for Germany and the UK
the third one will do the same for all the Italian provinces except the one with the ID 843
fourth tag splits all types in all Portugese owned provinces
fifth tag splits all types in all Russian and swedish provinces, except the russian province with ID 451
the last province tag selects a specific province for splitting. there can be as any province ID listed here as you like.
Errors
As I had to rewrite all the code, it's possible that I've reintroduced some of the errors removed previously found in this tool.
Hopefully this is not the case, and I've tried to test it as much as I could.
So I hope you find it usefull.
Please report back if you encounter any problems, or if you have some suggestions for improvements.