Summary:
I have a large piece of land fenced in to have plenty of expansion room for my just started village. But mobs seem to be spawning inside the fenced area. When a fighter went in to disperse the newly spawned enemy’s another group spawned right in his face.
Steps to reproduce:
Fence in a piece of land, but have an open area without buildings
Wait for mobs
Expected Results:
Mobs spawn outside the enclosed area and try to get in to fight/destroy/steal Actual Results:
Mobs spawn inside the enclosed area and achieve their fighting/destroying/stealing plans
As you noted in your repro steps (thanks for completing the template, by the way, very helpful!), there is a large open space. This is not a bug, but intended behavior. When @Albert re-did the spawn system awhile back, he made it harder for enemies to spawn “inside”, but not impossible. Check out his Desktop Tuesday for more details: http://stonehearth.net/dt-enemy-placement/
The game should not spawn anything within X blocks of a structure that you own. However, if you build a huge fence that encircles a large amount of undeveloped territory, much of the interior territory will not be claimed by you until it is developed. This prevents arbitrarily large land grabs that are beyond your current means to develop/oversee.