Bay 12 Games Forum

Dwarf Fortress => DF Modding => Topic started by: Devath on May 07, 2008, 06:53:00 pm

Title: Metals n' shit
Post by: Devath on May 07, 2008, 06:53:00 pm
The quest for info continues. Specifically, I have created a new metal, and cannot figure out how to make the "smelt 'metal' ore" command show up in the smelters. Another reaction I have for said metal works, but the smelter refuses to come up with an ore smelting reaction. I'm wondering if the reaction for that is hardcoded or not, for all the other metals, since it isn't in the raw files, and I'm also wondering why any reactions I made to do this manually also aren't showing up in the smelter.
Title: Re: Metals n' shit
Post by: ricemastah on May 07, 2008, 06:55:00 pm
I believe that if you want a smelt metal ore option, you need to specify a stone as an ore of that metal. Look into the matgloss_stone_mineral file.
Title: Re: Metals n' shit
Post by: Devath on May 07, 2008, 07:09:00 pm
I already have one. Sorry I didn't specify.

The stone

code:
[MATGLOSS_STONE:RAW_DOOMLINITE]
[NAME:raw doomlinite][COLOR:4:7:1][TILE:156]
[ENVIRONMENT:IGNEOUS_EXTRUSIVE:CLUSTER:100]
[ITEM_SYMBOL:'*']
[METAL_ORE :DOOMLINITE:100]
[VALUE:10]
[SPEC_HEAT:500]
[MELTING_POINT:10000]
[BOILING_POINT:10000]
[SOLID_DENSITY:1000]

The metal

code:
[MATGLOSS_METAL :DOOMLINITE]
[NAME:doomlinite][ADJ:doomlinite][COLOR:4:7:1]
[VALUE:15]
[SPEC_HEAT:500]
[IGNITE_POINT:NONE]
[MELTING_POINT:NONE]
[BOILING_POINT:NONE]
[WEAPON][WEAPON_RANGED][AMMO][DIGGER][ARMOR][ANVIL]
[DAMAGE_PERC:400]
[BLOCK_PERC:400]
[SOLID_DENSITY:1850]

Reactions:Attempted. The first works. The second does not.

code:
[REACTION :DOOMLINITE_TO_COKE]
[NAME:make coke from doomlinite ore]
[SMELTER]
[REAGENT:1:STONE:NO_SUBTYPE:STONE:RAW_DOOMLINITE]
[PRODUCT:100:50:BAR:NO_SUBTYPE:COAL:COKE]
[FUEL]

[REACTION:SMELT_DOOMLINITE]
[NAME:smelt doomlinite ore]
[SMELTER]
[REAGENT:4:STONE:NO_SUBTYPE:STONE:RAW_DOOMLINITE]
[PRODUCT:100:4:BAR:NO_SUBTYPE:METAL :DOOMLINITE]
[FUEL]


Title: Re: Metals n' shit
Post by: TerminatorII on May 07, 2008, 07:09:00 pm
look at the example in my post a few down. It works for new metals to smelt to ore. you have to have the stone with ore tags in matgloss_stone_mineral and the reaction under reaction_whatever  However, I am still puzzled on some aspects of the process so any info you turn up I would like to know.  :D
Title: Re: Metals n' shit
Post by: Devath on May 07, 2008, 07:17:00 pm
I was referring more to the fact that "Smelt 'Metal' Ore" doesn't show up in the reactions files, but shows up in the smelter, and that this was not true for my new metal, no matter the circumstance, even after my reaction layout. Meh.

If it has something to do with temp, I'm gonna be angry...

[ May 07, 2008: Message edited by: Devath ]

Title: Re: Metals n' shit
Post by: TerminatorII on May 07, 2008, 07:25:00 pm
code:
 
[REACTION:SMELT_DOOMLINITE]
[NAME:smelt doomlinite ore]
[SMELTER]
[REAGENT:4:STONE:NO_SUBTYPE:STONE:RAW_DOOMLINITE]
[PRODUCT:100:4:BAR:NO_SUBTYPE:METAL : DOOMLINITE]
[FUEL]

Change it to this and it should work.


code:
  
[REACTION:SMELT_DOOMLINITE]
[NAME:smelt doomlinite ore]
[SMELTER]
[REAGENT:4:METAL_ORE:RAW_DOOMLINITE]
[PRODUCT:100:4:BAR:NO_SUBTYPE:METAL : DOOMLINITE]
[FUEL]

have fun    :D

[ May 07, 2008: Message edited by: TerminatorII ]

[ May 07, 2008: Message edited by: TerminatorII ]

Title: Re: Metals n' shit
Post by: Devath on May 07, 2008, 07:32:00 pm
We will see. Generating new world.
Title: Re: Metals n' shit
Post by: Devath on May 07, 2008, 08:17:00 pm
It works, but disables the other reaction. O.O
Of course, I also had to change another minor editing error I made... Involving temp.
Title: Re: Metals n' shit
Post by: TerminatorII on May 07, 2008, 08:32:00 pm
what reaction did it disable?
Title: Re: Metals n' shit
Post by: Cavalcadeofcats on May 07, 2008, 08:40:00 pm
"Doomlinite to coke", one presumes. The one above.
Title: Re: Metals n' shit
Post by: Deon on May 07, 2008, 08:51:00 pm
You don't need a smelter reaction to make the ore smeltable into metal. Just a METAL_ORE token.
And make sure you create a new world each time.
Title: Re: Metals n' shit
Post by: Sean Mirrsen on May 08, 2008, 02:05:00 am
You don't have to create a new world when you make changes to an existing reaction. You only have to do this when you add or remove reactions.

Also, if a reaction does not show up in the smelter, it may be that you have accidentally set up reagents wrong, but if the reaction works, it will be in the manager. Queue the job in the manager screen, and see what kind of lame excuse will the dwarf trying to do it have.