bodyswap is refusing to take control of creatures #5962
Description
Hi so im using BETA DFhack and the Newest OF DF. in adventure mode wanted to take over a dragon or a wolf aka an animal. but this error came.
gui/sandbox
Command finished successfully
bodyswap
...teamapps/common/Dwarf Fortress/hack/scripts/bodyswap.lua:37: Cannot invoke field unit.create_nemesis(): invalid argument count.
stack traceback:
[C]: in method 'create_nemesis'
...teamapps/common/Dwarf Fortress/hack/scripts/bodyswap.lua:37: in global 'createNemesis'
...teamapps/common/Dwarf Fortress/hack/scripts/bodyswap.lua:114: in global 'swapAdvUnit'
...teamapps/common/Dwarf Fortress/hack/scripts/bodyswap.lua:143: in local 'script_code'
...team\steamapps\common\Dwarf Fortress\hack\lua\dfhack.lua:1117: in function 'dfhack.run_script_with_env'
(...tail calls...)
[C]: in field 'runCommand'
...team\steamapps\common\Dwarf Fortress\hack\lua\dfhack.lua:1160: in upvalue '_run_command'
...team\steamapps\common\Dwarf Fortress\hack\lua\dfhack.lua:1164: in function 'dfhack.run_command_silent'
[C]: in field 'hideGuard'
...apps/common/Dwarf Fortress/hack/scripts/gui/launcher.lua:1148: in function <...apps/common/Dwarf Fortress/hack/scripts/gui/launcher.lua:1126>
[C]: in field 'on_submit'
...ommon\Dwarf Fortress\hack\lua\gui\widgets\edit_field.lua:44: in method 'onInput'
...ommon\Dwarf Fortress\hack\lua\gui\widgets\edit_field.lua:214: in function 'gui.widgets.edit_field.onInput'
...)\Steam\steamapps\common\Dwarf Fortress\hack\lua\gui.lua:862: in function <...)\Steam\steamapps\common\Dwarf Fortress\hack\lua\gui.lua:856>
(...tail calls...)
...)\Steam\steamapps\common\Dwarf Fortress\hack\lua\gui.lua:1119: in function <...)\Steam\steamapps\common\Dwarf Fortress\hack\lua\gui.lua:1103>
[C]: in ?
i tried gui/sandbox to take control or assume control and press ESC key and then game crashed.
Activity
ab9rf commentedon Sep 21, 2026
There is no current DFHack beta, so I do not know what you mean by that.
This bug is already fixed in development, see DFHack/scripts#1608; the fix will be reflected in the next release.
jefgrg commentedon Sep 21, 2026
okay thanks