Dwarf Fortress

Dwarf Fortress

Ocen: 32
Military Uniforms
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Rozmiar pliku
Zamieszczono
Zaktualizowano
50.966 KB
21 września 2023 o 7:16
24 września 2023 o 7:13
Listy zmian: 2 ( zobacz )

Zasubskrybuj, aby pobrać
Military Uniforms

Opis
When making clothes for your military, civilians will often take them for themselves. This mod fixes that by making military uniform versions of certain pieces of clothing (hoods, cloaks, capes, chausses, and socks). These uniform items have an armor level of 1, making civilians ignore them as clothing. This allows these uniform items to be made from a certain special metal without it being immediately claimed by a random civilian, and should remove normal clothing wear on these very expensive items. This mod also allows chainmail hoods to be made, and fixes an issue with boot and gauntlet assignments.


Check out my other Dwarf Fortress mods: My Dwarf Fortress Workshop

If you enjoy my mods, consider sending me a donation on Ko-fi[ko-fi.com].
My mods will always be freely available, but donations allow me to have time and energy to work on them and provide support.
Komentarzy: 24
Droseran  [autor] 4 stycznia o 15:24 
Yes, that is an issue, and currently that cannot be done. Once layered graphics are set by vanilla creature graphics, they're untouchable. The only way to add the layered graphics to this mod would be to duplicate the layered graphics raws and have this mod load before vanilla creatures graphics. The issue with this is that it's a modding race condition - whichever mod wants to add their wearable items has to be the first one to load, and all others are ignored.

For this reason, I've not touched the wearable graphics, and honestly forgot about it while waiting for a modular layered graphics system for modding.
Bebop Cola 4 stycznia o 13:24 
Something I just noticed is that the items themselves don't appear on the characters when they're wearing them.

I believe they need to be added to the clothing layering per playable race (Humans, Elves, Dwarves, etc) in the graphics files. I.e.
"Dwarf Fortress\data\vanilla\vanilla_creatures_graphics\graphics"

I've not made the necessary changes in my own game yet, but I expect that's the issue.
Jeza 15 marca 2024 o 5:18 
EDIT :

Ok no some already exist that I need to modify , and the new uniforms are added.
Jeza 15 marca 2024 o 5:16 
Ah ok thank you it makes sense now :)
So from my very limited understanding of DF modding I need to copy the content of the entity_military_uniforms in your mod, all those lines that are [ARMOR:ITEM_ARMOR_.....] and paste them in the [ENTITY:MOUNTAIN] section of the entity_default file, did I get that right ?
Droseran  [autor] 15 marca 2024 o 4:52 
Civilization access to these items is determined by those armor tokens in the entity_military_uniforms.txt file.
Droseran  [autor] 15 marca 2024 o 4:50 
Oh, sorry, I'm used to working on my other mods that use custom reactions. I forgot that armor, clothing, and weapons use the vanilla jobs, which are hardcoded. On that note, these should always be available in the clothes workshop, or forge for the metal chain versions.
Jeza 15 marca 2024 o 2:31 
So I wanted to see if I could edit the world files to add the reactions that are missing but I couldn't find them in your mod files.

In the mod folder there is only one entity file called entity_military_uniforms and it only has [ARMOR:ITEM_ARMOR_.....] lines in it not a single [PERMITTED_REACTION line.

I just redownloaded it 5 min ago and the file I checked comes from the workshop folder 3038927005/objects, there are only these files :
entity_military_uniforms.txt
item_armor.txt
item_gloves.txt
item_helm.txt
item_pants.txt
item_shoes.txt

The only other subfolder is graphics.

There isn't a single line with [PERMITTED_REACTION] in any of the files in the mod's folder so I'm a bit lost ...
Jeza 14 marca 2024 o 6:42 
Oh I didn't think to say, yes I'm playing a dwarf civ, I also just saw a visitor wearing a uniform hood so they're definitively in the world.
Thank you for your help I'll go check the other mods to try and find the culprit and rearrange the load order.
Droseran  [autor] 14 marca 2024 o 4:56 
If you are playing with the vanilla Dwarf civilization, it sounds like another mod may be altering it and ends up removing the recipes added by this mod. Try making this mod last in the loading list or, if you find which of the mods is cutting the Dwarf entity, place that mod directly after the vanilla mods.

If you are playing a modded civilization, you can copy the [PERMITTED_REACTION: lines from the entity file of this mod into the entity file of your modded civilization to add the recipes.
Jeza 14 marca 2024 o 3:57 
I don't know what I did wrong, I see the uniform armor pieces in the stockpiles details but when I try to craft them they are nowhere to be found, not in the specific workshops (ex leather workshop I don't find the uniform cloak) not when trying to create a work order.
I play with DFHack, don't know if it could interfere ? Or maybe I didn't place the mod in the right place in the load order ? Should I place it high or low ?

Also is there a way for me to add the workshop reactions by editing my world files ?
I would be grateful for any help.