Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Ice/Water  (Read 1301 times)

Lightbulb

  • Bay Watcher
    • View Profile
Ice/Water
« on: February 24, 2009, 06:48:26 pm »

Hi,

I'm working on a mod that is based on the idea of living on glaciers and so requires mined-out ice to be used as a resource in things like building door and possibly into weapons (although bone is another option I am considering). I am having trouble working out how to use it in reactions.

Could anyone help?
Logged

woose1

  • Bay Watcher
  • Yay for bandwagons!
    • View Profile
Re: Ice/Water
« Reply #1 on: February 24, 2009, 06:54:22 pm »

Ice rocks are actually called water.
Possibly that would be your problem?
I need more information.
Logged

Lightbulb

  • Bay Watcher
    • View Profile
Re: Ice/Water
« Reply #2 on: February 24, 2009, 07:09:18 pm »

I'm quite new to modding. Essentially I am trying to create a reaction that will turn 'water' (the mined out ice) into a rock called 'ice'. The ice could then be used at a masons workshop and so on. Do I simply need to create a reaction like below:

Spoiler (click to show/hide)

What I am unsure about is the reagent and products. I can't seem to find the 'Water' in any of the matgloss files. And what the product would be if I wanted to produce Ice as a rock, I know I will then need to add it as an item to that file but where?
Logged

LegoLord

  • Bay Watcher
  • Can you see it now?
    • View Profile
Re: Ice/Water
« Reply #3 on: February 24, 2009, 07:15:35 pm »

Ice can already be mined out and used like stone.  It's just that the items will melt indoors.  Constructions, however, will not melt.
Logged
"Oh look there is a dragon my clothes might burn let me take them off and only wear steel plate."
And this is how tinned food was invented.
Alternately: The Brick Testament. It's a really fun look at what the bible would look like if interpreted literally. With Legos.
Just so I remember

woose1

  • Bay Watcher
  • Yay for bandwagons!
    • View Profile
Re: Ice/Water
« Reply #4 on: February 24, 2009, 07:21:54 pm »

Ice can already be mined out and used like stone.  It's just that the items will melt indoors.  Constructions, however, will not melt.
._.
I don't know about you, but when I mine out "Ice" in a glacier, the stone I get i s called 'Water', and can be used only for constructions.
Either way, you didn't answer the poor gents questions.
Logged

LegoLord

  • Bay Watcher
  • Can you see it now?
    • View Profile
Re: Ice/Water
« Reply #5 on: February 24, 2009, 07:25:15 pm »

Ice can already be mined out and used like stone.  It's just that the items will melt indoors.  Constructions, however, will not melt.
._.
I don't know about you, but when I mine out "Ice" in a glacier, the stone I get i s called 'Water', and can be used only for constructions.
Either way, you didn't answer the poor gents questions.
I'm saying his question is irrelevant.  If you only had ice, or if the workshop was right next to the ice, your masons would use it.  And, as previously stated, even though it is called water, it is still a stone.
Logged
"Oh look there is a dragon my clothes might burn let me take them off and only wear steel plate."
And this is how tinned food was invented.
Alternately: The Brick Testament. It's a really fun look at what the bible would look like if interpreted literally. With Legos.
Just so I remember

PTTG??

  • Bay Watcher
  • Kringrus! Babak crulurg tingra!
    • View Profile
    • http://www.nowherepublishing.com
Re: Ice/Water
« Reply #6 on: February 24, 2009, 07:35:38 pm »

Sadly, water boulders do not have raw entries and no-one has been able to make a reaction using it yet.

But I have good news- in the next version, this appears to have been changed.
Logged
A thousand million pool balls made from precious metals, covered in beef stock.

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Ice/Water
« Reply #7 on: February 24, 2009, 10:46:31 pm »

It is used in blizzard men's itemcorpses, and that uses the same thing as reactions. [ITEMCORPSE:STONE:NO_SUBTYPE:WATER:NO_MATGLOSS]

Add this to the matgloss_stone_mineral.txt file
[MATGLOSS_STONE:ICE]
[NAME:ice][COLOR:3:0:1][TILE:15]

and try this reaction
[REACTION:ICE]
[NAME:make Ice from ice]
[SMELTER]
[REAGENT:1:STONE:NO_SUBTYPE:WATER:NO_MATGLOSS]
[PRODUCT:100:1:STONE:NO_SUBTYPE:STONE:ICE]

This should take water stones and turn them into ice stones that can be used at the masons workshop.

For the weapons add this to matgloss_metal.txt
[MATGLOSS_METAL:ICE_METAL]
[NAME:tempered ice][ADJ:ice][COLOR:3:0:1]
[VALUE:10]
[SPEC_HEAT:420]
[MELTING_POINT:12768]
[BOILING_POINT:15150]
[WEAPON][WEAPON_RANGED][AMMO][DIGGER][ARMOR][ANVIL]
[DAMAGE_PERC:100]
[BLOCK_PERC:100]
[SOLID_DENSITY:7850]

and this reaction
[REACTION:CREATE_ICE_METAL]
[NAME:temper ice]
[REAGENT:1:STONE:NO_SUBTYPE:WATER:NO_MATGLOSS]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:ICE_METAL]

This should take normal ice stones and turn them into tempered ice, which is equivalent to iron.
« Last Edit: February 28, 2009, 02:33:12 am by i2amroy »
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Lightbulb

  • Bay Watcher
    • View Profile
Re: Ice/Water
« Reply #8 on: February 25, 2009, 03:49:01 pm »

I just tried it out. When I build the smelter and create the job the dwarf takes a block of 'water' and the block is used up but no product is produced. Any ideas why?
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Ice/Water
« Reply #9 on: February 25, 2009, 05:10:57 pm »

Did you put all those lines in correctly?

That setup works perfectly, if you don't mind making your ice products using a fire in the metalsmith's forge...
Makes absolutely no sense to me, but it actually works fine.
BTW i2amroy:
Quote
add this to matgloss_metal.txt
« Last Edit: February 25, 2009, 05:12:28 pm by jaybud4 »
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

woose1

  • Bay Watcher
  • Yay for bandwagons!
    • View Profile
Re: Ice/Water
« Reply #10 on: February 25, 2009, 09:59:58 pm »

I feel like a cheater.
Goblin: "Oi, look at em' dwarvies? Why they be wearin' ic-OH GOD THE PAIN!"
Urist'Mc'Cheater: "Hax lulz"
Logged

Lightbulb

  • Bay Watcher
    • View Profile
Re: Ice/Water
« Reply #11 on: February 26, 2009, 06:57:10 am »

I only used the added Ice to the matgloss_stone_mineral.txt and the reaction to turn the 'water' into ice. Surely the others aren't needed for just making Ice rocks (I am not worrying about weapons for the moment). Does it matter where in the matgloss file I added it?
Logged

Shakma

  • Bay Watcher
    • View Profile
Re: Ice/Water
« Reply #12 on: February 26, 2009, 08:36:22 am »

You need to regen a new world for that if you didn't already.
Logged

Blakmane

  • Bay Watcher
    • View Profile
Re: Ice/Water
« Reply #13 on: February 27, 2009, 07:26:22 am »

there's a mistake in the above code.

[PRODUCT:100:1:STONE_NO_SUBTYPE:STONE:ICE]

should be

[PRODUCT:100:1:STONE:NO_SUBTYPE:STONE:ICE]
Logged

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Ice/Water
« Reply #14 on: February 28, 2009, 02:32:46 am »

Oh, my bad, sorry. Fixed.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.
Pages: [1] 2