I remove and crop some provinces in map/provinces.bmp.
And the error.log is full of
Code:
...
[map.cpp:1388]: Province 1112 has no pixels in provinces.bmp
[map.cpp:1388]: Province 1113 has no pixels in provinces.bmp
[map.cpp:1388]: Province 1114 has no pixels in provinces.bmp
...
I understand some modifications required in map/definition.csv and map/default.map
But for map/definition.csv, I do not know how to properly reindex. I tried
Code:
# 1112;85;141;56;Madurai;x # comment out, no use
1112;;;;Madurai;x # remove RGB index, no use
1112;0;36;195;Madurai;x # using RGB index of 1111(previous exsting), no use
If I delete all province definitions and renumber in order, no error spaming. However it turns that all events and all others become incompatible.
Anyway to keep majority of province id while removing some of them?
Don't comment out
any lines (except for the one at the very top of the file) in definitions.csv or give two provinces the same RGB values; it almost certainly
will break the map in one way or another.
If you want to remove a small amount of provinces (say ten or less), there's really no need to re-index things, though you need to override the whole \history\provinces directory as the relevant province file needs to not be read (it isn't possible to tell the game to ignore a certain file) and you'll still get the pixel error (which doesn't matter). However, it isn't good to do this if you're removing a lot of provinces, as you both will get a lot of errors (which increase the chance that you'll not spot something that's actually an error) and chances are there will be a significant performance drain caused by the provinces being tracked despite not existing.
Regardless of how many provinces you're removing, you still need to
manually track down and remove
all other references to the province wherever they may be (e.g. if it is a Silk Road province, you need to remove it from the Silk Road path(s) in question (and from the trade post checks in two different files as well, if it is one of those provinces)). You'll also have to
manually deal with various issues that can arise from removing titles (e.g. if you remove a duchy, one or more geographical regions might break, and if you remove a county that's a holy site, you break the religion(s) in question), which might cause trouble if the titles in question are involved in a lot of things and might require you to override more things (e.g. the \history\titles directory), which can result in a lot of compatibility work being necessary whenever there's a major patch.
If you renumber provinces, you still need to override the whole \history\provinces directory (as you'll otherwise get errors caused by the old files that no longer have an associated province) and still need to
manually fix various references to
both of the provinces. You'll also get the same issues related to title removal, you'll also need to fix stuff like positions and adjacencies (as those are associated with province ids), and you're going to have to do more work if vanilla adds more provinces in the future. However, it might still be better in the end if you're removing a lot of provinces.
Also, removing provinces might severely upset the balance of power in the relevant part of the map, which might cause issues elsewhere as the imbalance might result in other imbalances thanks to someone blobbing into an area you weakened (or someone failing to blob into another area because you weakened them). Whether you consider this a problem or not comes down to personal taste, but even small changes can have significant side-effects for the game as a whole.
In short, I
strongly advise against removing vanilla provinces unless you're only remove a handful of provinces (or you're doing a complete map overhaul, which is a massive undertaking) as it results in a lot of work regardless of what you do and might cause various issues for you.