Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Reaction trouble  (Read 524 times)

Lord Aether

  • Bay Watcher
  • FOR THE DWARVES!!!!
    • View Profile
Reaction trouble
« on: July 30, 2010, 10:46:16 am »

So, I want to make a blanket item...  I have:

Spoiler (click to show/hide)

In a file that is set up properly (are other toys that work in it).  Then, because I don't want the blanket to be made just normally, it isn't in the entity folder.  Instead I have made a reaction:

Spoiler (click to show/hide)

Which seems to crash the game.  The dwarf properly takes 2 full stacks of cloth (not silk, however) and a stack of thread, sits there for a while, then the game exits.  I also tried:

Spoiler (click to show/hide)

Which produces nothing, but at least doesn't crash the game.

Any help you be appreciated.
Logged
The bunny likes you.

Shukaro

  • Bay Watcher
    • View Profile
Re: Reaction trouble
« Reply #1 on: July 30, 2010, 10:50:35 am »

You need to have an entry in the entity file to be able to make this item. Without it, bad things happen.
Logged
Urist McHauler Cancels Give Food: Patient Insane
------------------------------------------------------------------
Mouse Fortress | Custom Menu and Hotkey Framework
Dwarven Higher Learning Mod | Alternative Skill Training

Lord Aether

  • Bay Watcher
  • FOR THE DWARVES!!!!
    • View Profile
Re: Reaction trouble
« Reply #2 on: July 30, 2010, 10:53:35 am »

I know for a fact that other things work fine in this way, without an entry in the entity file...  For instance, I have Rhenaya's thunderbluss mod, which doesn't set the thunderbluss as a weapon for dwarves, so it counts it as foreign.
Logged
The bunny likes you.

Grimlocke

  • Bay Watcher
  • *kobold noises*
    • View Profile
Re: Reaction trouble
« Reply #3 on: July 30, 2010, 11:30:08 am »

The last reaction needs a :NONE behind the GET_MATERIAL_FROM_REAGENT:A

I also dont think the SILK in the reagent works anymore. Add ANY_SILK_MATERIAL as a seperate tag behind the reagent.
Logged
I make Grimlocke's History & Realism Mods. Its got poleaxes, sturdy joints and bloomeries. Now compatible with DF Revised!

Lord Aether

  • Bay Watcher
  • FOR THE DWARVES!!!!
    • View Profile
Re: Reaction trouble
« Reply #4 on: July 30, 2010, 11:56:47 am »

Grimlocke: Thank you for your help.

I found my real problem, which was that I used ITEM_TOY rather than the correct TOY.  The final reaction for completeness sake:

Spoiler: Correct Reaction (click to show/hide)
Logged
The bunny likes you.

Grimlocke

  • Bay Watcher
  • *kobold noises*
    • View Profile
Re: Reaction trouble
« Reply #5 on: July 30, 2010, 03:37:05 pm »

Aha didnt even notice that.

The errorlog can help a lot with these things by the way.
Logged
I make Grimlocke's History & Realism Mods. Its got poleaxes, sturdy joints and bloomeries. Now compatible with DF Revised!

Lord Aether

  • Bay Watcher
  • FOR THE DWARVES!!!!
    • View Profile
Re: Reaction trouble
« Reply #6 on: July 31, 2010, 05:08:18 am »

The errorlog can help a lot with these things by the way.

Which is where I actually found that  :P  I've never opened the errorlog before this (never had a reaction that actually crashed the game before o_O)
Logged
The bunny likes you.