Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0009124Dwarf FortressDwarf Mode -- Jobs, Animal Handlingpublic2015-11-30 08:372016-01-24 09:04
PatrikLundell 
 
normalminorN/A
newopen 
PCWindows8.1
0.40.24 
 
0009124: Animal trainer goes to old pasture and get stuck
I had jabberers hatching in a breeding pen. As soon as I saw the message I paused, ordered the hatchlings to be pastured in the main pen just outside the pet impassable door, and ordered them to be trained by any trainer.
Both hatchlings were hauled to their new home, and the first one was trained (and thus tamed). I saw training of the other had been assigned to a dwarf, but the job was still active a fair while later (a month?). I saw the dwarf who'd taken the job stand in the old pen, thirsty and drowsy.
I used the DFHack command "teleport" to move the trainer next to the hatchling, but as soon as I unpaused he ran back in through the door.
I then ordered the hatchling to be pastured back into the breeding pen and animal unlocked the door. The hatchling walked through the door on its own accord and the trainer ran away without finishing the session, presumably to drink and sleep. The hatchling was then repastured again to the main pen, and a while later the same trainer went there to train (and completely tame) the hatchling. Both pens have the training tag, by the way.
I've moved newborn and organized their training in the same way many times without any trouble, so it can't happen very often.
It appears to be the same kind of deadlock as when destroyed buckets are repeatedly failed to be used for water hauling, i.e. a target for an action has been determined, but changing conditions invalidates the target. In this case I would guess the trainer somehow selected the pasture to use for training, and when no hatchling was found expected it to shortly be hauled there, rather than rechecking that it was supposed to be there when not found.

Using LNP r19 with DFHack with Performance Tweaks enabled plus Dwarf Therapist and Announcement Window+.
No tags attached.
Issue History
2015-11-30 08:37PatrikLundellNew Issue
2015-11-30 08:52PatrikLundellNote Added: 0033192
2015-12-03 23:27DetrosNote Added: 0033368
2015-12-03 23:59PatrikLundellNote Added: 0033370
2015-12-06 09:04DetrosNote Added: 0033509
2016-01-24 09:04PatrikLundellNote Added: 0034542

Notes
(0033192)
PatrikLundell   
2015-11-30 08:52   
It sort of happened again, but this time the hatchling followed either its trainer or its parent's trainer (both jobs were active at the same time) through the pet locked door into the old pen, and both training sessions were performed.
Pet unlocking the door afterwards allowed it to walk out on its own.
(0033368)
Detros   
2015-12-03 23:27   
Similar to 0009089, "Animal trainer tries to train female bird trying to lay eggs, get stuck in loop".

Can you upload your save (zipped region folder) with stuck dwarf to http://dffd.bay12games.com/ [^] .
(0033370)
PatrikLundell   
2015-12-03 23:59   
I agree it looks like it has a similar root cause. Unfortunately I can't upload a save since I didn't save while the trainer was stuck, so that situation has passed.
It MIGHT be possible to recreate the second situation where the trainer and the animal both go to the old pasture, stare intently at the proceedings, and make a save while they're training in the wrong pasture (I think that's more likely to be recreated). Would such a save help?
(0033509)
Detros   
2015-12-06 09:04   
I guess yes, even just to see if this is somehow related to the placement of these facilities or some other weird thing.
(0034542)
PatrikLundell   
2016-01-24 09:04   
It took a while, but I believe I've reproduced the situation: http://dffd.bay12games.com/file.php?id=11699 [^]

Trainer went to jabberer chick birth pasture, while the chicks were actually pastured to the general one outside of an animal locked door. Two chicks were born and two trainers were assigned. One is done after training the chick where pastured, while the other tries to train the remaining chick in the pasture where its parents are.

I continued from the save, pet unlocked the door, but nothing happened. I then repastured the chick to the one where the trainer was, and it immediately went through the door.

The save is from 0.42.04 using LNP r03 with Dwarf Therapist, DFHack, and the Crimson Crops 0.2 mod (affects plant seasons, growth time, and yield, plus domesticated bird egg clutch size).

Apart from that, "civilized" races have been adjusted to attack earlier and trade (to get around the human trade blocking zero export bug), humans and elves have had their numbers increased to hopefully increase survivability, and the dwarven max civs been set to 1 to get a dead one. All of these are entity_default.txt parameter adjustments (and addition of "missing" parameters, in the case of human trade).