Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Reaction_Smelter modding.  (Read 1042 times)

Foamybeard

  • Bay Watcher
  • Praise KEK in all things.
    • View Profile
Reaction_Smelter modding.
« on: September 16, 2012, 11:33:52 pm »

Just wondering, is it possible to mod the Reaction_Smelter file to be able to spit out leather of a specific creature, and sand/clay that I can use to make glass/earthenware/stoneware items?
Logged
Dwarf Fortress Immortality: Cask of Amontillado-ing all your dwarves.
I'm trying to figure out how creeping eyes vomit despite not having a mouth.

Doren

  • Bay Watcher
  • On closer inspection, that dog is a dwarf
    • View Profile
Re: Reaction_Smelter modding.
« Reply #1 on: September 17, 2012, 12:34:59 am »

yes

Foamybeard

  • Bay Watcher
  • Praise KEK in all things.
    • View Profile
Re: Reaction_Smelter modding.
« Reply #2 on: September 17, 2012, 01:04:18 am »

Yes to both?

Could I have help with the code, please?
Logged
Dwarf Fortress Immortality: Cask of Amontillado-ing all your dwarves.
I'm trying to figure out how creeping eyes vomit despite not having a mouth.

profit

  • Bay Watcher
  • Finely Crafted Engravings... Or it didn't happen.
    • View Profile
Re: Reaction_Smelter modding.
« Reply #3 on: September 17, 2012, 06:20:08 am »

Please do not take this as a brush off reply, It is more I do not know for certain but I think they are detailed in this modders resource that is on my list.    I do know this little tidbit from modding things myself though:   #1 make sure you add your reactions to your entity.txt file and #2 Make sure you generate a new world after you add them in..

http://www.bay12forums.com/smf/index.php?topic=113225.0
Logged
Mods and the best utilities for dwarf fortress
Community Mods and utilities thread.

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Reaction_Smelter modding.
« Reply #4 on: September 17, 2012, 12:47:16 pm »

Besides the link Profit gave you,
http://dwarffortresswiki.org/index.php/Reactions#Anatomy_of_a_reaction
is also an excellent resource.

If you look at those resources and then ask more specific questions, or post your attempt at a modded reaction, people will be happy to help.  Welcome to modding!

I don't guarantee this works because I just threw it together quickly, but what you can do is compare it to the "Anatomy of a Reaction" until you understand the structure, and run with it from there :)

Code: [Select]
[REACTION:MAKE_COW_LEATHER]
[NAME:Turn a rock into cow leather]
[BUILDING:SMELTER:NONE]
        [REAGENT:A:1:BOULDER:NONE:NONE:NONE][WORTHLESS_STONE_ONLY]
[PRODUCT:100:1:SKIN_TANNED:NO_SUBTYPE:CREATURE_MAT:COW:LEATHER]
[SKILL:LEATHERWORK]

add to entity
   [PERMITTED_REACTION:MAKE_COW_LEATHER]
« Last Edit: September 17, 2012, 12:49:23 pm by smakemupagus »
Logged

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Reaction_Smelter modding.
« Reply #5 on: September 17, 2012, 02:14:44 pm »


p.s.  Of all the things you asked, it's all possible and not too hard, but Sand will be the trickiest, because of two things (1) putting products in containers is maybe not intuitive and (2) you have to learn about Dwarven units of measure to work with Powders (or Fluids or Bars)

[REACTION:MAKE_SAND]
[NAME:turn rock to sand]
   [BUILDING:SMELTER:NONE]
        [REAGENT:A:1:BOULDER:NONE:NONE:NONE][WORTHLESS_STONE_ONLY]
        [REAGENT:B:1:BOX:NONE:NONE:NONE][BAG][EMPTY][PRESERVE_REAGENT]
        [PRODUCT:100:1:POWDER_MISC:NONE:INORGANIC:SAND_TAN][PRODUCT_TO_CONTAINER:B][PRODUCT_DIMENSION:150]
   [SKILL:STONECRAFT]


One thing I'm not sure about here is whether or not you want that Dimension=150, or a different value or not at all.  Maybe someone else will jump in and say.  Otherwise you'll just have to experiment.  Good luck!