Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3

Author Topic: Adding Reaction  (Read 3806 times)

niche

  • Bay Watcher
    • View Profile
Adding Reaction
« on: February 11, 2010, 03:07:42 pm »

Adding Reaction
I need help to add a Reaction. I want making on one wood to five Coal. I have seen that when i make custom Reaction the standart reaction are no longer in the smelter options.  How can i now melt items that i dont need?
Logged

Funk

  • Bay Watcher
    • View Profile
Re: Adding Reaction
« Reply #1 on: February 11, 2010, 04:14:04 pm »

did you make a new world?
new Reaction new world,this is why changeing reactions is used so much.

Logged
Agree, plus that's about the LAST thing *I* want to see from this kind of game - author spending valuable development time on useless graphics.

Unofficial slogan of Bay 12 Games.  

Death to the false emperor a warhammer40k SG

Noble Digger

  • Bay Watcher
    • View Profile
Re: Adding Reaction
« Reply #2 on: February 11, 2010, 11:38:45 pm »

I think I can help.

1. You don't see the standard reactions visible in the smelter unless you have everything the smelter would need to do that job. Most importantly, if you have no bars of coal, nothing will show up in the smelter screen when you go to add a job.

2. You can't add a new reaction without generating a new fortress. However, you can modify any tags you wish within any existing reaction. Thus, in order to add a new reaction you can take something no-one cares about such as Lay Pewter Making and turn it into what you need. Here, I did it for you, but putting it in the correct file in the correct place is your challenge:

Code: [Select]
[REACTION:PEWTER_LAY_MAKING]
[NAME:make charcoal from logs]
[SMELTER]
[REAGENT:1:WOOD:NO_SUBTYPE:WOOD:NO_MATGLOSS]
[REAGENT:1:BAR:NO_SUBTYPE:METAL:COPPER]
[PRODUCT:100:5:BAR:NO_SUBTYPE:COAL:NO_MATGLOSS]

This should work without having fuel and allows you to turn 1 wood logs into 5 coal bars. Have fun.
Logged
quib·ble
1. To evade the truth or importance of an issue by raising trivial distinctions and objections.
2. To find fault or criticize for petty reasons; cavil.

niche

  • Bay Watcher
    • View Profile
Re: Adding Reaction
« Reply #3 on: February 12, 2010, 03:24:27 am »

Thanks Noble Digger. Now i understand it. I play Dig Deeper. i changes the name of the reaction and put the reaction in reaction_additional.txt. It shows up in the smelter and the dwarf did the job but no coal appears in the smelter.
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Adding Reaction
« Reply #4 on: February 12, 2010, 03:36:09 am »

Wait, what? Why copper?
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

niche

  • Bay Watcher
    • View Profile
Re: Adding Reaction
« Reply #5 on: February 12, 2010, 03:47:52 am »

I dry it without the Copper Reagent but it doenst work too
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Adding Reaction
« Reply #6 on: February 12, 2010, 04:00:16 am »

Well of course. I didn't look at the coal string, and it says NO_MATGLOSS, which means that's the game doesn't understand which material should the smelter produce thus it produces nothing.

I remember coke material, there're others but this one should work OK.

[PRODUCT:100:5:BAR:NO_SUBTYPE:COAL:COKE]
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

niche

  • Bay Watcher
    • View Profile
Re: Adding Reaction
« Reply #7 on: February 12, 2010, 06:28:00 am »

Now it works  ;D Thank you  8)
Logged

Noble Digger

  • Bay Watcher
    • View Profile
Re: Adding Reaction
« Reply #8 on: February 16, 2010, 02:48:21 pm »

There should be another "generic" matgloss flag that can be used to refer to "nothing specific" but obviously "no_matgloss" is not it :(

The "copper" reagent tag is there because I copied this from one of my old raws and wasn't paying fuck all for attention ^__^ even old players make common typos and silly mistakes :D Multiple eyes is always best...
Logged
quib·ble
1. To evade the truth or importance of an issue by raising trivial distinctions and objections.
2. To find fault or criticize for petty reasons; cavil.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Adding Reaction
« Reply #9 on: February 17, 2010, 12:42:44 am »

  Excuse me, but you understand it wrong. Generally you can't produce "generic material" items, and if you succeed, they weight like a whole mountain because weight and temperature and stuff for "generic" items are bugged in DF (thus you get boiling leather and a barrel which weights like 100 elephants when you mod something wrong).
  NO_MATGLOSS is a correct token, but you shouldn't use it in an output product. As you see, it accepts a random wood just fine.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Noble Digger

  • Bay Watcher
    • View Profile
Re: Adding Reaction
« Reply #10 on: February 17, 2010, 11:49:15 am »

Yeah. One of my other reactions was spitting out "rough gems" as a product, but they had zero weight and value and the dwarves would not bring them to a gem stockpile. Sensing that they were abominations made of the trapped souls of incinerated Marksdwarves, I had them trash compacted...
Logged
quib·ble
1. To evade the truth or importance of an issue by raising trivial distinctions and objections.
2. To find fault or criticize for petty reasons; cavil.

Darkond2100

  • Bay Watcher
  • Intrepid Groundhog
    • View Profile
Re: Adding Reaction
« Reply #11 on: February 20, 2010, 03:02:54 pm »

Yeah. One of my other reactions was spitting out "rough gems" as a product, but they had zero weight and value and the dwarves would not bring them to a gem stockpile. Sensing that they were abominations made of the trapped souls of incinerated Marksdwarves, I had them trash compacted...
Use the gem mod that's on the wiki. It spits out rough gems without a problem. You probably messed yours up, at least check them against each other.
Logged
your hoard, your dwarves, and your fortress.
I prefer Hoard, Horde, and Hovel...

niche

  • Bay Watcher
    • View Profile
Re: Adding Reaction
« Reply #12 on: February 28, 2010, 02:09:22 pm »

I need one more time your help. I want reaction to make all leathers to bed like the dig dwarfer mod and the reaction to make a rock anvil. Can someone help me?
Logged

3

  • Bay Watcher
    • View Profile
Re: Adding Reaction
« Reply #13 on: February 28, 2010, 02:14:06 pm »

Code: [Select]
[REAGENT:1:SKIN_TANNED:NO_SUBTYPE:LEATHER:NO_MATGLOSS]
[PRODUCT:1:BED:NO_SUBTYPE:LEATHER:NO_MATGLOSS]

Code: [Select]
[PRODUCT:1:ANVIL:NO_SUBTYPE:STONE:NO_MATGLOSS]
Should work. If you want the products to be of a specific matgloss (granite, obsidian, whatever), jut replace NO_MATGLOSS with the gloss you want.
Logged

niche

  • Bay Watcher
    • View Profile
Re: Adding Reaction
« Reply #14 on: February 28, 2010, 02:45:57 pm »

Code: [Select]
[REACTION:LEATHER_BED]
[NAME:make leather Bed]
[SMELTER]
[REAGENT:1:SKIN_TANNED:NO_SUBTYPE:LEATHER:NO_MATGLOSS]
[PRODUCT:1:BED:NO_SUBTYPE:LEATHER:NO_MATGLOSS]
the dwarf did the job but no bed appears in the smelter?
Logged
Pages: [1] 2 3