Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Bugs in reaction_standard.txt?  (Read 689 times)

Omniarch

  • Bay Watcher
    • View Profile
Bugs in reaction_standard.txt?
« on: September 13, 2008, 06:29:25 pm »

So I've modded in the following things, but when I actually try and make cobalt steel, the smelter spits out chromium.  I think there may be a bug related to the order in which things appear in the file, originally it was making something else but when I moved the entry to the end it started making chromium.  Anyone know how I could fix this?


Code: [Select]
[REACTION:COBALT_STEEL_MAKING]
[NAME:make cobalt steel bars]
[SMELTER]
[REAGENT:1:BAR:NO_SUBTYPE:METAL:IRON]
[REAGENT:1:BAR:NO_SUBTYPE:METAL:PIG_IRON]
[REAGENT:1:REACTION_CLASS:FLUX]
[REAGENT:1:BAR:NO_SUBTYPE:COAL:NO_MATGLOSS]
[REAGENT:1:BAR:NO_SUBTYPE:METAL:COBALT]
[PRODUCT:100:3:BAR:NO_SUBTYPE:METAL:COBALT_STEEL]
[FUEL]

Code: [Select]

[MATGLOSS_STONE:COBALTITE]
[NAME:cobaltite][COLOR:1:7:1][TILE:156]
[ENVIRONMENT:IGNEOUS_ALL:VEIN:100]
[ENVIRONMENT:METAMORPHIC:VEIN:100]
[ITEM_SYMBOL:'*']
[METAL_ORE:COBALT:100]
[METAL_ORE:IRON:10]
[METAL_ORE:NICKEL:10]
[SOLID_DENSITY:6295]

[MATGLOSS_STONE:CHROMITE]
[NAME:chromite][COLOR:0:7:1][TILE:'=']
[ENVIRONMENT_SPEC:OLIVINE:VEIN:100]
[ENVIRONMENT:METAMORPHIC:VEIN:100]
[SOLID_DENSITY:2162]
[ITEM_SYMBOL:'*']
[METAL_ORE:CHROMIUM:100]
[VALUE:9]

Logged

Untelligent

  • Bay Watcher
  • I eat flesh!
    • View Profile
Re: Bugs in reaction_standard.txt?
« Reply #1 on: September 13, 2008, 09:44:56 pm »

Did you remember to put the appropriate files in the matgloss_metal file?

Aside from that, perhaps you DID mess things up when you changed the order of the reaction entries. If that was the cause of the bug (likely, but not 100% likely), it would be a simple matter of deleting the files in the data/object folder, which will force the game to re-read the raw files in the correct order.
Logged
The World Without Knifebear — A much safer world indeed.
regardless, the slime shooter will be completed, come hell or high water, which are both entirely plausible setbacks at this point.

Exponent

  • Bay Watcher
    • View Profile
Re: Bugs in reaction_standard.txt?
« Reply #2 on: September 13, 2008, 10:58:09 pm »

Modifying the stone/mineral raws and the reaction raws while not generating a new world can also cause some oddities such as you describe, I believe.  Were you testing this out on a newly created world, or had you made any notable additions, deletions, or reorderings to the raws after generating the world that you're using for testing?
Logged

Omniarch

  • Bay Watcher
    • View Profile
Re: Bugs in reaction_standard.txt?
« Reply #3 on: September 14, 2008, 06:23:27 am »

No changes were made to the raws after the world was generated, and yes I added entries to matgloss_metals.txt.

Code: [Select]
[MATGLOSS_METAL:CHROMIUM]
[NAME:chromium][ADJ:chrome][COLOR:0:7:1]
[VALUE:25]
[SPEC_HEAT:800]
[MELTING_POINT:11134]
[BOILING_POINT:12856]
[SOLID_DENSITY:7190]


[MATGLOSS_METAL:COBALT_STEEL]
[NAME:cobalt steel][ADJ:cobalt steel][COLOR:1:7:1]
[VALUE:40]
[SPEC_HEAT:600]
[MELTING_POINT:12718]
[BOILING_POINT:14968]
[WEAPON][WEAPON_RANGED][AMMO][DIGGER][ARMOR][ANVIL]
[DAMAGE_PERC:166]
[BLOCK_PERC:166]
[SOLID_DENSITY:8200]


[MATGLOSS_METAL:STAINLESS_STEEL]
[NAME:stainless steel][ADJ:stainless steel][COLOR:0:7:0]
[VALUE:30]
[SPEC_HEAT:1200]
[MELTING_POINT:11134]
[BOILING_POINT:12856]
[SOLID_DENSITY:7190]
[WEAPON][AMMO][DIGGER][ARMOR][ANVIL]
[DAMAGE_PERC:150]
[BLOCK_PERC:150]

[MATGLOSS_METAL:ALLOY_STEEL]
[NAME:alloy steel][ADJ:alloy steel][COLOR:0:6:0]
[VALUE:45]
[SPEC_HEAT:1200]
[MELTING_POINT:11134]
[BOILING_POINT:12856]
[SOLID_DENSITY:7190]
[WEAPON][AMMO][DIGGER][ARMOR][ANVIL]
[DAMAGE_PERC:200]
[BLOCK_PERC:200]
Logged