Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Another newb modder requests help!  (Read 1107 times)

helmacon

  • Bay Watcher
  • Just a smol Angel
    • View Profile
Another newb modder requests help!
« on: August 26, 2012, 05:54:17 pm »

sorry to clutter up the board but ive tried for an hour and i cant figure this out.

Im working with adventure mode reactions and ive run into problems.
I want to make a reaction to make leather armor in adventure mode, but i cant figure out how to define the regnant, the leather.
in my other reactions, specifically tanning the leather, it only defines that the object must be unrotten, and a body component that has the [HAS_MATERIAL_REACTION_PRODUCT: TAN_MAT] tag, and as only skin can have all that, you can only use skin. However since leather has no Material Reaction Product tag i can find, im at a loss as of how to define the leather.

If someone could post a working reaction for it i would be very appreciative.
Logged
Science is Meta gaming IRL. Humans are cheating fucks.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Another newb modder requests help!
« Reply #1 on: August 26, 2012, 06:31:14 pm »

[REAGENT:A:1:NONE:NONE:NONE:NONE][USE_BODY_COMPONENT][UNROTTEN]
      [HAS_MATERIAL_REACTION_PRODUCT:TAN_MAT]
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Another newb modder requests help!
« Reply #2 on: August 26, 2012, 06:42:47 pm »

Acually SKIN has a MATERIAL_REACTION_PRODUCT on it that targets the LEATHER material in the creature Dog skin is linked to Dog leather.

Meph's reagent will grab any SKIN material (because SKIN_TEMPLATE has TAN_MAT "MRP")
Now it is up to you to use:

[PRODUCT:100:1:SKIN_TANNED:NONE:GET_MATERIAL_FROM_REAGENT:A:TAN_MAT]

But in adv mode you still have to ref SKIN_TANNED as an reagent for any other reaction that will make stuff (since vanilla does not support crafting atm)
Logged

mastahcheese

  • Bay Watcher
  • Now with 20% less sanity and trans fat!
    • View Profile
Re: Another newb modder requests help!
« Reply #3 on: August 26, 2012, 06:51:21 pm »

This is what what I use to tan skin, basically what meph and hugo said

Spoiler (click to show/hide)

As for leather armor,

Spoiler (click to show/hide)

also, I figured I might as well add a backpack reaction, since they tend to be so annoying to find.

Spoiler (click to show/hide)

Hope that helps!
Logged
Oh look, I have a steam account.
Might as well chalk it up to Pathos.
As this point we might as well invoke interpretive dance and call it a day.
The Derail Thread

helmacon

  • Bay Watcher
  • Just a smol Angel
    • View Profile
Re: Another newb modder requests help!
« Reply #4 on: August 26, 2012, 06:57:25 pm »

thanks, i tried meph's reaction and it wants to make it out of skin, and subsequently crashes the game since it was the same as my "Tan Hide" reaction. (would it have crashed anyway?)

Anyways, thanks for taking the time to respond anyways meph, and thanks to everyone for the immediate and helpful answers.
Logged
Science is Meta gaming IRL. Humans are cheating fucks.

helmacon

  • Bay Watcher
  • Just a smol Angel
    • View Profile
Re: Another newb modder requests help!
« Reply #5 on: August 26, 2012, 07:23:54 pm »

umm....
Although your reactions seem to work right, when i try to make something with my leather, it sorta, crashes the game.

Why? the reaction shows up in adventuremode and i can make leather, and the other reactions show up fine as well, but when i try to use the leather to make something, i get a message, "Dwarf Fortress.exe has encountered a problem and needs to close. we apologise for ...bla bla bla send error report."
is this a mistake on my part?


(also, why do you use B instead of A in your reactions?)
Logged
Science is Meta gaming IRL. Humans are cheating fucks.

mastahcheese

  • Bay Watcher
  • Now with 20% less sanity and trans fat!
    • View Profile
Re: Another newb modder requests help!
« Reply #6 on: August 26, 2012, 07:43:35 pm »

I use B instead of A when I tried to change one reaction to another a long time ago, I really don't know why I changed A and not B, guess cause I'm lazy.

