i certainly can not tell this and that is wrong with the ai but...
as already mentioned i prefer playing sandbox, but yesterday i tried a campaign-game. I gave up!
There are a few issues that will happen also in sandbox-mode but happen much more often in campaign as undone tasks. I don't know how and why but exiting and re-entering makes them dwarves going again mostly.
I can for sure report the following issues:
siege-mode (forbid to leave shelter):
• if turning on siege-mode all tasks that are given previously turning siege-mode on outside shelter-borders get ignored after turning siege-mode off, applies also to crafting-queue if only one of the required crafting-stations is outside the shelter-borders, (like a kitchen in some ancient tomb) - exiting and restarting the game will solve this
• if giving tasks outside shelter-borders at block x,y
while siege-mode on - so message appears -
the game is screwed forever. Tasks concerning block x,y get ignored forever in this savegame thereafter, no ressources get collected there any more, nothing will be built there, neither dig, nor replace, nothing - to collect ressources there either summon imps, use magic collect or just dig the block below x,y so resources fall down to y+1 where these get collected then. No other way to solve this. To build/dig/replace there from now on only possible if taking over manual control of a dwarf.
Also happens if dwarves have to remove some leaf before they can return to shelter at all. Position where that leaf was growing/dropped get's ignored from now on and forever in this game.
Same goes to places where some item is to collect and some dwarf already on his way to go there when turning siege-mode on.
horn-spell (gathering dwarves at a location):
• if using horn-spell to gather the dwarves (for a wave or a keeper) then have to CANCEL horn-spell BEFORE BATTLE ENDS.
Else resources that drop while horn-spell active won't get collected and stuff to craft at some stations won't get crafted if horn-spell still active when dwarves "plan their next actions after battle", exit & restarting the game solves this.
major issues:
• dwarves ignoring enemies that attack them while doing something like logging, digging, gathering water, dwarves not helping their comrades standing next to them fighting enemies
• space-bar/ green arrows at ai-info-bar (browsing through dwarves)
displaying wrong dwarves health and ai-state, only the first dwarves health will be shown correct, all others show also the first dwarves state
displayed ai-states ("attacking enemy", "waiting for elevator", "idle" etc.) totally messed up and only around 5% showing the correct ai-info
minor:
• let's craft stone-bridges in campaign please, instead of useless, ugly, black columns
• dwarves using the weapon/tool they planned to use for the given task to remove leaves that are in their way. So on attack a mage uses mages staff, archer uses bow, on planned mining they cut the leaves with the pickaxe etc. Maybe only wrong animation but looks weird, especially if dwarf was sent to gather water - i have to laugh if they cut the leaves with a bucket...
• multiple sent-out dwarves to do the same job, (mostly collecting) is a pain, messing up my portal-timing, especially if the item they went for is not there any more, but instead of picking any other item near them they return empty or just stand around then.
• sometimes when digging a front-wall (only experienced in campaign-mode multiple times yesterday, perhaps once in hundreds of hours in sandbox-mode!) two dwarves come and dig front & backwall then.
Annoying inside the shelter...
• manual control
often happens if taking over control of a dwarf that stands around, the dwarf does not react unless one let him place some item- even if item can not be placed, dwarf makes a small movement and then can be controlled.
if dwarf is currently waiting for elevator/rail, dwarf does not allow control until rail/elevator was used - so has to walk/climb all the way back then...