Shaped Gloves

If you liked this item, please rate it up on Steam Workshop page.

Author: Dawnmist

Last revision: 18 Jan, 2023 at 11:18 UTC

File size: 69.63 KB

On Steam Workshop

Description:

Allows military dwarves to change into armored gauntlets despite wearing gloves or mittens.

Please note: I had originally misunderstood one of the complex clothing combination rules. I’ve updated this mod as a result of being informed about how that rule worked. 🙂

The game by default permits dwarves to wear:

  • 2 pairs of gloves with 1 pair of mittens
  • 1 pair of gloves with 1 pair of gauntlets
  • 1 pair of gauntlets with 1 pair of mittens

If a dwarf is normally wearing gloves + mittens they will fail to be able to put their armor gauntlets on, because they’re not allowed the bulk of all 3 items together.

This mod is based on the same game mechanic of marking clothing items as shaped so that only one of a set of items can be worn at the same time that is used in the Shaped Shoes/Boots mod at https://steamcommunity.com/sharedfiles/filedetails/?id=2908215621. The game already defines gauntlets as SHAPED. This mod marks mittens as also SHAPED so that the dwarves can wear mittens OR gauntlets but never both at once. That results in forcing them to take their mittens off before trying to put their gauntlets on, allowing them to succeed at wearing their gauntlets even when wearing gloves as well.

Note: It does however stop dwarves from being able to wear gauntlets + mittens at the same time.

This is because that would be two shaped items on the same body part. It’s a trade off as to whether you’d prefer them to be able to reliably put on their gauntlets at the cost of losing one of the valid clothing combinations or not, which is why I’ve split this to its own mod instead of adding it to Shaped Shoes/Boots.

I’m continuing to look into whether there is anything better that can be done that won’t lose a clothing combination while still making equipping gauntlets more reliable.

FAQ:

Can I add this mod to an existing save?

Unfortunately, no. Mods can only be added to a save at world generation time. However, you CAN directly modify the game files yourself to apply the same changes which will then apply to all worlds you are playing.

The benefit when the changes are done as a mod is that game updates won’t overwrite the changes, since they’re defined in a separate file. The downside is that you can only add a mod to a save when first generating the world. Editing the game files directly lets you add the change to existing saves, but if the game updates or you run steam’s "validate files" you’ll need to redo the changes.

Applying the change manually can be a good way to get started on your current world, then use the mod for any future worlds. That way when you finish with the current game you would no longer need to keep modifying the game files each update for your future worlds.

How to apply the edits manually so they apply to an existing save:

  • Open the file "Dwarf Fortress/data/vanilla/vanilla_items/objects/item_gloves.txt"
  • Add the "[SHAPED]" tag to the end of the ITEM_GLOVES:ITEM_GLOVES_MITTENS definition.

[ITEM_GLOVES:ITEM_GLOVES_MITTENS] [NAME:mitten:mittens] [LAYER:COVER] [COVERAGE:150] [LAYER_SIZE:15] [LAYER_PERMIT:20] [MATERIAL_SIZE:1] [SOFT] [LEATHER] [STRUCTURAL_ELASTICITY_WOVEN_THREAD] [SHAPED]