Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Reaction question  (Read 1829 times)

Seriyu

  • Bay Watcher
    • View Profile
    • Springless Clock
Reaction question
« on: August 27, 2011, 04:12:23 am »

Okay so I have a normal workshop, and a magma powered workshop of the same kind. They all have the same reaction names and such, is that fine?

Or do I have to change the reaction name to get it to show up?

Or do I just have to change the name of the reaction affected by the magma forge, IE, the one that uses fuel?

Thanks in advance.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Reaction question
« Reply #1 on: August 27, 2011, 04:16:06 am »

Since they are different buildings, they need different reactions. And everything in DF needs unique names, so give them different REACTION:X identifiers. Just add _MAGMA at the ID End and "(magma)" to the description.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Mikey

  • Bay Watcher
    • View Profile
Re: Reaction question
« Reply #2 on: August 27, 2011, 03:00:09 pm »

The display name of a magma-specific reaction can be the same, but the internal identifier ([REACTION:name]) must be different.
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Reaction question
« Reply #3 on: August 27, 2011, 03:02:46 pm »

Since they are different buildings, they need different reactions.

No they don't - a single reaction can have multiple [BUILDING] tokens (such as the MILL_SEEDS_NUTS_TO_PASTE reaction, which can be done at either a Quern or a Millstone).

Additionally, the [FUEL] token already handles the difference between non-magma and magma workshops, so you only need one copy of each reaction.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Mikey

  • Bay Watcher
    • View Profile
Re: Reaction question
« Reply #4 on: August 27, 2011, 03:05:33 pm »

I was under the impression that [NEEDS_MAGMA] on a custom workshop didn't actually remove the [FUEL] requirement for reactions, but I didn't confirm this (so many mods have duplicate magma reactions that I didn't even think to try).  Is this definitely not needed?
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Reaction question
« Reply #5 on: August 27, 2011, 03:10:18 pm »

The [FUEL] token already handles smelters and kilns and their magma variants - if it doesn't handle custom magma workshops or furnaces, then that's probably a bug, since the entire point of magma workshops is that they don't require fuel.

Why don't you test it for us and let us know what happens?
« Last Edit: August 27, 2011, 03:11:56 pm by Quietust »
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Seriyu

  • Bay Watcher
    • View Profile
    • Springless Clock
Re: Reaction question
« Reply #6 on: August 27, 2011, 03:55:55 pm »

Ayeaye. I'll tunnel down and give it a shot.

EDIT: While I'm messing with this, I have another question, is there any way to make a gem appear reliably in every embark site (with soil I guess)? I woulda figured making it appear in soil and soil_sand with 99 frequency would've done it but apparently not.

EDIT2: Okay, with a seperate workshop file for the magma workshop with carbon copies of all of the reactions (barring a missing fuel tag and fixing the workshop references), the magma workshop has no reactions. Trying again with renaming the reactions.

EDIT3: Renaming the reactions did it. Trying ONE LAST TIME with the fuel token still on the reaction in the magma workshop.

EDIT4: It would appear that the [NEEDS_MAGMA] token does indeed ignore any fuel tokens in the reactions. BUT you need to make a new set of reactions with a different name anyway, so I'm not sure why you wouldn't just remove the fuel token while you're at it.

Still good to know.

SCIENCE COMPLETED
« Last Edit: August 27, 2011, 05:40:10 pm by Seriyu »
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Reaction question
« Reply #7 on: August 27, 2011, 06:25:35 pm »

What happened when you tried using just one set of reactions where each one had 2 [BUILDING] tokens (one for the non-magma workshop, one for the magma workshop)?
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Mechanixm

  • Bay Watcher
    • View Profile
Re: Reaction question
« Reply #8 on: August 29, 2011, 11:37:07 am »

The problem with doubling-up on your building tokens is that if you use the manager to queue up some jobs, then some of the jobs will go to the magma workshop and some will go to your non-magma shop...assuming you have both shops built.

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Reaction question
« Reply #9 on: August 29, 2011, 02:09:29 pm »

That has nothing to do with custom buildings, though - the exact same thing will happen with forges, smelters, kilns, and glass furnaces. Besides, the solution to that is easy enough - once you have magma versions of the workshop, you either deconstruct all of the non-magma ones or you simply don't use the job manager for them.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Mikey

  • Bay Watcher
    • View Profile
Re: Reaction question
« Reply #10 on: August 29, 2011, 05:31:21 pm »

EDIT4: It would appear that the [NEEDS_MAGMA] token does indeed ignore any fuel tokens in the reactions.
Excellent.  Thanks for testing this.
Logged