DFHack / dfhack

Memory hacking library for Dwarf Fortress and a set of tools that use it
Other
1.87k stars 475 forks source link

Refuse entry of non-exileable dwarves #1444

Open glenmack opened 5 years ago

glenmack commented 5 years ago

This is related to the bug where you cannot exile Dwarf because child is not present.

Can you check migrants before arrival for only adult children/only children in fort? If you can refuse entry/spawning of migrants with absent children, you can prevent having non-exilable dwarves.

BenLubar commented 4 years ago

df-ai has special handling for a bug where immigrant mothers would forget they brought their babies and only carry them after a save/load, so it might be better to force the children to appear in the map rather than trying to prevent the parents from showing up.

https://github.com/BenLubar/df-ai/blob/36489989819947bfd1c67823ae10fdecd94a1c2a/population.cpp#L190-L206