View Issue Details

IDProjectCategoryView StatusLast Update
0005812Dwarf FortressDwarf Mode -- Militarypublic2022-08-07 03:35
ReporterVideospirit Assigned ToLoci  
PrioritynormalSeveritytweakReproducibilityalways
Status acknowledgedResolutionopen 
PlatformToshiba Satellite L300DOSWindows 7 
Product Version0.34.07 
Summary0005812: Bigger than average dwarves refuse to equip big weapons
Descriptionhttp://dwarffortresswiki.org/index.php/Weapons implies bigger dwarves can equip the larger weapons in adventure mode, but dwarves refuse to do so in fortress mode. This makes the Pikedwarf skill impossible to train in fortress mode. Goblins, who are the same size as dwarves, have no problem equipping these items when they invade. Also, Dwarves seem to refuse to use Longswords 1 handed but that may have just been them being too lazy to pick up a shield.
Steps To Reproduceeither trade for or kill some foreign units for two handed swords, halberds, pikes, Mauls, or Great axes, than try to make a dwarf equip one.
Tagsbody size, equip, halberd, maul, pike, size, weapon

Relationships

related to 0000535 acknowledgedToady One Equipping weapons/armor on military is erratic 

Activities

splinterz

2012-06-25 15:13

reporter   ~0023109

testing has shown that appearance modifiers broadness and height, while changing the overall size of a dwarf, aren't taken into account when checking if weapons can or cannot be used. only the base average body size (60000 for adult dwarves) is used.


http://www.bay12forums.com/smf/index.php?topic=112093.msg3401686#msg3401686

user6

2014-11-08 11:04

  ~0030908

Is this bug still present in 0.40.15+?

Turbo2151

2018-10-21 10:30

reporter   ~0038885

Not sure if this is the right place to post but it looks like this issue is still occurring in 0.44.12. According to dwarf therapist, my military dwarf (who is trying to equip the weapon) has a size of 71610 and will not equip either a pike (req. size 62500 according to wiki), great axe (req. size 62500 according to wiki) or Maul (req. size 62500 according to wiki). They will equip a battle axe and whip when asked (which are located in the same stockpile) however when switching their weapon in the military equip screen they will put their current weapon (battle axe, whip etc) away into the stockpile but will not then pick up their new weapon rather they will go to drill without it. Specifying the weapon type further e.g. asking for them to equip a bronze maul (The maul I currently have is Bronze) and changing to exact match doesn't change the outcome conversely specifying only the weapon type with partial match results in the same outcome.

Loci

2019-01-07 13:15

viewer   ~0039092

Thanks for the update!

PatrikLundell

2020-04-09 08:01

reporter   ~0040446

0.47.04. While not the same bug, it's an issue with the bug: I just had a (fortress) migrant skilled in pike use, and assuming the bug hasn't magically fixed itself, the weapon can't be used by the dorf (and I even have one in the spoils from the first necro attack...).

enemy-of-christ

2022-02-08 05:21

reporter   ~0041224

same as https://www.bay12games.com/dwarves/mantisbt/view.php?id=11810
which is a short self-contained example that is easy to test, and shows that equipping is mostly based on the sum/average of all cast's maximum BODY_SIZE with age.
However there is also a small range of BODY_SIZEs where the equipping ability appears to be based on another as yet unknown factor.

Tehmyne

2022-08-07 03:35

reporter   ~0041291

I was playing around with EOC's example above, and after a bunch of testing, there is a pretty easy workaround to this bug (sorry if this is already common knowledge.) The 2 handed check seems to trigger purely off of the last BODY_SIZE you have under that caste, checking whether it is above the 62500 needed for weapons like the 2H Sword, Maul, and Pike. So, after your BODY_SIZE modifiers you want for your dwarves, you can put [BODY_SIZE:2000:0:62500] where (BODY_SIZE|<year>|<day>|<average size>).

