Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 3 4 [5] 6 7

Author Topic: Reaction Tutorial/Information  (Read 9097 times)

masterstick

  • Escaped Lunatic
    • View Profile
Re: Reaction Tutorial/Information
« Reply #60 on: April 11, 2010, 02:23:34 pm »


PLANT(STRUCTURAL):
[REAGENT:A:1:SEEDS:NONE:NONE:NONE][UNROTTEN]
[PRODUCT:100:1:PLANT:NO_SUBTYPE:GET_MATERIAL_FROM_REAGENT:A:NONE]


this doesn't work for me
the reaction wont even show up in my workshop

My understanding was that a number of us have seen custom reactions no show up in workshops.  Does it show up in the job manager?  If not, then I haven't got a clue what to tell you...it's actually the problem I'm trying to figure out right now, mostly by way of assuming I did something wrong and trying to figure out what.

As far as I'm aware, it still has problems with finding reagents in containers.

i was aware of that so i removed the seeds from the bag with the dump command with no luck so i tried the trick with the job manager which fixed it thanks
« Last Edit: April 11, 2010, 02:26:02 pm by masterstick »
Logged

madjoe5

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #61 on: April 11, 2010, 03:14:43 pm »

How would I make a reaction in which the product is usable ammo? More specifically, I want to have a job/reaction at the craftsdwarf workshop which changes 1 stone into 5 of
Spoiler: these (click to show/hide)

Upright Path

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #62 on: April 11, 2010, 05:52:24 pm »

Add the other tags to this and it should work. Heh.

[REAGENT:A:1:STONE:NONE:NONE:NONE]
[PRODUCT:100:5:AMMO:ITEM_AMMO_PELLETS:GET_MATERIAL_FROM_REAGENT:A:NONE]
Logged

Lord_Phoenix

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #63 on: April 12, 2010, 04:15:41 am »

Yeah, I was trying to get it for just the remains of the vermin. And actually, all REMAINS is fine because only vermin produce REMAINS - non-vermin create CORPSEs and CORPSEPIECEs.

oh, awesome:

[REACTION:DESTROY_VERMIN]
[NAME:incinerate vermin remains]
[BUILDING:SMELTER:CUSTOM_V]
[REAGENT:A:1:REMAINS:NONE:NONE:NONE]
[PRODUCT:100:1:BAR:NO_SUBTYPE:METAL:ADAMANTINE][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

that works. tomorrow i'll get the product to nothing (or mabye a small chance of ash) but yeah.

How did you get this to work?  I've tried putting it everywhere and it doesn't show up on the menu for smelters or in the job manager.  It pauses for a second the first time I go to the building options for a smelter after loading, so it seems to be there, but just doesn't show up at all.   The 2s scattered everywhere are driving me crazy.
« Last Edit: April 12, 2010, 05:05:25 am by Lord_Phoenix »
Logged

Askot Bokbondeler

  • Bay Watcher
  • please line up orderly
    • View Profile
Re: Reaction Tutorial/Information
« Reply #64 on: April 12, 2010, 11:17:24 am »

[REAGENT:A:1:POWDER_MISC:NONE:PLANT_MAT:WHEAT_CAVE:MILL]

whats wrong with this? is it because the flour is in a bag?

Phoebus

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #65 on: April 12, 2010, 03:09:54 pm »

[REAGENT:A:1:POWDER_MISC:NONE:PLANT_MAT:WHEAT_CAVE:MILL]

whats wrong with this? is it because the flour is in a bag?
Correct... :(
Good luck getting that flour out of the bags... ;)

When you create a powder outside of a bag container (with a custom reaction), it get stored inside (and taken from) barrels like any other foodstuff.
« Last Edit: April 12, 2010, 03:12:29 pm by Phoebus »
Logged

Upright Path

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #66 on: April 12, 2010, 03:11:58 pm »

Anything inside bags, barrels, buckets and vials cannot be used in reactions. Save for Lye, which has a special tag [CONTAINS_LYE] to handle it.
Logged

Stargrasper

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #67 on: April 12, 2010, 03:18:23 pm »

Anything inside bags, barrels, buckets and vials cannot be used in reactions. Save for Lye, which has a special tag [CONTAINS_LYE] to handle it.

While presently true, there's a good chance Toady will do something about that for us.  I have no clue if he's actually planning on it, but if the fact that we have an object testing arena and raws for every save file means anything, it's that he's strongly supporting modders.
Logged

Phoebus

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #68 on: April 12, 2010, 03:23:24 pm »

Anything inside bags, barrels, buckets and vials cannot be used in reactions. Save for Lye, which has a special tag [CONTAINS_LYE] to handle it.
Special [SEARCH_X] and [BRING_CONTAINER] tags should be added for the custom reactions.

Bar reactions would use [SEARCH_BIN]; foodstuff would use [SEARCH_BARREL]; seeds, powders, leaves, etc. would use [SEARCH_BARREL], [SEARCH_BAG] & [BRING_CONTAINER], etc.
Those are to be added right after the [REAGENT] tag.

Just adding [BRING_CONTAINER] and scanning the global item index for correct items (no Dump, Forbidden or Task flags, etc.) should fix the problem.
Logged

Erk

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #69 on: April 12, 2010, 03:23:54 pm »

Hmm. Since I can't get bones to gen properly, have we figured out a way to create a full corpse?
Logged
'River' cancels eat: Food is problematic.

Stargrasper

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #70 on: April 12, 2010, 04:52:40 pm »

Hmm. Since I can't get bones to gen properly, have we figured out a way to create a full corpse?

I'm not looking back but...weren't our earlier attempts at creating creatures giving us full corpses?
Logged

Warlord255

  • Bay Watcher
  • Master Building Designer
    • View Profile
Re: Reaction Tutorial/Information
« Reply #71 on: April 12, 2010, 05:56:07 pm »

[REAGENT:A:1:POWDER_MISC:NONE:PLANT_MAT:WHEAT_CAVE:MILL]

whats wrong with this? is it because the flour is in a bag?
Correct... :(
Good luck getting that flour out of the bags... ;)

When you create a powder outside of a bag container (with a custom reaction), it get stored inside (and taken from) barrels like any other foodstuff.

Actually, if you look at the Gypsum plaster powder reaction, it'll show you how to create a powder and have it put into a bag. Doing it the other way around, however, is a lot trickier and perhaps impossible at the moment.
Logged
DF Vanilla-Spice Revised: Better balance, more !!fun!!
http://www.bay12forums.com/smf/index.php?topic=173907.msg7968772#msg7968772

LeadfootSlim on Steam, LeadfootSlim#1851 on Discord. Hit me up!

Upright Path

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #72 on: April 12, 2010, 08:14:10 pm »

[BRING_CONTAINER]?

Is that a new tag?
Logged

Askot Bokbondeler

  • Bay Watcher
  • please line up orderly
    • View Profile
Re: Reaction Tutorial/Information
« Reply #73 on: April 14, 2010, 10:51:37 am »

BAKE_BREAD: Unrecognized Reaction Token: BRING_CONTAINER

Phoebus

  • Bay Watcher
    • View Profile
Re: Reaction Tutorial/Information
« Reply #74 on: April 14, 2010, 11:00:07 am »

No, [BRING_CONTAINER] is not a new tag, it's a suggestion.
Currently Toady uses [CONTAINS_LYE] and [CONTAINS_SAND] as a workaround hack for the lack of container support in the reaction code. I was saying that adding a special tag to tell the engine to search inside containers & bring the container could fix the reaction problem for all types of material that requires containers.
Logged
Pages: 1 ... 3 4 [5] 6 7