Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: I somehow broke the ash glazing reaction  (Read 1002 times)

Urist McGoombaBrother

  • Bay Watcher
  • Trust the plump helmet! ♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠
    • View Profile
I somehow broke the ash glazing reaction
« on: January 20, 2016, 01:58:12 pm »

Does there exist an [IMPROVED] token? It is the counterpart to the [NOT_IMPROVED] token used for item definitions in reactions.

I do want to improve glazed items with bands. However this reaction does also improve non-glazed items, which then cannot be glazed anymore due to the [NOT_IMPROVED] token. But removing the [NOT_IMPROVED] token from the initial glazing reaction means items can be glazed multiple times, which don't makes sense I guess. I simply added [IMPROVED], but that did not work. Any ideas how to solve that?

Code: [Select]
[REACTION:GOLD_GLAZE_JUG_IMPROVEMENT]
[NAME:add bands of gold to clay/stone jug]
[BUILDING:KILN:CUSTOM_G]
[REAGENT:glaze:150:POWDER_MISC:NONE:INORGANIC:GOLD_SLAG_GLAZE]
                [REAGENT:glaze container:1:NONE:NONE:NONE:NONE][CONTAINS:glaze][PRESERVE_REAGENT][DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:jug:1:TOOL:ITEM_TOOL_JUG:NONE:NONE]
[REACTION_CLASS:CAN_GLAZE]
[EMPTY]
[PRESERVE_REAGENT]

Format for IMPROVEMENT below is <chance>:<reagent target>:<type of improvement>:<mat tokens>
Supported types are COVERED, GLAZED, BANDS, RINGS_HANGING and SPIKES.
GLAZED is a type of item improvement (similar to "covered with <mat>").

[IMPROVEMENT:100:jug:BANDS:GET_MATERIAL_FROM_REAGENT:glaze:NONE]
[FUEL]
[SKILL:GLAZING]


Code: [Select]
[REACTION:GOLD_GLAZE_JUG]
[NAME:glaze gold clay/stone jug]
[BUILDING:KILN:CUSTOM_G]
[REAGENT:glaze:150:POWDER_MISC:NONE:INORGANIC:GOLD_SLAG_GLAZE] ANY_RAW_MATERIAL means powder/bars/boulders/globs
                [REAGENT:glaze container:1:NONE:NONE:NONE:NONE][CONTAINS:glaze][PRESERVE_REAGENT][DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:jug:1:TOOL:ITEM_TOOL_JUG:NONE:NONE]
[REACTION_CLASS:CAN_GLAZE]
[EMPTY]
[NOT_IMPROVED]
[PRESERVE_REAGENT]
[IMPROVEMENT:100:jug:GLAZED:GET_MATERIAL_FROM_REAGENT:glaze:NONE]
[FUEL]
[SKILL:GLAZING]
« Last Edit: January 23, 2016, 05:42:22 am by Urist McGoombaBrother »
Logged

nullBolt

  • Bay Watcher
    • View Profile
Re: [IMPROVED] token?
« Reply #1 on: January 20, 2016, 05:32:02 pm »

Do two separate reactions, one with [NOT_IMPROVED] and one with [IMPROVED].

Urist McGoombaBrother

  • Bay Watcher
  • Trust the plump helmet! ♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠
    • View Profile
I somehow broke the ash glazing reaction?
« Reply #2 on: January 23, 2016, 05:41:45 am »

Do two separate reactions, one with [NOT_IMPROVED] and one with [IMPROVED].

That's probably the easiest solution altough it will clutter the workshop even more.

I am somehow stuck at the ash glazing reaction. I do want to replace the initial glazing reaction, so it is only working with ash, same as the reaction for gold glazing is only working with gold.

Gold Glazing reaction - working:

Code: [Select]
[REACTION:GOLD_GLAZE_JUG]
[NAME:gold glaze clay/stone jug]
[BUILDING:KILN:CUSTOM_G]
[REAGENT:glaze:150:POWDER_MISC:NONE:INORGANIC:GOLD_SLAG_GLAZE] ANY_RAW_MATERIAL means powder/bars/boulders/globs
                [REAGENT:glaze container:1:NONE:NONE:NONE:NONE][CONTAINS:glaze][PRESERVE_REAGENT][DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:jug:1:TOOL:ITEM_TOOL_JUG:NONE:NONE]
