basically I want to make it possiable to smelt all raw ores into multiple bars. However, the only way to do this (I think) is to use a REACTION. I also wanted to remove old metals so the user of the mod wasn't confused by having 2 smelting tasks for all metals.
so I moddified matgloss_stone_mineral
code:[MATGLOSS_STONE:GOLD2]
[NAME:native gold][STONE_NAME:gold nuggets][COLOR:6:7:1][TILE:156]
[ENVIRONMENT:IGNEOUS_ALL:VEIN:100]
[ENVIRONMENT:ALLUVIAL:CLUSTER_SMALL:100]
[ITEM_SYMBOL:'*']
[METAL_ORE:GOLD:100]
[SOLID_DENSITY:19320]
[VALUE:30]
every metal ore got renamed. ( I put a 2 on the end of them all.)
then I added reaction_metal document with the new reactions in them. All the reactions were similar.
code:
reaction_metal[OBJECT:REACTION]
[REACTION:GOLD]
[NAME:Smelt Gold to Bars (uses Ore)]
[SMELTER]
[REAGENT:1:METAL_ORE:GOLD2]
[PRODUCT:100:100:BAR:NO_SUBTYPE:METAL:GOLD]
[FUEL]
what puzzles me is that though I used this format for all the metal ores only gold works. And I also got coal to work.
code:
[REACTION:COAL_BITUMINOUS]
[NAME:Smelt BITUMINOUS COAL to COKE (uses Ore)]
[SMELTER]
[REAGENT:1:STONE:NO_SUBTYPE:STONE:COAL_BITUMINOUS2]
[PRODUCT:100:100:BAR:NO_SUBTYPE:METAL:COKE]
[FUEL]
I don't understand what is happening that the other ones fail to work. I think it is probably either a tag or hard code issue.
If you want to make multiple bars you will either need to change the metal ore tag to be Gold2 or simply placing multiple [METAL_ORE:GOLD:100] tags which should stack. Some of the existing ores already produce multiple bars, so you can use them as reference.
So making the gold2 ore code say:
code:[MATGLOSS_STONE:GOLD2]
[NAME:native gold][STONE_NAME:gold nuggets][COLOR:6:7:1][TILE:156]
[ENVIRONMENT:IGNEOUS_ALL:VEIN:100]
[ENVIRONMENT:ALLUVIAL:CLUSTER_SMALL:100]
[ITEM_SYMBOL:'*']
[METAL_ORE:GOLD:100]
[METAL_ORE:GOLD:100]
[METAL_ORE:GOLD:100]
[METAL_ORE:GOLD:100]
[METAL_ORE:GOLD:100]
[SOLID_DENSITY:19320]
[VALUE:30]
WHY?
I think your problem is because you've found gold2 gold and it works for your reaction, but other metals are metal not metal2 and as long as you have no metal reactions, just metal2, you can't do it.
Try to rename gold2 to "gold2" instead of gold in game.
The problem is that you have
[MATGLOSS_STONE:GOLD2][NAME:native gold] and [MATGLOSS_STONE:GOLD][NAME:native gold] and you can't say which one is gold 1 and which one is gold 2 when you're on dwarf screen.
But again: WHAT.S.THE.POINT?
[ May 07, 2008: Message edited by: Deon ]
gives 100 bars
[PRODUCT:100:23:BAR:NO_SUBTYPE:METAL:GOLD]
gives 23 bars.
easiest way to get multiple bars.
matgloss_stone_mineral
code:[MATGLOSS_STONE:MALACHITE]
[NAME:malachite][COLOR:2:7:0][TILE:156]
[ENVIRONMENT_SPEC:LIMESTONE:VEIN:100]
[ENVIRONMENT_SPEC:MARBLE:VEIN:100]
[ITEM_SYMBOL:'*']
[METAL_ORE:COPPER:100]
[VALUE:2]
reaction_metals
code:[REACTION:MALACHITE]
[NAME:Smelt MALACHITE to Bars (uses Ore)]
[SMELTER]
[REAGENT:1:METAL_ORE:MALACHITE]
[PRODUCT:100:100:BAR:NO_SUBTYPE:METAL:COPPER]
[FUEL]
This works for all hard codded mineral types.
in the product line the second number is the quantity of product.
[ May 07, 2008: Message edited by: TerminatorII ]