New alpha !
Not a big changelog, but there are quite a lot of lines of code behind that single feature, more than I thought (and dirtier, I'll clean later...)
Code:
- feature: add option to generate TCL on any map
So what this feature ?
It's a new
experimental option, when selected the mod will try to group Territories on any map using the Giant Earth Map as reference for coordinates and relative distances, then it convert the TCL list for each faction to use the current map territories, and replace missing territories in lists by the nearest it can found (there are always less territories on generated huge maps than on the Giant Earth Map, ~190 vs 250)
There are 3 types of placement:
- Grouped by continents: I've exported the Giant Earth Map territories with 6 "continents" (North America, South America, Europe, Asia, Africa, Australia), based on the number of Continents on the generated map, some of them will be grouped, and each of the map continent is assigned a group, based on it's relative position, and number of territories. For example with 3 continents the mod will make 3 groups ("Americas", "Eurafrica", "Asiastralia"), and then it will group the territories based on their original continents and relative distance (based on the Giant Earth positions)
- By Coordinates: the mod will try to place territories based on the minimal distance from the corresponding territory on the Giant Earth coordinates, it still use the continents group to add a penalty on distance for territories that doesn't belong to the determined Continent on that position. Depending on the relative positions of the generated map's continents, you can have territories from a same real world continent placed on 2 separated landmass, or mixed territories from 2 continents on the same landmass. But they should stay relatively grouped.
- By Coordinates with shift: that the same, but it moves the Americas coordinates to the west side of the map (the Giant Earth has the Americas on the East), this can be used with other custom Earth Maps
Yep, that last option is not perfect, especially because of the territories relative position on the oversized Europe from the Giant Earth Map... But, hey, it's an option! (still, better make a json compatibility file if you want to play on custom maps)
Note that the feature will not be activated on non-wrap maps.
Here is an example of a start on a Generated map using the "By Coordinates" option, I could unlock Egyptians or Nubians in my starting area
The unlocking lists of territories are of course a bit different, but should not be far from the Giant Earth, and Cultures should start relatively close of their real world neighbors.
And as you can see, a Culture mod that is compatible with the Giant Earth Map like Uncle2fire's
Culture Super Pack will be compatible with this new option...
(edit: outdated link removed)