This triggers your average dwarf to grow to about 62500 at the pointless age of 2000 years old which, let's be honest, if they made it that far, maybe they deserve the height increase. But it also means that it shouldn't actually change anything about the game with the singular exception that now all dwarves of the caste you've edited can now use multigrasp on these large weapons (unless you somehow get a 2000-year-old dwarf, which I'm pretty sure is impossible at current state). This change does seem to work in saved games too. Example based off of EOC's example below:

    [CASTE:FEMALE]
        The gender tag lets it know how breeding works.
        [FEMALE]
        [MULTIPLE_LITTER_RARE]
        To add beards, put square brackets around the following:
        BODY_DETAIL_PLAN:FACIAL_HAIR_TISSUE_LAYERS
            [BODY_SIZE:0:0:3000]
            [BODY_SIZE:1:168:7500]
            [BODY_SIZE:5:0:15000] These six sizes are normal aging size increases.
            [BODY_SIZE:12:0:45000] I added a few more for my own personal flavor, but they function the same as the basic 3.
            [BODY_SIZE:16:0:60000]
            [BODY_SIZE:90:0:50000]
            [BODY_SIZE:2000:0:62500] This is the line that makes 2 handed weapons useable.
    [CASTE:MALE]
        [MALE]
        [SET_BP_GROUP:BY_TYPE:LOWERBODY][BP_ADD_TYPE:GELDABLE]
        [BODY_DETAIL_PLAN:FACIAL_HAIR_TISSUE_LAYERS]
            [BODY_SIZE:0:0:3000]
            [BODY_SIZE:1:168:7500]
            [BODY_SIZE:5:0:15000]
            [BODY_SIZE:12:0:45000]
            [BODY_SIZE:16:0:60000]
            [BODY_SIZE:90:0:50000]
            [BODY_SIZE:2000:0:62400] The size number here (62400 instead of 62500) means no male dwarves can use 2H weapons, their caste won't allow it.

There -does- still seem to be a glitch here regardless of my workaround: when the flag / trigger enables multigrasp for larger weapons, it does so regardless of how big your dwarf actually is. I.E. it's just a caste check, having no data taken from any individual dwarf. So Shortast McDwarf who's body size is only 30000 won't be able to wield a standard battle axe correctly (I think he might have to 2 hand it?) but he can sure equip that massive two-handed sword (again, multigrasped.)

After looking at this a bit further, I actually think this problem was already happening with smaller weapons and minuscule dwarves. My 2-year-old dwarf (who for the purposes of testing magically became an adult, congrats kid) who's size is 6760 right now can apparently two-hand that battle axe and two-handed sword as well, because the 2 handed check has triggered for all weapons under 62500 size.

Add Note

Note

Issue History

Date Modified Username Field Change
2012-04-14 11:54 Videospirit New Issue
2012-06-25 15:13 splinterz Note Added: 0023109
2012-06-27 05:31 splinterz Tag Attached: equip
2012-06-27 05:31 splinterz Tag Attached: pike
2012-06-27 05:31 splinterz Tag Attached: size
2012-06-27 05:31 splinterz Tag Attached: weapon
2012-06-27 05:31 splinterz Tag Attached: body size
2012-06-27 05:31 splinterz Tag Attached: halberd
2012-06-27 05:31 splinterz Tag Attached: maul
2013-09-27 11:19 user6 Relationship added related to 0000535
2014-11-08 11:04 user6 Note Added: 0030908
2014-11-08 11:04 user6 Assigned To => user6
2014-11-08 11:04 user6 Status new => feedback
2018-10-21 10:30 Turbo2151 Note Added: 0038885
2019-01-07 13:15 Loci Note Added: 0039092
2019-01-07 13:15 Loci Assigned To user6 => Loci
2019-01-07 13:15 Loci Status feedback => acknowledged
2020-04-09 08:01 PatrikLundell Note Added: 0040446
2022-02-08 05:21 enemy-of-christ Note Added: 0041224
2022-08-07 03:35 Tehmyne Note Added: 0041291