dfhack icon indicating copy to clipboard operation
dfhack copied to clipboard

unknown job 242 spam in dfhack window

Open henkmet opened this issue 4 years ago • 3 comments

My captain of the guard is interrogating and this seems to cause 'unknown job 242' spam repeatedly. Did the job number change? I'm using dfhack-twbt 0.47.05-10 from archlinux aur

henkmet avatar Dec 01 '21 14:12 henkmet

What DFHack version is that? You can run "help" in the DFHack console to check

lethosor avatar Dec 01 '21 15:12 lethosor

That's 0.47.05-r1

henkmet avatar Dec 01 '21 16:12 henkmet

It appears that while LaborManager was updated to recognize jobs 241-243, AutoHauler and AutoLabor were never updated accordingly. They use pretty much the exact same code (it looks like one of them was copy/pasted to the others at some point), so fixing it should be straightforward.

quietust avatar Dec 01 '21 22:12 quietust

Seems related to #1601

myk002 avatar Oct 29 '22 04:10 myk002

Fix will be to add "OTHER" three times to the end of the big array in autolabor.cpp

myk002 avatar Nov 15 '22 16:11 myk002

Working on this now. Will also fix autohauler because it has the same issue. I've been putting off refactoring this smelly mass of duplicated code because DF 2022 will almost certainly make these three plugins obsolete

ab9rf avatar Nov 15 '22 19:11 ab9rf