HUMANKIND Map Editor Territory Constraints & Caps

HUMANKIND Map Editor Territory Constraints & Caps

Welcome to our HUMANKIND Map Editor Territory Constraints & Caps guide. This guide contains information regarding territory sizes, tile count and hard/soft caps on territories, for anyone interested in map making.

This is a bit nitty-gritty, but if you want to make proper maps. You’ll probably get some help from this, as this information (to my knowledge) isn’t available anywhere else. If you’re not interested in map making, you can give this one a pass.

This guide may become obsolete/outdated with future patches and fixes.

I will talk a lot about the territory index. But, what does that mean?

Every territory has a unique index id, to tie all the information that the map editor needs to accurately represent it and validate it.

For example:

The territory with index 10 may refer to a Continent 1-tagged continent territory encompassing tiles XYZ, with the Arctic biome. Or index 40 refers to an Ocean-tagged ocean territory encompassing tiles ABC with the Temperate biome.

Every territory has an index id, and it is has to be unique to every territory, because any given territory is unique in terms of which tiles it encompasses, its biome and it’s type-tag (Continent 1, Continent 2, Ocean, etc.)..

Size Constraints of Territories – HUMANKIND Map Editor Territory Constraints & Caps

The official map editor guide isn’t quite as forthcoming as we could’ve hoped. It only mentions that continent territories should be “roughly 50 tiles”, while ocean territories “can be bigger”.

My testing shows that these are the actual size ranges of territories, according to the validation:

  • Ocean minimum: 10 tiles.
  • Ocean max: 199 tiles.
  • Continent minimum: 10 tiles.
  • Continent max: 199 tiles.

As you can see, there is no difference between the territories based on type, and you can vastly surpass the 50 tile constraint.

My testing also shows that you have to cover the entire map with territories, including ocean tiles. The index 0 ocean (default ocean) is a territory like any other, so as long as it is <=199 tiles you don’t have to add an explicit territory to it. The index 0 ocean will also count towards the validation saying that you have territories that are too big, if the index 0 ocean surpasses 199 tiles.

This is good info to have, because that brings us to the next point.

Territories Hardcap – HUMANKIND Map Editor Territory Constraints & Caps

There appears to be two caps, one hardcap and one softcap. The hardcap has only been verified on a Huge map, so YMMV.

There is a hardcap of the index at 255 — 256 index ids in total, as we are counting the initial ocean as index 0. When you surpass 255 territories, the editor throws index errors (visible in the diagnostics report), because you’ve gone over the hard limit. So that’s the hardcap, which means that we can currently never have more than 256 territories in total (counting the initial ocean as 0).

It appears that the map editor loads the territories and assigns them an index id sequentially, so it starts by giving the first territory in the array index 0, the second territory gets index 1, and thus we continue X=n+1 until X=255. So what happens when you go over the hardcap? All kinds of wonky behavior. To start with, it appears that the counter restarts at some point and starts assigning index ids to territories again.

So while territory Xmax has been assigned an index id of 255, territory Xmax+1 can get index 1 again. Or index 200. Or something else that is in the interval 0-255. I haven’t been able to ascertain by what logic it assigns the “extra” index ids.

More Territories Hardcap

So what happens when two territories share an index id? Fun things. Every change you make to territory with index X (idX) will also reflect in territory with index Y (idY), where idX=idY (as far as I can tell). If you change idX to ocean/arctic, you also change idY to ocean/arctic and vice versa. This makes it impossible to set the individual territories’ properties, as you’ll always be changing both territories. The map editor thinks that idX and idY are the same territory – even though they encompass a different set of tiles.

So, avoid the hardcap — and thankfully, you can at least see the running index tally in the map editor by selecting a given territory with right-click. You may have to restart the editor it if you’ve removed or reassigned territories in order to reapply the indexing after you’ve gone below the hardcap, in order to see the actual, updated index ids.

Territories Softcap

However, there also appears to be a softcap. As far as I could tell from my testing, the softcap is 236 territories. After 236 territories have been assigned, the wonky behavior of the hardcap starts happening, but there is no error thrown in the diagnostics report. Again, this is on a Huge map, which may make a difference (or not).

Some math:

A Huge map is 89 x 150 tiles, which equals to 13 350 tiles total.
At 50 tiles per territory, that’s 50 x 236, which equals to 11 800, which doesn’t cover a Huge map -> 50 tiles per territory is a pipe dream.
At 57 tiles per territory you get 13 452 tiles and can cover the entire map. With a grid. No fun, no nachos.
Conclusions
Unless you are trying to recreate the US with all 50 states accurately and proportionally represented, you can make your territories enormous. 199 tiles is a LOT for a single territory, so never fear that you’ll run out of territories or tiles in a given territory, even in a Huge map, in any reasonable scenario and with some ocean/continent divides.

Further Investigation

NORTH/SOUTH POLE?

Under the territories menu/create new territory option, the map editor says that there “should be” a unique and continuous territory along the north and south pole. It is entirely unclear if this means that there is a north/south pole ADDED, which could explain where the 19 territory difference between the hardcap and the softcap goes, or if you have to CREATE those unique and continuous territories. Given that the “circumference” of a Huge map is 150 tiles, this means one single-tile band across the map in the north and south.

The validation doesn’t throw any warnings whether you have the band or not. It also doesn’t seem to make any difference if you have the band assigned as a continent or not (but you’d lose two continent “slots” if you do). This needs further testing, and may cause issues with maps if you try to load them into the game.

OTHER MAP SIZES?

I’ve only tested the maximum territory size on a Tiny map. I’ve only tested the behavior of hardcap/softcap on a Huge map. Further testing is needed for verifying if this is valid for all map types, or if there is variation.

PERFORMANCE?

I’ve sunk 25 hours into the map editor, banging my head against the territories, the tools and the logic, and I’ve only just figured everything above out. That means I haven’t tested what happens if you actually try to play a map with only 199 tile territories, or even what happens if you try to play a map that is over the softcap/hardcap. Presumably performance would be affected (or cause crashes), but it needs further testing, especially on lower end PCs, so we can make recommendations for the maps we create.

    Leave a Comment

    Your email address will not be published. Required fields are marked *