View Issue Details

IDProjectCategoryView StatusLast Update
0009124Dwarf FortressDwarf Mode -- Jobs, Animal Handlingpublic2016-01-24 09:04
ReporterPatrikLundell Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status newResolutionopen 
PlatformPCOSWindowsOS Version8.1
Product Version0.40.24 
Summary0009124: Animal trainer goes to old pasture and get stuck
DescriptionI 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.
Steps To ReproduceI've moved newborn and organized their training in the same way many times without any trouble, so it can't happen very often.
Additional InformationIt 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+.
TagsNo tags attached.

Activities

PatrikLundell

2015-11-30 08:52

reporter   ~0033192

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.

user8971

2015-12-03 23:27

  ~0033368

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/ .

PatrikLundell

2015-12-03 23:59

reporter   ~0033370

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?

user8971

2015-12-06 09:04

  ~0033509

I guess yes, even just to see if this is somehow related to the placement of these facilities or some other weird thing.

PatrikLundell

2016-01-24 09:04

reporter   ~0034542

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).

Add Note

Note

Issue History

Date Modified Username Field Change
2015-11-30 08:37 PatrikLundell New Issue
2015-11-30 08:52 PatrikLundell Note Added: 0033192
2015-12-03 23:27 user8971 Note Added: 0033368
2015-12-03 23:59 PatrikLundell Note Added: 0033370
2015-12-06 09:04 user8971 Note Added: 0033509
2016-01-24 09:04 PatrikLundell Note Added: 0034542