From a programming lua/xml/sql point I mean. Why is it doing this (I see Whoward even wrote a mod so you can still build a lighthouse) and how do we make it stop?
See the 4 Civilization_Start_xyz tables, but it's probably a civ that wants to start in grassland / on a river and the best spot just happens to be a few tiles back from the coast. The one I really hate is "start on a coast that then turns out to be a 12 hex inland sea"
The first one would really only require a spiral iterator.
Psuedo-code:
Code:
If not coastal start bias then
Spiral Iterator with a 2 hex radius writing all tiles to a table
for #table do
if plot type == coast then
place = false
end
end
end
For the other issue (coastal start bias) you'd need lake detection. Cephalo has quite capable lake detection in PerfectWorld3, you'd just need to adapt it and maybe set it up to scale the minimum size considered "inland sea" for the map size.
Either of these may have weird results though. For example, instead of placing the civ one tile over and then adding in the fix-up resources (the second lux and usually at least one strat) it might abandon that (otherwise fertile) map division entirely.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.