Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Modding clothes to never wear out  (Read 1750 times)

_DivideByZero_

  • Bay Watcher
  • Not to be confused with infinity
    • View Profile
Modding clothes to never wear out
« on: April 13, 2011, 02:26:01 pm »

Is this possible without making it impossible to sew any clothing? I've noticed that if I replace all instances of soft with hard in the game's files, then clothes won't wear out (to solve the problem that dwarves won't wear new ones) but I also am unable to sew clothing in the first place.
Logged
Have I now become your enemy by telling you the truth? (Gal 4:16)

Dutchling

  • Bay Watcher
  • Ridin' with Biden
    • View Profile
Re: Modding clothes to never wear out
« Reply #1 on: April 13, 2011, 03:23:52 pm »

You should make it armor. Unless [HARD] means it is armor because than I do not know :)
If it is armor though, you need to add the clothes via the uniform screen as they will not wear it by default.
Alternatively you can mod dwarves to have an extra skin layer made of cloth.
Logged

_DivideByZero_

  • Bay Watcher
  • Not to be confused with infinity
    • View Profile
Re: Modding clothes to never wear out
« Reply #2 on: April 13, 2011, 04:20:59 pm »

That's not what I'm looking for.
[SOFT] is the tag that makes clothes wear out.
[HARD] makes it not wear out, presumably.

The issue is, you cannot sew [HARD] items. Nothing appears on the clothes menu.
I wonder, can you give an item both tags?

This should be moved to the modding forum, sorry.
Logged
Have I now become your enemy by telling you the truth? (Gal 4:16)

Naryar

  • Bay Watcher
  • [SPHERE:VERMIN][LIKES_FIGHTING]
    • View Profile
Re: Modding clothes to never wear out
« Reply #3 on: April 13, 2011, 04:22:34 pm »

Make your civilians wear armor. Problem solved.

_DivideByZero_

  • Bay Watcher
  • Not to be confused with infinity
    • View Profile
Re: Modding clothes to never wear out
« Reply #4 on: April 13, 2011, 04:26:37 pm »

You can't unless you draft them all, which gets pretty tedious with large populations. Furthermore, you need armor for each and every one of them. My sites don't always have armorable metals available early on.

After some experimentation, I've concluded that you can in fact give an item of clothing both tags. I don't know if the [SOFT] tag will override the [HARD] tag though.
Logged
Have I now become your enemy by telling you the truth? (Gal 4:16)

ZachUSAman

  • Bay Watcher
    • View Profile
Re: Modding clothes to never wear out
« Reply #5 on: April 13, 2011, 05:15:01 pm »

the nude fortress is inevitable...
Logged

Jeoshua

  • Bay Watcher
  • God help me, I think I may be addicted to modding.
    • View Profile
Re: Modding clothes to never wear out
« Reply #6 on: April 13, 2011, 05:16:30 pm »

Other than making the clothes armor, therefore hard, there is no way.  The thing is that the tag for hardness doesn't just govern how it operates, but also what it's made of.

So if you modded clothes to be [HARD], you'd never be able to make clothes out of cloth, only hard things like metal.
Logged
I like fortresses because they are still underground.

Sarda

  • Bay Watcher
    • View Profile
Re: Modding clothes to never wear out
« Reply #7 on: April 13, 2011, 05:24:18 pm »

Well then, couldn't you designate cloth to be a hard material or not?
Logged
You'll have to provide warm, moist kittens at the end of each test chamber.
Dwarf Fortress:
Where 9% of your town is casualties, is good.

Jeoshua

  • Bay Watcher
  • God help me, I think I may be addicted to modding.
    • View Profile
Re: Modding clothes to never wear out
« Reply #8 on: April 13, 2011, 05:25:21 pm »

 :o ??? ::) :-\ maybe...

It could be just possible to change the tag on [MATERIAL_TEMPLATE:SILK_TEMPLATE] from [ITEMS_SOFT] to [ITEMS_HARD]

But that would also allow such things as *Silk Platemail*, which just sounds weird :/
« Last Edit: April 13, 2011, 05:28:06 pm by Jeoshua »
Logged
I like fortresses because they are still underground.

Sarda

  • Bay Watcher
    • View Profile
Re: Modding clothes to never wear out
« Reply #9 on: April 13, 2011, 05:26:46 pm »

Yeah, Toady probably hardcoded that, but still, worth trying. Or you could make a custom reaction for some sort of metal cloth.
Logged
You'll have to provide warm, moist kittens at the end of each test chamber.
Dwarf Fortress:
Where 9% of your town is casualties, is good.

Urist is dead tome

  • Bay Watcher
    • View Profile
Re: Modding clothes to never wear out
« Reply #10 on: April 13, 2011, 05:43:19 pm »

the nude fortress is inevitable...

I personally am always waiting for clothes to rot off that I may have a nudist colony. Or just confiscate them.
Logged

ral

  • Bay Watcher
  • Praying to arm_ok
    • View Profile
    • Steam Profile
Re: Modding clothes to never wear out
« Reply #11 on: April 13, 2011, 06:03:53 pm »

There's already metal cloth.... adamantine cloth. unfortunately when you make clothes out of adamantine the clothes still wear out :(

Wish there were some sort of durability token. Cloth made out of adamantine really shouldn't wear out as fast as it does, if at all....

Jeoshua

  • Bay Watcher
  • God help me, I think I may be addicted to modding.
    • View Profile
Re: Modding clothes to never wear out
« Reply #12 on: April 13, 2011, 06:05:22 pm »

Yeah but that's not [HARD] cloth, is it? The idea wasn't making clothes from metal, but making cloth hard and making clothes from THAT.

You'd probably have to forge your clothes.  And watch out for the crotch, yikes.
Logged
I like fortresses because they are still underground.