Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Modding for Magma  (Read 863 times)

doomender

  • Bay Watcher
    • View Profile
Modding for Magma
« on: June 12, 2009, 04:30:12 pm »

Being a total modding newbie, I am largely unsure of how to mod things (duh).
I've got the basics down, but I don't know how to mod for magma.
Basically, I'm wanting to smelt/smith a lot, but I don't want to overuse coal or wood.
My conclusion: magma furnaces.
Only problem is that I don't have any magma on my map.
My conclusion: mod a soil/stone/mineral type to turn it into magma.
Unfortunately, I have NO IDEA how to do this,.
Help?
Logged

smjjames

  • Bay Watcher
    • View Profile
Re: Modding for Magma
« Reply #1 on: June 12, 2009, 04:35:03 pm »

Ask in the modding section, that's the place to ask this kind of question.
Logged

doomender

  • Bay Watcher
    • View Profile
Re: Modding for Magma
« Reply #2 on: June 12, 2009, 04:43:58 pm »

<moved>
Logged

blah28722

  • Bay Watcher
    • View Profile
Re: Modding for Magma
« Reply #3 on: June 12, 2009, 06:01:47 pm »

You could do two different things.

First, just mod your reaction_standard to include the items you want without taking in a [FUEL].

Second, you could use Gibbed's Dwarf Fortress Tweak (or whatever it is), it has both a turn-water-to-magma and enable magma buildings tool.

If you want to physically change tiles to magma, use Dtil and Tweak. With its tile editor, you just have to find a pocket of water, convert it to magma with tweak, copy the tile in Dtil, and paste it into each tile you want magma in.
Logged

doomender

  • Bay Watcher
    • View Profile
Re: Modding for Magma
« Reply #4 on: June 12, 2009, 06:09:52 pm »

Modding the reaction_standard doesn't have entries about iron or about smelting, the two things I need non fuel-consuming.
Any idea how to get those through text modding?
Logged

blah28722

  • Bay Watcher
    • View Profile
Re: Modding for Magma
« Reply #5 on: June 12, 2009, 06:18:31 pm »

I can help you. What's the exact items you're trying to smelt without consuming fuel?
Logged

doomender

  • Bay Watcher
    • View Profile
Re: Modding for Magma
« Reply #6 on: June 12, 2009, 06:21:59 pm »

Magnetite -> Iron Bars.

Iron Bars -> to pretty much everything.
Logged

blah28722

  • Bay Watcher
    • View Profile
Re: Modding for Magma
« Reply #7 on: June 12, 2009, 06:41:46 pm »

For the magnetite -> iron, put this into your reaction_standard folder.

Code: [Select]
[REACTION:MAGNETITE_IRON_MAKING]
[NAME:make iron bars from magnetite]
[SMELTER]
[REAGENT:1:STONE:NO_SUBTYPE:STONE:MAGNETITE]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:IRON]

Requiring fuel for smithing is hardcoded into the game, I believe.

You'd probably want to just add in the magma with utilities.
Logged

ein

  • Bay Watcher
  • 勝利の女神はここよ~ 早く捕まえてぇ~
    • View Profile
Re: Modding for Magma
« Reply #8 on: June 12, 2009, 06:44:00 pm »

Fuel for smithing is hardcoded.
I confirm this.

doomender

  • Bay Watcher
    • View Profile
Re: Modding for Magma
« Reply #9 on: June 12, 2009, 06:47:19 pm »

Thank you very much! I think that's it for me.
Logged

Vattic

  • Bay Watcher
  • bibo ergo sum
    • View Profile
Re: Modding for Magma
« Reply #10 on: June 12, 2009, 08:26:47 pm »

Why not just make a reaction that turned fuel into more fuel, put one coal in get 10 out say. You'll want to replace the lines under a reaction you don't use with the following:
Code: [Select]
[NAME:multiply fuel]
[SMELTER]
[REAGENT:1:BAR:NO_SUBTYPE:COAL:COKE]
[PRODUCT:100:10:BAR:NO_SUBTYPE:COAL:COKE]
That should work unless I've made some mistake of course. Oh and see in the [PRODUCT:100:10... bit you can replace that 10 with 100 to have one bar of coal turned into 100 bars.
Logged
6 out of 7 dwarves aren't Happy.
How To Generate Small Islands

doomender

  • Bay Watcher
    • View Profile
Re: Modding for Magma
« Reply #11 on: June 13, 2009, 11:59:34 am »

I actually turned COAL_to_COKE
into 100:50.
Logged

AtomicPaperclip

  • Bay Watcher
  • Who names their kid dagger anyway?
    • View Profile
Re: Modding for Magma
« Reply #12 on: June 13, 2009, 01:06:19 pm »

You could do two different things.

First, just mod your reaction_standard to include the items you want without taking in a [FUEL].

Second, you could use Gibbed's Dwarf Fortress Tweak (or whatever it is), it has both a turn-water-to-magma and enable magma buildings tool.

If you want to physically change tiles to magma, use Dtil and Tweak. With its tile editor, you just have to find a pocket of water, convert it to magma with tweak, copy the tile in Dtil, and paste it into each tile you want magma in.

Or, you could just spawn it out of nothing

Tile edit: I forget which tab it is, but check "has liquid", "liquid is magma", and change the liquid level from 0 to 7.
Logged
Dear Toady: Keep up the good work man, we appreciate you and the game beyond words.