So, Ostriches are basically fish

Summary:
Ostriches spawning in water areas.
Steps to reproduce:

  1. Generate a world with a lake
  2. Have the lake in the spawn area where ostriches spawn
  3. wait

Expected Results:
Well, they not spawning in there

Actual Results:
They spawn underwater
Notes:

Attachments:


Version Number and Mods in use:
Stable 1.1

Autoharvest Mod
Better Storage
Box Command Tool
Dense Fields
Faster Leveling 100x
Giant Crops
Small (1/2) and Large (2x) Maps <- I didn’t modify my world in this case
High Class
Miner Profession
No More Dirt Holes
Piles Plus
Smart Crafter
talk less
Super Mod 12

System Information:
OS: Win10 x64

I wonder if the game is considering that as a mountain even though it has water.

Checking the code:

function HabitatManager:_get_habitat_type(terrain_type, feature_name)
   if terrain_type == 'mountains' then
      return 'mountains'
   end
   if self._landscaper:is_water_feature(feature_name) then
      return 'water'
   end
   if self._landscaper:is_forest_feature(feature_name) then
      return 'forest'
   end
   if feature_name ~= nil then
      return 'occupied'
   end
   if terrain_type == 'plains' then
      return 'plains'
   end
   if terrain_type == 'foothills' then
      return 'foothills'
   end
   log:error('Unable to derive habitat_type')
   return 'none'
end

It checks for mountains first, so I guess that is the case… A fix would be to move the mountain check to the end of the list, after the foothills.

2 Likes