Closed Tharn closed 6 years ago
Is this the only setting with an issue? Do you happen to know when DF introduced this setting? The stockpiles plugin might predate it.
Yeah, I tried the others and this seems to be the only one. No idea when it was added, but I never noticed it before now. Must be a 0.44 thing at least?
The "usable" and "unusable" flags for the Weapon stockpile section have been in Dwarf Fortress since nearly forever - they existed back in 0.28.181.40d, and they even existed in 0.23.130.23a with slightly different names (Local/Foreign).
Good to know. Looking at StockpileSerializer, it appears to handle these flags for weapon and armor stockpiles. I'm not sure if the issue is with loading them or saving them.
Fix merged (#1311)
When saving and loading weapons and armor stockpiles, I noticed that the
usable
andunusable
options for stockpiles are not copied along with the rest, resulting in empty stockpiles until I'd gone and fixed them by hand.usable
andunusable
are only retained if you create a stockpile and later load stockpile settings of the same type, i.e. weapons -> weapons. For all other combinations, loading a stockpile setting renders the stockpile inactive.The extra options of
empty cages
,empty animal traps
andprepared food
all transfer okay.