Afforess
The White Wizard
Hey -- sorry all, I have been busy.
@Afforess, I've attached what I've got to this thread; if you could take over from here, that would be awesome.
What still needs to be done
-- soft code / XML tags for the weights on various terrain and feature types (yes, you set up the groundwork for this, but I didn't quite understand how to get them integrated; spent some time trying to get this working and finally gave up)
-- some debugging with the rivers blocking culture spread; it seems to work sometimes, and then other times it just doesn't
-- consider tweaking the amount of culture a city puts down on a tile, as it's very difficult to hold a captured culture-level-established (or greater) city when revolutions are enabled
Anyway, the core algorithm is there, and the remaining tweaks should be relatively straightforward. I'm leaving this in the community's more than capable hands. I've had a bit of fun playtesting, but really haven't had a chance to program this in the last couple of weeks. The AI seems to do reasonably well with it, though it really should learn to use fixed borders to grab resources in its BFC before culture expands sufficiently.
Great, thanks, I've already merged it for 1.74. (Although, I might even be able to update it in 1.73 without breaking saves... I'll have to test that theory. I adjusted the XML weights with your changes, added a new tag for the Floodplains, so that the desert culture distance is negated. As for possible bugs, I see you caught the "pPlot == NULL" scenario, as I found out the hard way early in 1.73... I had to release a patch for that.

Initially, I wanted to add extra culture levels, but then the culture levels would be in games without Realistic Culture Spread enabled, which would be rather...bad. Other alternatives I have in mind is making the borders expand when you reach the half-way point of the culture level too... but that might take a lot of modifications.
Anyway, code attached. Anyone is free to use it with whatever mod they want; just give me a quick shoutout in the acknowledgments section![]()
You've been in the credits list for some weeks now.

AND THUS THE FORCE OF AWESOME MODDER IS UNLEASHED!
.
That sounds like the opening line of a novel...
