Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Can anyone tell me what I did wrong here?  (Read 856 times)

IncompetentFortressMaker

  • Bay Watcher
  • [NATURAL_SKILL:MODDING:2]
    • View Profile
Can anyone tell me what I did wrong here?
« on: January 09, 2020, 04:31:16 pm »

For some reason, the plant detailed below will not give seeds when its growths are eaten (no other part of the plant is edible), but will give seeds when its growths are brewed into alcohol. How can this be?
Code: [Select]
[PLANT:IBAM_RAZOR_THORN] fictional - made with help of Random Raw Creator (RRC) 0.3.1 http://www.bay12forums.com/smf/index.php?topic=79875.0
[NAME:razor thorn][NAME_PLURAL:razor thorns][ADJ:razor thorn]
[USE_MATERIAL_TEMPLATE:STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE]
[MATERIAL_VALUE:1]
[BASIC_MAT:LOCAL_PLANT_MAT:STRUCTURAL]
[PICKED_TILE:13][PICKED_COLOR:2:0:1]
[DEAD_PICKED_TILE:182][DEAD_PICKED_COLOR:6:0:0]
[GROWDUR:332][VALUE:2]
[USE_MATERIAL_TEMPLATE:THORN:FRUIT_TEMPLATE]
[STATE_COLOR:ALL:MINT_GREEN]
[DISPLAY_COLOR:2:0:1]
[MATERIAL_VALUE:2]
[EDIBLE_VERMIN]
[EDIBLE_RAW]
[EDIBLE_COOKED]
[STOCKPILE_PLANT_GROWTH]
[MATERIAL_REACTION_PRODUCT:DRINK_MAT:LOCAL_PLANT_MAT:DRINK]
[MATERIAL_REACTION_PRODUCT:SEED_MAT:LOCAL_PLANT_MAT:SEED]
[USE_MATERIAL_TEMPLATE:DRINK:PLANT_ALCOHOL_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:frozen prickling rum]
[STATE_NAME_ADJ:LIQUID:prickling rum]
[STATE_NAME_ADJ:GAS:boiling prickling rum]
[STATE_COLOR:ALL:COBALT]
[MATERIAL_VALUE:2]
[DISPLAY_COLOR:5:0:0]
[EDIBLE_RAW]
[EDIBLE_COOKED]
[PREFIX:NONE]
[DRINK:LOCAL_PLANT_MAT:DRINK]
[USE_MATERIAL_TEMPLATE:SEED:SEED_TEMPLATE]
[MATERIAL_VALUE:1]
[EDIBLE_VERMIN]
[EDIBLE_COOKED]
[STATE_COLOR:ALL:GRAY]
[DISPLAY_COLOR:0:0:1]
[SEED:razor thorn seed:razor thorn seeds:0:0:1:LOCAL_PLANT_MAT:SEED]
[SUMMER][WINTER]
[FREQUENCY:100]
[CLUSTERSIZE:5]
[PREFSTRING:blade-shaped thorns]
[WET]
[BIOME:SUBTERRANEAN_WATER]
[UNDERGROUND_DEPTH:1:3]
[SHRUB_TILE:28]
[DEAD_SHRUB_TILE:28]
[SHRUB_COLOR:5:0:1]
[DEAD_SHRUB_COLOR:0:0:1]
[GROWTH:SUMMER_THORNS]
[GROWTH_NAME:razor thorn thorn:STP]
[GROWTH_ITEM:PLANT_GROWTH:NONE:LOCAL_PLANT_MAT:THORN]
[GROWTH_DENSITY:200]
[GROWTH_TIMING:102000:201600]
[GROWTH_PRINT:13:13:2:0:1:ALL:1]
[GROWTH:WINTER_THORNS]
[GROWTH_NAME:razor thorn thorn:STP]
[GROWTH_ITEM:PLANT_GROWTH:NONE:LOCAL_PLANT_MAT:THORN]
[GROWTH_DENSITY:200]
[GROWTH_TIMING:303600:403200]
[GROWTH_PRINT:13:13:2:0:1:ALL:1]
I did have to do some modifying from what RRC gave me, hence why I'm asking here whether I did something wrong (presumably I did...)

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Can anyone tell me what I did wrong here?
« Reply #1 on: January 10, 2020, 12:49:51 am »

Both of the GROWTH records below are missing [GROWTH_HAS_SEED]

reason why brewing produces a SEED is because vanilla brewing reactions take a material with DRINK_MAT, and then assumes said material also has a connected SEED_MAT to produce seeds from brewing

as such as below:

Code: [Select]
[REACTION:BREW_DRINK_FROM_PLANT_GROWTH]
[NAME:brew drink from fruit]
[BUILDING:STILL:CUSTOM_F]
[REAGENT:plant:1:PLANT_GROWTH:NONE:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:DRINK_MAT]
[UNROTTEN]
[REAGENT:barrel/pot:1:NONE:NONE:NONE:NONE]
[EMPTY]
[FOOD_STORAGE_CONTAINER] barrel or any non-absorbing tool with FOOD_STORAGE
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[PRODUCT:100:5:DRINK:NONE:GET_MATERIAL_FROM_REAGENT:plant:DRINK_MAT]
[PRODUCT_TO_CONTAINER:barrel/pot]
[PRODUCT_DIMENSION:150]
[PRODUCT:100:1:SEEDS:NONE:GET_MATERIAL_FROM_REAGENT:plant:SEED_MAT] <-- assumes the inputted growth has a SEED material in the parent plant, for plants that don't have SEEDs this produces generic unusable seeds
[SKILL:BREWING]
Logged

IncompetentFortressMaker

  • Bay Watcher
  • [NATURAL_SKILL:MODDING:2]
    • View Profile
Re: Can anyone tell me what I did wrong here?
« Reply #2 on: January 10, 2020, 03:24:51 pm »

Much thanks! :)