View Issue Details

IDProjectCategoryView StatusLast Update
0012804Dwarf FortressAdventure Mode -- Combatpublic2024-04-21 10:26
Reportermaster_spike Assigned To 
PrioritynormalSeverityminorReproducibilitysometimes
Status newResolutionopen 
PlatformWindowsOSWindowsOS VersionWindows 11 Home
Summary0012804: Sheathing while weapon is embedded in enemy and then wrestling the weapon back from them leads to weird behaviour
DescriptionIf I say for example hack an enemy in the lower body with an axe while im holding a battle axe and shield, and it gets embedded, and I then sheathe the shield using 'q', use the off-hand to grab the axe in wrestling mode and then disengage, I will then appear to be holding the axe in my off hand. Sheathing the weapons again using 'q' and unsheathing will reveal 3 messages (pull out axe, pull out shield, and then "no free hand for axe"). Checking inventory will then reveal the axe is both in the hand and also strapped to the upper body. If I drop the axe from the hand, it will not be able to be picked up.
Steps To Reproduce1) fight with someone using an axe and shield. Stab them in the lower body until a strike embeds in the wound.
2) sheathe shield using 'q'
3) using the wrestling interface, grab the enemy by the axe that is embedded in them.
4) step away from the enemy.
5) sheathe again and then unsheathe so that you get 3 log messages - two for the pulling out of the axe and shield, and 1 for not having a free hand for the axe.
6) check inventory - here the first part of the bug manifests, a seeming "duplication" of the item. One of the "copies" will be in the hand, and the other will be strapped to upper body.
7) drop the axe from the hand slot.
8) attempt to pick up the item using 'g' (there wont be an axe to pick up) - hovering over the tile will show that an axe is there, but it wont be rendered on the ground and cant be picked up.

Ideally this should be tested with a character who has very high combat skills so that the steps are all successful.
Additional InformationInspecting the data using DFHack gui/gm-editor, after dropping the axe it can not be found in the "IN_PLAY" list of items, even though it is in the "ALL_ITEMS" list. Its coordinates will be in the place it was dropped at, and it has the "on_ground" flag set.

Loading and re-loading the save, the item no longer appears listed in the "items on tile" text box when hovering over the tile, but it is still in the all items list with the same coordinates and flags etc. A workaround to recover the item is to use the dfhack gm-editor to put it in a container's item list (like a backpack) then to travel on the overworld map for a bit, then stop.
Tagsadventure mode, combat, interaction, invisible, item

Activities

There are no notes attached to this issue.

Add Note

Note

Issue History

Date Modified Username Field Change
2024-04-20 04:38 master_spike New Issue
2024-04-21 10:26 MirrorHall_Clay Tag Attached: adventure mode
2024-04-21 10:26 MirrorHall_Clay Tag Attached: combat
2024-04-21 10:26 MirrorHall_Clay Tag Attached: item
2024-04-21 10:26 MirrorHall_Clay Tag Attached: invisible
2024-04-21 10:26 MirrorHall_Clay Tag Attached: interaction