Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Reaction to create gas  (Read 1497 times)

Andyfuji

  • Bay Watcher
  • Chocolate Trotskies
    • View Profile
Reaction to create gas
« on: July 06, 2011, 11:58:56 pm »

I was attempting to mod in the ability for my dwarves to make use of their instruments and play music. 

My plan was to make a reaction which created an instantly vaporizing "music" substance which would float around the fortress and cause my dwarves to obtain a "Urist McMusic admired a masterwork flute music today" thought or perhaps a syndrome with appropriate effects.  When the dwarves went about actually playing the music, the game would crash attempting to create the music item (In my case it was a renamed diamond with the boiling point set at 2000.)  When the item's boiling point was raised back to normal the solidified music was created normally.

Are gas-creating reactions impossible, or did I do something wrong with the "music" item?

Reaction:
Code: [Select]
[REACTION:PLAY_FLUTE]
[NAME:play flute]
[REAGENT:A:1:INSTRUMENT:ITEM_INSTRUMENT_FLUTE:NONE:NONE:NONE]
[PRESERVE_REAGENT]
[PRODUCT:100:1:None:NO_SUBTYPE:STONE:FLUTE_MUSIC]
[BUILDING:MUSIC:CUSTOM_F]
[SKILL:ALCHEMY]

Item:
Code: [Select]
[INORGANIC:FLUTE_MUSIC]
[USE_MATERIAL_TEMPLATE:STONE_TEMPLATE]
[TILE:172][IS_GEM:flute music:STP:OVERWRITE_SOLID][DISPLAY_COLOR:244:196:48][MATERIAL_VALUE:10]
[SPEC_HEAT:409]
[IGNITE_POINT:11440]
[MELTING_POINT:NONE]
[BOILING_POINT:2000]
[SOLID_DENSITY:3520]
Logged

thatkid

  • Bay Watcher
  • <Servibot> thatkid, swag percentiles: 94
    • View Profile
Re: Reaction to create gas
« Reply #1 on: July 07, 2011, 12:37:15 am »

Gas creating reactions are possible.

I don't think gas can have a quality though. What does your errorlog say?
Logged
Fame is a vapor. The only earthly certainty is oblivion.

_DivideByZero_

  • Bay Watcher
  • Not to be confused with infinity
    • View Profile
Re: Reaction to create gas
« Reply #2 on: July 07, 2011, 01:25:19 am »

Replace:
Code: [Select]
[PRODUCT:100:1:None:NO_SUBTYPE:STONE:FLUTE_MUSIC]With:
Code: [Select]
[PRODUCT:100:1:BOULDER:NONE:INORGANIC:FLUTE_MUSIC]And:
Code: [Select]
[REAGENT:A:1:INSTRUMENT:ITEM_INSTRUMENT_FLUTE:NONE:NONE:NONE]With:
Code: [Select]
[REAGENT:A:1:INSTRUMENT:ITEM_INSTRUMENT_FLUTE:NONE:NONE]
Logged
Have I now become your enemy by telling you the truth? (Gal 4:16)

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Reaction to create gas
« Reply #3 on: July 07, 2011, 08:09:55 am »

You might want to increase the boiling point on that material to at least 10000 - there have been reports that materials with very low boiling points will chill the air around them and cause dwarves to freeze to death, though that may have actually been due to other issues (specifically, said glitched materials may have also had a FIXED_TEMP of 0, and that may have been responsible for the chilling effect).
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Pan

  • Bay Watcher
    • View Profile
Re: Reaction to create gas
« Reply #4 on: July 07, 2011, 10:02:00 am »

Eat loads of beans, drink lots of water and wait four hours.
Logged