[Mod Request] Naugahide (Generic Leather)

Started by Havan_IronOak, July 01, 2016, 09:59:44 AM

Previous topic - Next topic

Havan_IronOak

I've noticed that my leather storage room is getting cluttered with a lot odd leather scraps. No one type has really enough to do anything useful with. I'd like to have a means of turning these oddments into a more generic leather (perhaps with a mix of their qualities) that would be suitable for Trade garments or even for use in making furniture.

Forgive me if this is redundant. I do recall something like this a few releases ago but couldn't find a workable version when I searched for it.

BlackSmokeDMax

#1
Quote from: Havan_IronOak on July 01, 2016, 09:59:44 AM
I've noticed that my leather storage room is getting cluttered with a lot odd leather scraps. No one type has really enough to do anything useful with. I'd like to have a means of turning these oddments into a more generic leather (perhaps with a mix of their qualities) that would be suitable for Trade garments or even for use in making furniture.

Forgive me if this is redundant. I do recall something like this a few releases ago but couldn't find a workable version when I searched for it.

Sounds good. Although think I'd call it "patchwork leather", think that might suit it a bit better than a name that is really for fake leather. I'd even go so far as to say make the qualities the same as either the lowest item used in it's creation or to make things easier, just the lowest value of any leather in game. Being that you are able to use scraps that would be otherwise unusable that would seem a decent compromise.

edit: of course for good comedic value, you could also call it "Fine Corinthean Leather" and reference Ricardo Montalban somehow!

Raccoon

Only make a new Item with "Leather Scrap" and a new Material with "Patchwork Lether" and 2 Recipes GG.

Havan_IronOak

Quote from: BlackSmokeDMax on July 01, 2016, 12:55:12 PM
...think I'd call it "patchwork leather", think that might suit it a bit better than a name that is really for fake leather. ...

edit: of course for good comedic value, you could also call it "Fine Corinthean Leather" and reference Ricardo Montalban somehow!

Naugahide was MY generations joke already. Ever see the Commercials featuring a "Nauga?"  Course I do like your Fine Corinthian leather idea too.  (as well as using the lowest stats)

1000101

Creating defs dynamically at runtime while in a game is not recommended.  There are lots of dynamically generated defs (leather itself is dynamically generated), but that is done when the RimWorld starts, not within a game itself.  Trying to do it while in a game presents many challenges including but not limited to:  defs are not saved in the save file, only references to them (a special handler would be needed); order-of-operations when saving/loading so that the "special handler" would execute before any references to the defs are loaded; cleaning the per-game generated defs from the database to prevent "leaking" into other games (ie, load colony A then you decide to load colony B); and more.

Not impossible, but not practical.  Raccoon had the best idea with (any) leather -> leather strips (specific def) -> patchwork leather (specific def).
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

RawCode

(any) leather crafted into hardener leather with a bit better stats and everyone happy and(or) special handler for butcher job that prevent it from dropping specific leather types.

first case is XML only
second case is DLL related

runtime generated defs is pain and suffering, it's possible to manage such types and handle such defs properly, but, this will require to hook lots of internal methods.

only viable way is "callgate" type that is not runtime generated and stores references and data for other types.

dismar

the next version of my mod has a small recipe in it for blended leathers. All it does is take different type of leathers and make a new one. mainly because of me being tired of having tons of different types of leathers not being used.

I can make it into a small mod if there is interest


Havan_IronOak

Thanks for looking into this.

I'd love to have a way to get rid of the odd bits of leather and I'd accept a common "patchwork leather" style designator with some simple lowest common denominator stats that are fixed.