Hi Rozimiyko
Sorry for the slow response, probably I am on the other side of the planet to you
Attached is the intercity-5 mod that has everything needed to ensure a minimum spacing of 5 plots (done in XML). Also included is the file assignstartingplots that decides where CS settlers should be placed.
The problem is that the CS settlers are sometimes placed closer than the minimum spacing and then will not settle and remain as zombies until barbarians kill them. This is because there is no settler migration code for CS in the DLL. The problem is that although the settlers are zombies, the CS still behaves as if it were settled! The player still gets CS requests from the unsettled CS.
I have temporarily fixed it (as you can see in the mod), by deleting any unsettled CS at turn 1.
The problem is certainly a challenge! The code in AssignStartingPlots.lua is very complicated!
The problem is that because the AI plays somewhat better on intercity5 (because it can attack cities better), I can decrease the the AI-handicap. However if the AI has less happiness, it starts to make bizarre settlement decisions (without your mod). The AI will see that it needs happiness, and then migrate a settler either escorted or not, across the map looking for a luxury to settle on
I will try out your mod soon in detail with firetuner, in combination with the intercity5 mod to see if the AI places it's settlers better on a minimum spacing of 5.....
Thanks
Glider