Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Help modding reactions to craft things differently  (Read 1006 times)

pulsusego

  • Bay Watcher
    • View Profile
Help modding reactions to craft things differently
« on: June 16, 2012, 02:12:42 pm »

Okay, so I know you can mod the "reaction_smelter.txt" file to make the smelting of steel, etc. cost nothing, and use no fuel, things like this. But I'm wondering, is there a way to do something similar with, say, a craftdwarve's workshop? or a metalsmith's shop? I searched through the game files but I can't find anything relating to it. If anyone has any information it'd be much apperciated. Thanks in advance~ :)
Logged
I got a high master!!!.... animal caretaker... ****.

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Help modding reactions to craft things differently
« Reply #1 on: June 16, 2012, 02:23:26 pm »

nope, those are hardcoded. You can add new custom reactions to: KILN, SMELTER, TANNER, KITCHEN, QUERN, MILLSTONE, STILL, CRAFTSMAN, SOAP_MAKER, SCREW_PRESS

but there is no way to alter the vanilla workshop reactions. just the smelter, and even then a good deal of its reactions are self generated
Logged

pulsusego

  • Bay Watcher
    • View Profile
Re: Help modding reactions to craft things differently
« Reply #2 on: June 16, 2012, 02:27:43 pm »

Hrm, how about this. I've got steel set to this to make the performing of !!SCIENCE!! easier;

[REACTION:FREE_STEEL]
[NAME:create steel]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:STEEL][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

Would there be any way to set, for instance, the Lignite to Coke reaction to have a product of Steel Breastplate? In other words, is there any way to find the right tags etc. to make the product whatever I 'need'? (Where would I find these 'tags'?)
Logged
I got a high master!!!.... animal caretaker... ****.

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Help modding reactions to craft things differently
« Reply #3 on: June 16, 2012, 02:34:46 pm »

Wiki
search
ITEM TOKENS
and
REACTION TOKENS
Logged

pulsusego

  • Bay Watcher
    • View Profile
Re: Help modding reactions to craft things differently
« Reply #4 on: June 16, 2012, 03:27:44 pm »

I set it up and tested, and it crashes when the smith finishes creating the armor.

Here's what I've got:
[REACTION:BRASS_MAKING2]
[NAME:make brass bars (use bars)]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:10:ITEM_ARMOR:ITEM_ARMOR_BREASTPLATE:METAL:STEEL]
[PRODUCT:100:10:ITEM_ARMOR:ITEM_ARMOR_MAIL_SHIRT:METAL:STEEL]
[PRODUCT:100:10:ITEM_HELM:ITEM_HELM_HELM:METAL:STEEL]
[PRODUCT:100:10:ITEM_GLOVES:ITEM_GLOVES_GAUNTLETS:METAL:STEEL]
[PRODUCT:100:10:ITEM_PANTS:ITEM_PANTS_LEGGINGS:METAL:STEEL]
[PRODUCT:100:10:ITEM_PANTS:ITEM_PANTS_GREAVES:METAL:STEEL]
[PRODUCT:100:10:ITEM_SHOES:ITEM_SHOES_BOOTS:METAL:STEEL]
[PRODUCT:100:10:ITEM_SHIELD:ITEM_SHIELD_SHIELD:METAL:STEEL]
[FUEL]
[SKILL:FORGE_ARMOR]

I'm pretty sure the Product through Item_Shield_shield bit is right, I checked the raws for that information.
As for the Metal:steel, I've also tried Inorganic:steel, both of which are in the raws. I also tried it with and without the [[PRODUCT_DIMENSION:150] tag in hopes that it might simply be crashing from it's not being there, but that didn't work. I've also tried changing the skill tag back to SMELT, but it makes no difference. Any Ideas?
Logged
I got a high master!!!.... animal caretaker... ****.

travellersside

  • Bay Watcher
    • View Profile
Re: Help modding reactions to craft things differently
« Reply #5 on: June 16, 2012, 05:32:30 pm »

Two things spring to mind:

1) Use [PRODUCT:100:10:ARMOR:ITEM_ARMOR_BREASTPLATE:METAL:STEEL] etc. It needs to be 'armor' not 'item_armor'.
2) You can't make gauntlets properly, because they need to be left and right, and custom items don't have that open to them. Footwear is generic, oddly enough, so you can make those, but not handwear.

Have you checked your errorlog to see if there's anything else that it's complaining about?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Help modding reactions to craft things differently
« Reply #6 on: June 16, 2012, 06:22:17 pm »

Yes, just omit the ITEM_ from that first part and it should work.

METAL is an alias for INORGANIC, remember.

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Re: Help modding reactions to craft things differently
« Reply #7 on: June 16, 2012, 07:20:06 pm »

I would use INORGANIC, just to be on the safe side.
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.

Tierre

  • Bay Watcher
    • View Profile
Re: Help modding reactions to craft things differently
« Reply #8 on: June 18, 2012, 07:45:09 am »

Why use smelter? Make a cheat workshop. You can take a workshop from wiki - search for Shaostoul's cheat guide.
http://dwarffortresswiki.org/index.php/Shaostoul%27s_Guide
There you will have everything you want to know about modding.
Logged

Wannabehero

  • Bay Watcher
    • View Profile
Re: Help modding reactions to craft things differently
« Reply #9 on: June 18, 2012, 12:29:15 pm »

Why use smelter? Make a cheat workshop. You can take a workshop from wiki - search for Shaostoul's cheat guide.
http://dwarffortresswiki.org/index.php/Shaostoul%27s_Guide
There you will have everything you want to know about modding.

Well, not everything about modding, but it is a darn good start for reaction modding.

IIRC, shaostouls doesn't go into any depth on creature, item, or entity modding.
Logged

Tierre

  • Bay Watcher
    • View Profile
Re: Help modding reactions to craft things differently
« Reply #10 on: June 19, 2012, 04:53:59 am »

well this guide turned me into modding, and then i started doing everything else with help of wiki (though body and tissue are a bit difficult for me yet). So it's a really good for starters AND it has what he wanted - cheat metal workshop:)

PS if somebody would do similarily great guide for bodyparts and interactions and such - that would be really good.
Logged