[REACTION_CLASS:CAN_GLAZE]
[EMPTY]
[PRESERVE_REAGENT]

Format for IMPROVEMENT below is <chance>:<reagent target>:<type of improvement>:<mat tokens>
Supported types are COVERED, GLAZED, BANDS, RINGS_HANGING and SPIKES.
GLAZED is a type of item improvement (similar to "covered with <mat>").

[IMPROVEMENT:100:jug:GLAZED:GET_MATERIAL_FROM_REAGENT:glaze:NONE]
[FUEL]
[SKILL:GLAZING]

How to change it so it is working with ash only?

I added the token [REACTION_CLASS:GLAZE_ASH] to ash glaze and changed the standard reaction to this, but that did not work. :-/

Code: [Select]
[INORGANIC:ASH_GLAZE]
 [USE_MATERIAL_TEMPLATE:STONE_TEMPLATE]
 [STATE_NAME:ALL:ash glaze]
 [STATE_ADJ:ALL:ash glaze]
 [DISPLAY_COLOR:3:0:0][TILE:34]
 [SOLID_DENSITY:2000]
 [IS_STONE]
 [MATERIAL_VALUE:3]
 [NO_STONE_STOCKPILE]
 [REACTION_CLASS:GLAZE_ASH]


[REACTION:ASH_GLAZE_JUG]
 [NAME:glaze ash clay/stone jug]
 [BUILDING:KILN:CUSTOM_G]
 [REAGENT:glaze:1:ANY_RAW_MATERIAL:NONE:NONE:NONE] ANY_RAW_MATERIAL means powder/bars/boulders/globs
               [REACTION_CLASS:GLAZE_ASH]
     [REAGENT:jug:1:TOOL:ITEM_TOOL_JUG:NONE:NONE]
  [REACTION_CLASS:CAN_GLAZE]
  [EMPTY]
  [NOT_IMPROVED]
  [PRESERVE_REAGENT]
        [IMPROVEMENT:100:jug:GLAZED:GET_MATERIAL_FROM_REAGENT:glaze:NONE]
 [FUEL]
 [SKILL:GLAZING]

Cheesoburgor

  • Bay Watcher
  • [NO_SLEEP]
    • View Profile
Re: I somehow broke the ash glazing reaction?
« Reply #3 on: January 23, 2016, 07:00:23 am »


 [USE_MATERIAL_TEMPLATE:STONE_TEMPLATE]
 [IS_STONE]
 [REAGENT:glaze:1:ANY_RAW_MATERIAL:NONE:NONE:NONE] ANY_RAW_MATERIAL means powder/bars/boulders/globs

These lines would imply that the reaction needs stone instead of ash
I only took a quick look at this thread so dont judge if i misinterpreted what you wanted.
Logged
Im alive again after a 4 year break!

Urist McGoombaBrother

  • Bay Watcher
  • Trust the plump helmet! ♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠
    • View Profile
Re: I somehow broke the ash glazing reaction
« Reply #4 on: January 23, 2016, 08:01:21 am »

The original reaction from the Dwarf Fortress v42.05 Raw folder is this:

Code: [Select]
[REACTION:GLAZE_JUG]
[NAME:glaze clay/stone jug]
[BUILDING:KILN:CUSTOM_G]
[REAGENT:glaze:1:ANY_RAW_MATERIAL:NONE:NONE:NONE] ANY_RAW_MATERIAL means powder/bars/boulders/globs
[HAS_MATERIAL_REACTION_PRODUCT:GLAZE_MAT]
[REAGENT:jug:1:TOOL:ITEM_TOOL_JUG:NONE:NONE]
[REACTION_CLASS:CAN_GLAZE]
[EMPTY]
[NOT_IMPROVED]
[PRESERVE_REAGENT]

Format for IMPROVEMENT below is <chance>:<reagent/product target>:<type of improvement>:<mat tokens>
Supported types are COVERED, GLAZED, BANDS, RINGS_HANGING and SPIKES.
GLAZED is a type of item improvement (similar to "covered with <mat>").

[IMPROVEMENT:100:jug:GLAZED:GET_MATERIAL_FROM_REAGENT:glaze:GLAZE_MAT]
[FUEL]
[SKILL:GLAZING]

However, it works for all materials with certain tokens. I want to restrict it to ash only. The original code of ash glaze is this:

