What are Contours?
For over 13 years we have been wondering, "Nooks and crannies? What the heck does that mean?" and "What the heck is a contour?".
Heck I don't know. But I recently enabled "developer mode" in Starcraft: Battle.net Beta to show everyone what it is. I'm going to post screenshots and make some observations, you decide what it really is.
What is the relation to the nooks and crannies error?
There is a contours limit. When that limit is breached, the nooks and crannies error will occur.
Message: cdebug
Cheat Enabled
Message: contour 2
Cheat Enabled
This only shows the third contour, depicted in programming as "contour[2]".
Message: cstats
Cheat Enabled
: Total contours = 1320
: Twistedness: 77188/116818 = 0
The map is 96x96 and doesn't have many obstructions, yet there are over a thousand contours.
Message: makeunit goliath
Cheat Enabled
Message: contour 2 goliath
Cheat Enabled
We create a Goliath unit and resize the contour boundry to match our Goliath.
Here's the information I gathered:
The white line is the walkable boundry. The edge of the unit cannot step over this line.
The yellow line is the walkable boundry for the exact center of the unit. The center of the unit (1px) cannot step on or over this line.
We can see from this information that the Goliath should be able to pull a tight squeeze in that cliff, and it does with no room to move up or down.
The green dots plotted along the corners of the yellow line appear to be for unit pathing, but I'm not entirely sure.
The red lines connect the green dots, and that's all there is to it.
End of Briefing
Next: Regions, general pathing, and contour relationship. I've found that contours are restricted to regions, I may post about it if people show interest.