Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Chocolate trees  (Read 1119 times)

Kofthefens

  • Bay Watcher
  • Keep calm and OH GOD CAPYBARAS
    • View Profile
    • Marshland Games
Chocolate trees
« on: September 13, 2011, 10:49:24 pm »

I was trying to make cacao trees harvestable (to get chocolate). However, as I am new to modding, this code is probably hideous. When I try it, cacao trees act like normal (can't be harvested). What am I doing wrong?

Code: [Select]
[PLANT:CACAO]
[NAME:cacao tree][NAME_PLURAL:cacao trees][ADJ:cacao tree]
[USE_MATERIAL_TEMPLATE:STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE]
    [MATERIAL_VALUE:5]
[BASIC_MAT:LOCAL_PLANT_MAT:STRUCTURAL]
[EDIBLE_RAW]
[EDIBLE_COOKED]
[PICKED_TILE:166][PICKED_COLOR:6:0:0]
[GROWDUR:300][VALUE:5]
    [DRINK:LOCAL_PLANT_MAT:DRINK]
    [SPRING][SUMMER][AUTUMN][WINTER]
    [FREQUENCY:100]
    [CLUSTERSIZE:5]
[USE_MATERIAL_TEMPLATE:WOOD:WOOD_TEMPLATE]
[STATE_NAME:ALL_SOLID:cacao wood]
[STATE_ADJ:ALL_SOLID:cacao wood]
[PREFIX:NONE]
[TREE:LOCAL_PLANT_MAT:WOOD][TREE_TILE:138]
[PREFSTRING:flowers]
[WET][DRY]
[BIOME:ANY_TROPICAL]
    [SHRUB_TILE:132]
    [DEAD_SHRUB_TILE:132]
[SHRUB_COLOR:6:1:0]
[DEAD_SHRUB_COLOR:6:0:0]
[SAPLING]
Logged
I don't care about your indigestion-- How are you is a greeting, not a question.

The epic of Îton Sákrith
The Chronicles of HammerBlaze
My website - Free games

MrWiggles

  • Bay Watcher
  • Doubt Everything
    • View Profile
Re: Chocolate trees
« Reply #1 on: September 13, 2011, 10:55:55 pm »

To my knowledge trees arent harvestable.
Logged
Doesn't like running from bears = clearly isn't an Eastern European
I'm Making a Mush! Navitas: City Limits ~ Inspired by Dresden Files and SCP.
http://www.bay12forums.com/smf/index.php?topic=113699.msg3470055#msg3470055
http://www.tf2items.com/id/MisterWigggles666#

Kofthefens

  • Bay Watcher
  • Keep calm and OH GOD CAPYBARAS
    • View Profile
    • Marshland Games
Re: Chocolate trees
« Reply #2 on: September 13, 2011, 10:58:38 pm »

That's the problem. I want to make them harvestable. How do I do that?
Logged
I don't care about your indigestion-- How are you is a greeting, not a question.

The epic of Îton Sákrith
The Chronicles of HammerBlaze
My website - Free games

Kweri

  • Bay Watcher
    • View Profile
Re: Chocolate trees
« Reply #3 on: September 13, 2011, 11:46:33 pm »

That's the problem. I want to make them harvestable. How do I do that?
You can't in a direct fashion. What you can do is create a reaction that turns their wood into whatever product you want - but you'd have to cut the tree down to get it.
Logged

Kofthefens

  • Bay Watcher
  • Keep calm and OH GOD CAPYBARAS
    • View Profile
    • Marshland Games
Re: Chocolate trees
« Reply #4 on: September 14, 2011, 12:26:16 am »

Well here's what I have:

Code: [Select]
[REACTION:MAKE_CHOCOLATE]
[NAME:make chocolate]
[BUILDING:KITCHEN:CUSTOM_O]
[REAGENT:cacao_wood:150:WOOD:NONE:CACAO]
[PRODUCT:100:5:FOOD:NONE:GET_MATERIAL_FROM_REAGENT:chocolate:FOOD_MAT]
[PRODUCT_DIMENSION:150]
[SKILL:COOKING]
What's wrong this time?
By the way, thanks for your help. I am completely new to modding, so I apologize for my ignorance.
Logged
I don't care about your indigestion-- How are you is a greeting, not a question.

The epic of Îton Sákrith
The Chronicles of HammerBlaze
My website - Free games

TomiTapio

  • Bay Watcher
  • OldGenesis since 2012
    • View Profile
    • My Flickr animal photos
Re: Chocolate trees
« Reply #5 on: September 14, 2011, 03:00:39 am »


[REACTION:MAKE_CHOCOLATE]
   [NAME:make chocolate]
   [BUILDING:KITCHEN:CUSTOM_O]
   [REAGENT:cacao_wood:150:WOOD:NONE:CACAO]
   [PRODUCT:100:5:FOOD:NONE:GET_MATERIAL_FROM_REAGENT:chocolate:FOOD_MAT]
      [PRODUCT_DIMENSION:150]
   [SKILL:COOKING]
What's wrong this time?
product tries to access a reagent called "chocolate", which isn't there. And I don't think your tree has a FOOD_MAT because it's a tree.
Try making an other cacao non-tree plant (bush) and have the from-tree reaction produce its mill or extract or structural material.

Genesis mod has:
Spoiler (click to show/hide)
Logged
==OldGenesis mod== by Deon & TomiTapio. Five wood classes, four leather classes. Nine enemy civs. So much fine-tuning.
47.05e release: http://dffd.bay12games.com/who.php?id=1538
OldGenesis screenshots: https://twitter.com/hashtag/OldGenesis?src=hashtag_click&f=image
My Finnish language file: http://dffd.bay12games.com/file.php?id=14884

Flare

  • Bay Watcher
    • View Profile
Re: Chocolate trees
« Reply #6 on: September 14, 2011, 03:12:49 am »

That's the problem. I want to make them harvestable. How do I do that?

Make it some sort of shrub, or create a workshop where the trees are purportedly located.
Logged

Kofthefens

  • Bay Watcher
  • Keep calm and OH GOD CAPYBARAS
    • View Profile
    • Marshland Games
Re: Chocolate trees
« Reply #7 on: September 14, 2011, 04:53:31 pm »

Thanks. In case anybody is interested:
Code: [Select]
[PLANT:CHOCOLATE_TREE]
   [NAME:chocolate][NAME_PLURAL:chocolate][ADJ:chocolate]
   [USE_MATERIAL_TEMPLATE:STRUCTURAL:STRUCTURAL_PLANT_TEMPLATE]
    [MATERIAL_VALUE:5]
    [BASIC_MAT:LOCAL_PLANT_MAT:STRUCTURAL]
[EDIBLE_RAW]
[EDIBLE_COOKED]
[PICKED_TILE:166][PICKED_COLOR:6:0:0]
[GROWDUR:300][VALUE:5]
[USE_MATERIAL_TEMPLATE:DRINK:PLANT_ALCOHOL_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:frozen dwarven cacao][STATE_NAME_ADJ:LIQUID:dwarven cacao][STATE_NAME_ADJ:GAS:boiling dwarven cacao]
[MATERIAL_VALUE:4][DISPLAY_COLOR:6:0:0][EDIBLE_RAW][PREFIX:NONE]
[DRINK:LOCAL_PLANT_MAT:DRINK]
[USE_MATERIAL_TEMPLATE:MILL:PLANT_POWDER_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:dwarven chocolate powder]
[MATERIAL_VALUE:20][DISPLAY_COLOR:6:0:0][EDIBLE_VERMIN][EDIBLE_COOKED][EDIBLE_RAW][PREFIX:NONE]
[MILL:LOCAL_PLANT_MAT:MILL]
[USE_MATERIAL_TEMPLATE:EXTRACT:PLANT_EXTRACT_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:frozen dwarven cacao butter][STATE_NAME_ADJ:LIQUID:dwarven cacao butter][STATE_NAME_ADJ:GAS:dwarven cacao butter]
[MATERIAL_VALUE:20][DISPLAY_COLOR:6:0:1][EDIBLE_VERMIN][EDIBLE_COOKED][EDIBLE_RAW][EXTRACT_STORAGE:BARREL][PREFIX:NONE]
[EXTRACT_BARREL:LOCAL_PLANT_MAT:EXTRACT]
[USE_MATERIAL_TEMPLATE:SEED:SEED_TEMPLATE][MATERIAL_VALUE:1]
[SEED:cave cacao pip:cave cacao pips:6:0:0:LOCAL_PLANT_MAT:SEED]
[SPRING][SUMMER][AUTUMN][WINTER]
[FREQUENCY:100]
[CLUSTERSIZE:5]
[PREFSTRING:tasty goodness]
[WET][DRY]
[BIOME:ANY_TROPICAL]
[SHRUB_TILE:132]
[DEAD_SHRUB_TILE:132]
[SHRUB_COLOR:4:0:0]
[DEAD_SHRUB_COLOR:0:0:1]
Logged
I don't care about your indigestion-- How are you is a greeting, not a question.

The epic of Îton Sákrith
The Chronicles of HammerBlaze
My website - Free games