Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Smelting multiple ores at once  (Read 679 times)

cooky173

  • Bay Watcher
    • View Profile
Smelting multiple ores at once
« on: December 15, 2008, 05:06:36 am »

I figure, smelting is smelting, you get one piece of magnetite and heat it, you get one iron bar, so if you smelt 5 at once, you get 5 bars.

I know smelting ores is hardcoded, but looking at the steel making reaction I thought I could mod that to work with ores.

I changed the matgloss for the iron ores, I included the new matgloss for magnetite below..(the ore in my current fortress.)

Code: [Select]
[MATGLOSS_STONE:MAGNETITE]
[NAME:magnetite][COLOR:0:7:1][TILE:'~']
[ENVIRONMENT:SEDIMENTARY:CLUSTER:100]
[ITEM_SYMBOL:'*']
[REACTION_CLASS:IRON_ORE]
[METAL_ORE:IRON:100]
[SOLID_DENSITY:5046]
[VALUE:8]
The reaction class IRON_ORE is something I made up myself - based off the FLUX class
I then created a new reaction

Code: [Select]
[REACTION:LARGE_SCALE_IRON]
[NAME:make 5 iron bars]
[SMELTER]
[REAGENT:5:REACTION_CLASS:IRON_ORE]
[PRODUCT:100:5:BAR:NO_SUBTYPE:METAL:IRON]
[FUEL]

Anyone see anything wrong with this? Or is it just one of those things that doesn't work? If no-one can see a problem I might try regening
Logged

Footkerchief

  • Bay Watcher
  • The Juffo-Wup is strong in this place.
    • View Profile
Re: Smelting multiple ores at once
« Reply #1 on: December 15, 2008, 05:13:28 am »

Can you just make up reaction classes?  That's kind of awesome if so, I've never tried it.  You don't have to regen to test it, you can edit those reagents/products into an existing reaction instead.
Logged

cooky173

  • Bay Watcher
    • View Profile
Re: Smelting multiple ores at once
« Reply #2 on: December 15, 2008, 05:25:13 am »

I think you can, let me check...
Hmm, no, I gave obsidian the reaction class "BENNY", and modified the pig iron reaction to require BENNY instead of flux....no joy.


Hmm, give iron the flux class, and write a reaction using 5 flux to make 5 iron, or 10, or whatever.
Logged

Sean Mirrsen

  • Bay Watcher
  • Bearer of the Psionic Flame
    • View Profile
Re: Smelting multiple ores at once
« Reply #3 on: December 15, 2008, 05:37:49 am »

There's no FLUX tag in the executable, only REACTION_CLASS, so I think it should work. I don't remember what the results of my experiments were.
Logged
Multiworld Madness Archive:
Game One, Discontinued at World 3.
Game Two, Discontinued at World 1.

"Europe has to grow out of the mindset that Europe's problems are the world's problems, but the world's problems are not Europe's problems."
- Subrahmanyam Jaishankar, Minister of External Affairs, India

Footkerchief

  • Bay Watcher
  • The Juffo-Wup is strong in this place.
    • View Profile
Re: Smelting multiple ores at once
« Reply #4 on: December 15, 2008, 05:45:05 am »

There is, actually, but it's kind of ambiguous.

Code: [Select]
...
Connectivity Overflow
Connectivity Placement Overflow
Update Connectivity Placement Overflow
FLUX
  Choose Fortress Location 
Local
Region
World
...

Actually, now that I think about it, that's probably for the site finder.
Logged

Marlowe

  • Bay Watcher
    • View Profile
Re: Smelting multiple ores at once
« Reply #5 on: December 15, 2008, 10:43:49 pm »

Only problem I can think of is that the smelter reactions seem to be able to keep track of only four bars at once.
Logged

Impaler[WrG]

  • Bay Watcher
  • Khazad Project Leader
    • View Profile
Re: Smelting multiple ores at once
« Reply #6 on: December 16, 2008, 12:19:29 am »

You can make your own 'smelting' reaction that use specific stones and create bars of one or more metals, essentially duplicating and bypassing the reactions that are automatically created for any mineral that is labeled as an Ore. 
Logged
Khazad the Isometric Fortress Engine
Extract forts from DF, load and save them to file and view them in full 3D

Khazad Home Thread
Khazad v0.0.5 Download