Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Trying to add a Smelter reaction  (Read 1093 times)

Canuhearmenow

  • Bay Watcher
    • View Profile
Trying to add a Smelter reaction
« on: August 28, 2010, 10:23:28 am »

Specifically, converting Galena into Raw Adamantine (not strands, nor wafers, but the raw stuff you get from mining Adamantine.)

However, I've been having some trouble with it, as the reaction doesn't seem to work, what am I doing wrong?


[REACTION:GALENA_TO_ADAMANTINE]
[NAME:Transmutate Galena into Adamantine]
[BUILDING:SMELTER:NONE]
[REAGENT:A:1:METAL_ORE:GALENA]
[PRODUCT:100:1:BOULDER:NO_SUBTYPE:METAL_ORE:RAW_ADAMANTINE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

I'm trying not to do the "Adamantine Strands" way out since I want to try and give myself as many limitations to using this as possible. Besides, I remember how in the 2D days Adamantine turned into Galena when you kill the head Demon in a fortress, I'm just doing the reverse of that.

The only reason I'm doing this in the first place is because I found an area that's identical to an embark location that was corrupted, but is extremely low on Adamantine (compared to the previous location.)
Logged

silverskull39

  • Bay Watcher
    • View Profile
Re: Trying to add a Smelter reaction
« Reply #1 on: August 28, 2010, 10:25:50 am »

did you add the reaction to your civs entity RAW?
Logged
Quote
Quote
Quote
Dwarf fortress threads can sound so.... unethical
it would be unethical if this wasn't the bay12 forums
Bay12: A short, sturdy forum fond of !!science!! and derailment.
Quote
Now back to your regularly scheduled thread derailment.

Grimlocke

  • Bay Watcher
  • *kobold noises*
    • View Profile
Re: Trying to add a Smelter reaction
« Reply #2 on: August 28, 2010, 10:45:53 am »

[REACTION:GALENA_TO_ADAMANTINE]
[NAME:Transmutate Galena into Adamantine]
[BUILDING:SMELTER:NONE]
[REAGENT:A:1:BOUDLER:NONE:INORGANIC:GALENA]
[PRODUCT:100:1:BOULDER:NONE:INORGANIC:RAW_ADAMANTINE]
[SKILL:SMELT]

Should do the trick. Searching around a bit more for guides would have done it as well though.
Logged
I make Grimlocke's History & Realism Mods. Its got poleaxes, sturdy joints and bloomeries. Now compatible with DF Revised!

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Trying to add a Smelter reaction
« Reply #3 on: August 28, 2010, 11:05:14 am »

Check Shaostoul's guide for correct syntax for reactions.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Vulcanius

  • Bay Watcher
    • View Profile
Re: Trying to add a Smelter reaction
« Reply #4 on: August 28, 2010, 01:43:08 pm »

The reaction should be fine, but you need to add [PERMITTED_REACTION:GALENA_TO_ADAMANTINE] to your entity_default.txt under the [ENTITY:MOUNTAIN] section with the other permitted reactions.
Logged

Rhenaya

  • Bay Watcher
  • Usstan tlun natha hargluk ssinssriggin ilythiiri!
    • View Profile
    • X-Fire Profile
Re: Trying to add a Smelter reaction
« Reply #5 on: August 28, 2010, 01:52:14 pm »

you have to replace galena with lead (as you want the lead ore to use in the reaction) or the metal_ore with the mentioned boulder:inorganic (as the raw stone is just a boulder)

so its either grimlockes solution or:
[REACTION:GALENA_TO_ADAMANTINE]
[NAME:Transmutate Galena into Adamantine]
[BUILDING:SMELTER:NONE]
[REAGENT:A:1:METAL_ORE:LEAD]
[PRODUCT:100:1:BOULDER:NO_SUBTYPE:METAL_ORE:RAW_ADAMANTINE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

but this version means if new lead ores are added they are transmuted too
Logged
User Profile: http://df.magmawiki.com/index.php/User:Rhenaya
Mods: http://dffd.wimbli.com/who.php?id=554

From "Angroshs Kinder" Das schwarze Auge Zwergenhandbuch - (Angrosh Children, the dark eye, german pen&paper, dwarven handbook):
"Elves!? Their men dont wear beards, and their women bathe nacked to lure you into the water and drown you. Thank Angrosh they are as ugly as the day and all big and skinny."

Canuhearmenow

  • Bay Watcher
    • View Profile
Re: Trying to add a Smelter reaction
« Reply #6 on: August 28, 2010, 03:45:51 pm »

I added the [PERMITTED_REACTION:GALENA_TO_ADAMANTINE] to the [ENTITY: MOUNTAIN] file, then tested using either

[REACTION:GALENA_TO_ADAMANTINE]
[NAME:Transmutate Galena into Adamantine]
[BUILDING:SMELTER:NONE]
[REAGENT:A:1:METAL_ORE:LEAD]
[PRODUCT:100:1:BOULDER:NO_SUBTYPE:METAL_ORE:RAW_ADAMANTINE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

And

[REACTION:GALENA_TO_ADAMANTINE]
[NAME:Transmutate Galena into Adamantine]
[BUILDING:SMELTER:NONE]
[REAGENT:A:1:BOULDER:NONE:INORGANIC:GALENA]
[PRODUCT:100:1:BOULDER:NONE:INORGANIC:RAW_ADAMANTINE]
[SKILL:SMELT]

However, when I load the save and q over a smelter, it doesn't have the "Transmutate Galena into Adamantine" command, I tested both of these reaction tags.

I added the tags to both the save raw and standard raw, however it still does nothing. What am I doing wrong?
Logged

Vulcanius

  • Bay Watcher
    • View Profile
Re: Trying to add a Smelter reaction
« Reply #7 on: August 28, 2010, 04:30:28 pm »

I added the [PERMITTED_REACTION:GALENA_TO_ADAMANTINE] to the [ENTITY: MOUNTAIN] file, then tested using either

[REACTION:GALENA_TO_ADAMANTINE]
[NAME:Transmutate Galena into Adamantine]
[BUILDING:SMELTER:NONE]
[REAGENT:A:1:METAL_ORE:LEAD]
[PRODUCT:100:1:BOULDER:NO_SUBTYPE:METAL_ORE:RAW_ADAMANTINE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

And

[REACTION:GALENA_TO_ADAMANTINE]
[NAME:Transmutate Galena into Adamantine]
[BUILDING:SMELTER:NONE]
[REAGENT:A:1:BOULDER:NONE:INORGANIC:GALENA]
[PRODUCT:100:1:BOULDER:NONE:INORGANIC:RAW_ADAMANTINE]
[SKILL:SMELT]

However, when I load the save and q over a smelter, it doesn't have the "Transmutate Galena into Adamantine" command, I tested both of these reaction tags.

I added the tags to both the save raw and standard raw, however it still does nothing. What am I doing wrong?

You can't add a reaction after your world has already been generated. You'll have to create a new world after having edited the *.txt files. However, you can modify an existing reaction on an already generated world.
Logged

Canuhearmenow

  • Bay Watcher
    • View Profile
Re: Trying to add a Smelter reaction
« Reply #8 on: August 28, 2010, 05:27:07 pm »

So all I have to do is create a new world with the added reactions? Sounds good. It will take a while to find a good location again, but at least I don't have to worry about low amounts of Adamantine.

Just to make sure I have it clear (so I don't have to create a new world each time) I just need to add the following to the appropriate raws:

[REACTION:GALENA_TO_ADAMANTINE]
[NAME:Transmutate Galena into Adamantine]
[BUILDING:SMELTER:NONE]
[REAGENT:A:1:METAL_ORE:LEAD]
[PRODUCT:100:1:BOULDER:NO_SUBTYPE:METAL_ORE:RAW_ADAMANTINE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

and

[PERMITTED_REACTION:GALENA_TO_ADAMANTINE]

Then create a new world?
« Last Edit: August 28, 2010, 05:28:55 pm by Canuhearmenow »
Logged

Vulcanius

  • Bay Watcher
    • View Profile
Re: Trying to add a Smelter reaction
« Reply #9 on: August 28, 2010, 05:32:47 pm »

That is correct. Add those to the general raw files and then create a new world.
Logged

Rhenaya

  • Bay Watcher
  • Usstan tlun natha hargluk ssinssriggin ilythiiri!
    • View Profile
    • X-Fire Profile
Re: Trying to add a Smelter reaction
« Reply #10 on: August 29, 2010, 01:11:27 am »

you used both at once with same id?
Logged
User Profile: http://df.magmawiki.com/index.php/User:Rhenaya
Mods: http://dffd.wimbli.com/who.php?id=554

From "Angroshs Kinder" Das schwarze Auge Zwergenhandbuch - (Angrosh Children, the dark eye, german pen&paper, dwarven handbook):
"Elves!? Their men dont wear beards, and their women bathe nacked to lure you into the water and drown you. Thank Angrosh they are as ugly as the day and all big and skinny."

Canuhearmenow

  • Bay Watcher
    • View Profile
Re: Trying to add a Smelter reaction
« Reply #11 on: August 29, 2010, 09:54:01 am »

you used both at once with same id?

No, I just did the:

[REACTION:GALENA_TO_ADAMANTINE]
[NAME:Transmutate Galena into Adamantine]
[BUILDING:SMELTER:NONE]
[REAGENT:A:1:METAL_ORE:LEAD]
[PRODUCT:100:1:BOULDER:NO_SUBTYPE:METAL_ORE:RAW_ADAMANTINE][PRODUCT_DIMENSION:150]
[SKILL:SMELT] (added it the reaction_smelter.)

Then added the PERMITTED REACTION tag to the Entity_default under [MOUNTAIN]

I then started a new world (using the "Design New World Now!" option) and went to test it out. It doesn't work  :(

Going to try with the other reaction.
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Trying to add a Smelter reaction
« Reply #12 on: August 29, 2010, 10:02:04 am »

Where did you get [REAGENT:A:1:METAL_ORE:LEAD] from? And noone seems to object it. This is some syntax I am not aware of.

AFAIK it should be
[REAGENT:A:1:BAR:NONE:INORGANIC:GALENA]
  and
[PRODUCT:100:1:BAR:NO_SUBTYPE:INORGANIC:ADAMANTINE][PRODUCT_DIMENSION:150].

1) The syntax is TYPE:SUBTYPE:MATGLOSS where in case of ores MATGLOSS consists of INORGANIC:NAME.
2) You cannot have PRODUCT_DIMENSION for boulders. that stuff is used for bars and thread.
« Last Edit: August 29, 2010, 10:04:09 am by Deon »
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Canuhearmenow

  • Bay Watcher
    • View Profile
Re: Trying to add a Smelter reaction
« Reply #13 on: August 29, 2010, 10:21:10 am »

Ok, it's working now.
Logged