As for it crashing the game, I really don't have the slightest clue, I've never had a problem with it.

Just went into arena and tested with dog leather, no crash.
No idea what happened to your game, sorry.
Logged
Oh look, I have a steam account.
Might as well chalk it up to Pathos.
As this point we might as well invoke interpretive dance and call it a day.
The Derail Thread

helmacon

  • Bay Watcher
  • Just a smol Angel
    • View Profile
Re: Another newb modder requests help!
« Reply #7 on: August 26, 2012, 08:00:35 pm »

I did some more testing and the odd thing is i can still make a backpack, but it still crashes when i make armor. The reactions look to be pretty much in the same format, but... still, thanks for responding, it might just be my computer spazzing out..
Logged
Science is Meta gaming IRL. Humans are cheating fucks.

helmacon

  • Bay Watcher
  • Just a smol Angel
    • View Profile
Re: Another newb modder requests help!
« Reply #8 on: August 26, 2012, 08:48:48 pm »

Alright, more testing and when i finaly thought to check the error log i found this

*Error finalising reaction
Make_Leather_Armor unrecognized item ITEM_LEATHER_ARMOR.

any ideas what the tag could actually be? its not misspelled i triple checked.
Logged
Science is Meta gaming IRL. Humans are cheating fucks.

smirk

  • Bay Watcher
    • View Profile
Re: Another newb modder requests help!
« Reply #9 on: August 26, 2012, 08:56:16 pm »

ITEM_LEATHER_ARMOR

mastahcheese's reaction up there specifies ITEM_ARMOR_LEATHER. Could be yer problem.
Logged
When i think of toady i think of a toad hopping arround on a keyboard
also
he should stay out of the light it will dry out his skin
his moist amphibian skin
.

helmacon

  • Bay Watcher
  • Just a smol Angel
    • View Profile
Re: Another newb modder requests help!
« Reply #10 on: August 26, 2012, 09:04:52 pm »

well, um yes, i actually ment that, its just my DF is running on a different CPU and i dident copy paste, and i was in a hurry and ended up putting it backwards. So, ya, maybe i should have checked my spelling on my post. sorry.
Logged
Science is Meta gaming IRL. Humans are cheating fucks.

mastahcheese

  • Bay Watcher
  • Now with 20% less sanity and trans fat!
    • View Profile
Re: Another newb modder requests help!
« Reply #11 on: August 26, 2012, 09:17:32 pm »

But in the reaction, it does say ITEM_ARMOR_LEATHER, right? I don't get why the backpack works and the armor doesn't, it's the exact same one that I use.
Logged
Oh look, I have a steam account.
Might as well chalk it up to Pathos.
As this point we might as well invoke interpretive dance and call it a day.
The Derail Thread

smirk

  • Bay Watcher
    • View Profile
Re: Another newb modder requests help!
« Reply #12 on: August 26, 2012, 09:54:12 pm »

hmm... maybe try ITEM_ARMOR:ITEM_ARMOR_LEATHER rather than just ARMOR:ITEM_ARMOR_LEATHER? That's how the name shows up in item_armor.txt in the raws, at any rate. Or maybe ye just need to gen a new world? That is sometimes a thing, even when it normally shouldn't be.
Logged
When i think of toady i think of a toad hopping arround on a keyboard
also
he should stay out of the light it will dry out his skin
his moist amphibian skin
.

mastahcheese

  • Bay Watcher
  • Now with 20% less sanity and trans fat!
    • View Profile
Re: Another newb modder requests help!
« Reply #13 on: August 26, 2012, 11:16:42 pm »

You shouldn't need it to say ITEM_ARMOR:ITEM_ARMOR_LEATHER because I got it to work on mine without it. I think it's a thing that needs a new world for no reason. When I tested it it was in the arena, so you know it basically spawns a new mini-world for that purpose, so I think smirk got it right.
Logged
Oh look, I have a steam account.
Might as well chalk it up to Pathos.
As this point we might as well invoke interpretive dance and call it a day.
The Derail Thread