Code: [Select]
[INORGANIC:ASH_GLAZE]
[USE_MATERIAL_TEMPLATE:STONE_TEMPLATE]
[STATE_NAME:ALL:ash glaze]
[STATE_NAME_ADJ:ALL:ash glaze]
[DISPLAY_COLOR:3:0:0][TILE:'#']
[SOLID_DENSITY:2000]
[IS_STONE]
[MATERIAL_VALUE:5]
[NO_STONE_STOCKPILE]

My question is how to amend the glaze jug reaction, that it only works with ash glaze?

Grimlocke

  • Bay Watcher
  • *kobold noises*
    • View Profile
Re: I somehow broke the ash glazing reaction
« Reply #5 on: January 23, 2016, 11:54:13 am »

You need only this: [REAGENT:glaze:1:ANY_RAW_MATERIAL:NONE:INORGANIC:ASH_GLAZE]

As far as I know there is no way to make reactions look for specific item improvements, but you can achieve something similar by using stockpiles that only accept items of a certain improvement quality.
Logged
I make Grimlocke's History & Realism Mods. Its got poleaxes, sturdy joints and bloomeries. Now compatible with DF Revised!

Urist McGoombaBrother

  • Bay Watcher
  • Trust the plump helmet! ♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠
    • View Profile
Re: I somehow broke the ash glazing reaction
« Reply #6 on: January 24, 2016, 03:15:25 am »

Do there need to be further amendments?

Code: [Select]
[REACTION:ASH_GLAZE_JUG]
[NAME:ash glaze clay/stone jug]
[BUILDING:KILN:CUSTOM_G]
[REAGENT:glaze:1:ANY_RAW_MATERIAL:NONE:INORGANIC:ASH_GLAZE] ANY_RAW_MATERIAL means powder/bars/boulders/globs
[HAS_MATERIAL_REACTION_PRODUCT:GLAZE_MAT]
[REAGENT:jug:1:TOOL:ITEM_TOOL_JUG:NONE:NONE]
[REACTION_CLASS:CAN_GLAZE]
[EMPTY]
[PRESERVE_REAGENT]

Format for IMPROVEMENT below is <chance>:<reagent/product target>:<type of improvement>:<mat tokens>
Supported types are COVERED, GLAZED, BANDS, RINGS_HANGING and SPIKES.
GLAZED is a type of item improvement (similar to "covered with <mat>").

[IMPROVEMENT:100:jug:GLAZED:GET_MATERIAL_FROM_REAGENT:glaze:GLAZE_MAT]
[FUEL]
[SKILL:GLAZING]

This does not work. I have unglazed jugs, bars of ash and charcoal. But the reaction is red in the kiln like when there is some ingredient missing. I also did try to leave out the token [HAS_MATERIAL_REACTION_PRODUCT:GLAZE_MAT] and amended the token [IMPROVEMENT:100:jug:GLAZED:GET_MATERIAL_FROM_REAGENT:glaze:GLAZE_MAT] into [IMPROVEMENT:100:jug:GLAZED:GET_MATERIAL_FROM_REAGENT:glaze:NONE]. Still red
« Last Edit: January 24, 2016, 03:34:00 am by Urist McGoombaBrother »
Logged

scamtank

  • Bay Watcher
    • View Profile
Re: I somehow broke the ash glazing reaction
« Reply #7 on: January 24, 2016, 03:43:11 am »

Bars of ash? You mean just straight wood ash and not some ready-made ash glaze stuff like what that reaction is asking?

Try [REAGENT:glaze:150:BAR:NONE:ASH:NONE].
Logged

Urist McGoombaBrother

  • Bay Watcher
  • Trust the plump helmet! ♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠♠
    • View Profile
Re: I somehow broke the ash glazing reaction
« Reply #8 on: January 24, 2016, 04:05:16 am »

Bars of ash? You mean just straight wood ash and not some ready-made ash glaze stuff like what that reaction is asking?

I fear I don't know what you mean? The standard glazing reaction in the vanilla game does also work with bars of ash. Unless I am completely missing something, there is no way to manually make some ash glaze.

Anyway, I tried out two more versions with the bar addition. Both are working. Altough I do not understand, why the initial versions didn't, I am happy with those as well. Many, many thx. :-)

Spoiler (click to show/hide)