Idea: Add squad delete/reassign postions via DFhack to help manage bugged squads
I have this issue with three squads now, so I'm sure I'm not the only one:
After sending squads to successfully occupy a location, they sometimes will be shown as traveling permanently instead of being emptied out the squad like expected, with you being unable to disband the squad or reassign members to it in anyway, cluttering menus with unusable squads.
Being able to reassign to empty positions or force delete squads would fix this for existing saves, even if the underlying cause is fixed at some point, and this Putnam quote about heap corruption (https://youtu.be/79J3X8ulER0?t=1073) makes me worry that frequency of new squad creation/deletion really ought to be reduced when possible and this bug sadly encourages new creation so making a tool to address it makes sense to me.
I've been doing a lot of work with squads and have a squad manip/reassign system, but its unfortunately dependent on a dfhack fork that likely won't land any time soon (imtui). The ability to make squads should be coming to dfhack shortly (once I get around to redoing a PR), and position reassignment is straightforward, so I can put this on the todo list as there's probably going to be a military module at the current rate. I haven't experimented with squad deletion but it should be doable
If anyone's interested in taking a crack at this, I have examples on how to do this kind of manipulation over here https://github.com/20k/scripts/blob/dfui/dfui_military.lua and https://github.com/20k/scripts/blob/dfui/dfui_nobles.lua