Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: Construction Yard Mod  (Read 5188 times)

merp

  • Bay Watcher
    • View Profile
Construction Yard Mod
« on: October 08, 2013, 12:44:59 am »

So, I'm trying my hand at making a mod.  Thanks to Putnam for all his help so far.

Its basically a building that is for macroprojects, it is called a construction yard and mass produces blocks of granite, wood, or gabbro for magma safe productions.  The way it works is, you build the 5x5 construction yard, and you haul enough stones or logs to make a tool item called a "palette".  Palletes come in large and small sizes.  You then build a 1 tile building called a "supply shed" near your construction site, then use the "unpack" options to transform the palette into blocks.

It only takes 5 boulders to make 25 blocks, or 10 to make 50, giving you a net discount of 5 to 10 free blocks.

Here is the code below.  If anybody has any ideas or suggestions, feel free.  (I'm guessing I have to make a new world for this to work, correct?)

Code: [Select]
building_construction_yard

[OBJECT:BUILDING]

[BUILDING_WORKSHOP:CONSTRUCTION_YARD]
[NAME:Construction Yard]
[NAME_COLOR:7:0:1]
[DIM:5:5]
[WORK_LOCATION:3:3]
[BUILD_LABOR:MASON]
[BUILD_KEY:CUSTOM_SHIFT_Y]
[BLOCK:1:0:0:0:0:0]
[BLOCK:2:0:0:0:0:0]
[BLOCK:3:0:0:0:0:0]
[BLOCK:4:0:0:0:0:0]
[BLOCK:5:0:0:0:0:0]
[TILE:0:1:' ':' ':' ':' ':' ']
[TILE:0:2:' ':' ':' ':' ':' ']
[TILE:0:3:' ':' ':07:' ':' ']
[TILE:0:4:' ':' ':' ':' ':' ']
[TILE:0:5:' ':' ':' ':' ':' ']
[COLOR:0:1:0:0:0:0:0:0:0:0:0]
[COLOR:0:2:0:0:0:0:0:0:0:0:0]
[COLOR:0:3:0:0:0:0:0:0:0:0:0]
[COLOR:0:4:0:0:0:0:0:0:0:0:0]
[COLOR:0:5:0:0:0:0:0:0:0:0:0]
[TILE:1:1:' ':' ':' ':' ':' ']
[TILE:1:2:' ':07:07:07:' ']
[TILE:1:3:' ':07:' ':07:' ']
[TILE:1:4:' ':07:07:07:' ']
[TILE:1:5:' ':' ':' ':' ':' ']
[COLOR:1:1:0:0:0:0:0:0:0:0:0]
[COLOR:1:2:0:0:0:0:0:0:0:0:0]
[COLOR:1:3:0:0:0:0:0:0:0:0:0]
[COLOR:1:4:0:0:0:0:0:0:0:0:0]
[COLOR:1:5:0:0:0:0:0:0:0:0:0]
[TILE:2:1:07:07:07:07:07:]
[TILE:2:2:07:' ':' ':' ':07]
[TILE:2:3:07:' ':' ':' ':07]
[TILE:2:4:07:' ':' ':' ':07]
[TILE:2:5:07:07:07:07:07:]
[COLOR:2:1:0:0:0:0:0:0:0:0:0]
[COLOR:2:2:0:0:0:0:0:0:0:0:0]
[COLOR:2:3:0:0:0:0:0:0:0:0:0]
[COLOR:2:4:0:0:0:0:0:0:0:0:0]
[COLOR:2:5:0:0:0:0:0:0:0:0:0]
[TILE:3:1:22:22:' ':254:254]
[TILE:3:2:22:22:' ':254:254]
[TILE:3:3:07:' ':' ':' ':' ']
[TILE:3:4:' ':' ':' ':' ':07]
[TILE:3:5:07:' ':' ':07:07]
[COLOR:3:1:0:0:0:0:0:0:0:0:0]
[COLOR:3:2:0:0:0:0:0:0:0:0:0]
[COLOR:3:3:0:0:0:0:0:0:0:0:0]
[COLOR:3:4:0:0:0:0:0:0:0:0:0]
[COLOR:3:5:0:0:0:0:0:0:0:0:0]
[BUILD_ITEM:2:TRAPPARTS:NONE:NONE:NONE][CAN_USE_ARTIFACT]
[BUILD_ITEM:2:TRAPCOMP:ITEM_TRAPCOMP_LARGESERRATEDDISC:NONE:NONE][CAN_USE_ARTIFACT]
[BUILD_ITEM:3:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]

[BUILDING_WORKSHOP:SUPPLY_SHED]
[NAME:Supply Shed]
[NAME_COLOR:7:0:1]
[DIM:1:1]
[WORK_LOCATION:3:3]
[BUILD_LABOR:MASON]
[BUILD_KEY:CUSTOM_SHIFT_Y]
[BLOCK:1:0]
[TILE:0:1:' ']
[COLOR:0:1:0]
[TILE:1:1:251]
[COLOR:1:1:0]
[BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]
Code: [Select]
item_tool_palette

[OBJECT:ITEM]

[ITEM_TOOL:ITEM_TOOL_SMALL_BRICK_PALETTE]
[NAME:palette:palettes]
[ADJECTIVE:small brick]
[VALUE:100]
[TILE:11]
[WEIGHT:3000]

[ITEM_TOOL:ITEM_TOOL_LARGE_BRICK_PALETTE]
[NAME:palette:palettes]
[ADJECTIVE:large brick]
[VALUE:250]
[TILE:11]
[WEIGHT:6000]

[ITEM_TOOL:ITEM_TOOL_SMALL_MAGMASAFE_BRICK_PALETTE]
[NAME:palette:palettes]
[ADJECTIVE:small magmasafe brick]
[VALUE:100]
[TILE:11]
[WEIGHT:3000]

[ITEM_TOOL:ITEM_TOOL_LARGE_MAGMASAFE_BRICK_PALETTE]
[NAME:palette:palettes]
[ADJECTIVE:large magmasafe brick]
[VALUE:250]
[TILE:11]
[WEIGHT:6000]

[ITEM_TOOL:ITEM_TOOL_SMALL_LUMBER_PALETTE]
[NAME:palette:palettes]
[ADJECTIVE:small lumber]
[VALUE:100]
[TILE:11]
[WEIGHT:3000]

[ITEM_TOOL:ITEM_TOOL_LARGE_LUMBER_PALETTE]
[NAME:palette:palettes]
[ADJECTIVE:large lumber]
[VALUE:250]
[TILE:11]
[WEIGHT:6000]
Code: [Select]
reaction_constructionyard

[OBJECT:REACTION]

[REACTION:MAKE_SMALL_BRICK_PALETTE]
[NAME:Make Small Brick Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_S]
[REAGENT:A:5:BOULDER:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_SMALL_BRICK_PALETTE:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:MASONRY]

[REACTION:MAKE_LARGE_BRICK_PALETTE]
[NAME:Make Large Brick Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_L]
[REAGENT:A:10:BOULDER:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_LARGE_PALETTE:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:MASONRY]

[REACTION:MAKE_SMALL_MAGMASAFE_BRICK_PALETTE]
[NAME:Make Small Magmasafe Brick Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_M]
[REAGENT:A:5:BOULDER:NONE:NONE:NONE][MAGMA_BUILD_SAFE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_SMALL_PALETTE:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:MASONRY]

[REACTION:MAKE_LARGE_MAGMASAFE_BRICK_PALETTE]
[NAME:Make Large Magmasafe Brick Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_SHIFT_M]
[REAGENT:A:10:BOULDER:NONE:NONE:NONE][MAGMA_BUILD_SAFE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_LARGE_PALETTE:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:MASONRY]

[REACTION:MAKE_SMALL_LUMBER_PALETTE]
[NAME:Make Small Lumber Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_W]
[REAGENT:A:5:WOOD:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_SMALL_LUMBER_PALETTE:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:CAPENTRY]

[REACTION:MAKE_LARGE_LUMBER_PALETTE]
[NAME:Make Large Lumber Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_SHIFT_W]
[REAGENT:A:10:WOOD:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_LARGE_LUMBER_PALETTE:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:CAPENTRY]

[REACTION:UNPACK_SMALL_BRICK_PALETTE]
[NAME:Unpack Small Brick Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_S]
[REAGENT:A:1:TOOL:ITEM_TOOL_SMALL_BRICK_PALETTE:NONE:NONE]
[PRODUCT:100:25:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_LARGE_BRICK_PALETTE]
[NAME:Unpack Large Brick Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_L]
[REAGENT:A:1:TOOL:ITEM_TOOL_LARGE_BRICK_PALETTE:NONE:NONE]
[PRODUCT:100:50:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_SMALL_MAGMASAFE_BRICK_PALETTE]
[NAME:Unpack Small Magmasafe Brick Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_M]
[REAGENT:A:1:TOOL:ITEM_TOOL_SMALL_MAGMASAFE_BRICK_PALETTE:NONE:NONE]
[PRODUCT:100:25:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_LARGE_BRICK_PALETTE]
[NAME:Unpack Large Brick Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_SHIFT_M]
[REAGENT:A:1:TOOL:ITEM_TOOL_LARGE_MAGMASAFE_BRICK_PALETTE:NONE:NONE]
[PRODUCT:100:50:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_SMALL_LUMBER_PALETTE]
[NAME:Unpack Small Lumber Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_SHIFT_W]
[REAGENT:A:1:TOOL:ITEM_TOOL_SMALL_LUMBER_PALETTE:NONE:NONE]
[PRODUCT:100:25:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_LARGE_LUMBER_PALETTE]
[NAME:Unpack Large Lumber Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_SHIFT_W]
[REAGENT:A:1:TOOL:ITEM_TOOL_LARGE_LUMBER_PALETTE:NONE:NONE]
[PRODUCT:100:50:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
Logged

merp

  • Bay Watcher
    • View Profile
Re: Construction Yard Mod
« Reply #1 on: October 08, 2013, 01:03:25 am »

AHA!  You have to add this tag to the civ files.

[PERMITTED_BUILDING:CONSTRUCTION_YARD]
[PERMITTED_BUILDING:SUPPLY_SHED]
Logged

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: Construction Yard Mod
« Reply #2 on: October 08, 2013, 01:04:49 am »

You don't need to make a duplicate thread, just move the old one.
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?

merp

  • Bay Watcher
    • View Profile
Re: Construction Yard Mod
« Reply #3 on: October 08, 2013, 01:10:50 am »

Oh.  Sorry, I didn't know how to do that.

actually, it looks like you have to add all this to the default entity file as well:
Code: [Select]
[PERMITTED_BUILDING:CONSTRUCTION_YARD]
[PERMITTED_BUILDING:SUPPLY_SHED]
        [PERMITTED_REACTION:MAKE_SMALL_BRICK_PALETTE]
        [PERMITTED_REACTION:MAKE_LARGE_BRICK_PALETTE]
        [PERMITTED_REACTION:MAKE_SMALL_MAGMASAFE_BRICK_PALETTE]
        [PERMITTED_REACTION:MAKE_LARGE_MAGMASAFE_BRICK_PALETTE]
        [PERMITTED_REACTION:MAKE_SMALL_LUMBER_PALETTE]
        [PERMITTED_REACTION:MAKE_LARGE_LUMBER_PALETTE]
        [PERMITTED_REACTION:UNPACK_SMALL_BRICK_PALETTE]
        [PERMITTED_REACTION:UNPACK_LARGE_BRICK_PALETTE]
        [PERMITTED_REACTION:UNPACK_LARGE_BRICK_PALETTE]
        [PERMITTED_REACTION:UNPACK_LARGE_BRICK_PALETTE]
        [PERMITTED_REACTION:UNPACK_SMALL_LUMBER_PALETTE]
        [PERMITTED_REACTION:UNPACK_LARGE_LUMBER_PALETTE]
Logged

merp

  • Bay Watcher
    • View Profile
Re: Construction Yard Mod
« Reply #4 on: October 08, 2013, 01:31:35 am »

I playtested it, and there are a few bugs.

The colors on the workshop are all black.  I think I know how to fix that.  Also, two of the commands for unpacking are not listed under the supply shed.  Lastly, I forgot to add the item file to the entity profile, so instead of a palette, it made a bowl instead.  I'm going to go ahead and try to make those fixes now.
Logged

merp

  • Bay Watcher
    • View Profile
Re: Construction Yard Mod
« Reply #5 on: October 08, 2013, 04:04:58 am »

It worked!

After about 4 hours debugging I got it to work, the only thing I couldn't figure out was the colors. (they all look solid black)  If somebody could help me with that, that'd be great.

Here is the code below:

This goes in your item_tool folder:
Code: [Select]
[ITEM_TOOL:ITEM_TOOL_PALETTE_SMALL_BRICK]
[NAME:palette:palettes]
[ADJECTIVE:small brick]
[VALUE:100]
[TILE:11]
[WEIGHT:3000]

[ITEM_TOOL:ITEM_TOOL_PALETTE_LARGE_BRICK]
[NAME:palette:palettes]
[ADJECTIVE:large brick]
[VALUE:250]
[TILE:11]
[WEIGHT:6000]

[ITEM_TOOL:ITEM_TOOL_PALETTE_SMALL_MAGMASAFE_BRICK]
[NAME:palette:palettes]
[ADJECTIVE:small magmasafe brick]
[VALUE:100]
[TILE:11]
[WEIGHT:3000]

[ITEM_TOOL:ITEM_TOOL_PALETTE_LARGE_MAGMASAFE_BRICK]
[NAME:palette:palettes]
[ADJECTIVE:large magmasafe brick]
[VALUE:250]
[TILE:11]
[WEIGHT:6000]

[ITEM_TOOL:ITEM_TOOL_PALETTE_SMALL_LUMBER]
[NAME:palette:palettes]
[ADJECTIVE:small lumber]
[VALUE:100]
[TILE:11]
[WEIGHT:3000]

[ITEM_TOOL:ITEM_TOOL_PALETTE_LARGE_LUMBER]
[NAME:palette:palettes]
[ADJECTIVE:large lumber]
[VALUE:250]
[TILE:11]
[WEIGHT:6000]

this is in the file building_construction_yard.txt

Code: [Select]
building_construction_yard

[OBJECT:BUILDING]

[BUILDING_WORKSHOP:CONSTRUCTION_YARD]
[NAME:Construction Yard]
[NAME_COLOR:7:0:1]
[DIM:5:5]
[WORK_LOCATION:3:3]
[BUILD_LABOR:MASON]
[BUILD_LABOR:CARPENTRY]
[BUILD_KEY:CUSTOM_SHIFT_Y]
[BLOCK:1:0:0:0:0:0]
[BLOCK:2:0:0:0:0:0]
[BLOCK:3:0:0:0:0:0]
[BLOCK:4:0:0:0:0:0]
[BLOCK:5:0:0:0:0:0]
[TILE:0:1:' ':' ':' ':' ':' ']
[TILE:0:2:' ':' ':' ':' ':' ']
[TILE:0:3:' ':' ':07:' ':' ']
[TILE:0:4:' ':' ':' ':' ':' ']
[TILE:0:5:' ':' ':' ':' ':' ']
[COLOR:0:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:0:2:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:0:3:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:0:4:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:0:5:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[TILE:1:1:' ':' ':' ':' ':' ']
[TILE:1:2:' ':07:07:07:' ']
[TILE:1:3:' ':07:' ':07:' ']
[TILE:1:4:' ':07:07:07:' ']
[TILE:1:5:' ':' ':' ':' ':' ']
[COLOR:1:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:1:2:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:1:3:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:1:4:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:1:5:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[TILE:2:1:07:07:07:07:07:]
[TILE:2:2:07:' ':' ':' ':07]
[TILE:2:3:07:' ':' ':' ':07]
[TILE:2:4:07:' ':' ':' ':07]
[TILE:2:5:07:07:07:07:07:]
[COLOR:2:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:2:2:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:2:3:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:2:4:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:2:5:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[TILE:3:1:22:22:' ':254:254]
[TILE:3:2:22:22:' ':254:254]
[TILE:3:3:07:' ':' ':' ':' ']
[TILE:3:4:' ':' ':' ':' ':07]
[TILE:3:5:07:' ':' ':07:07]
[COLOR:3:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:3:2:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:3:3:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:3:4:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:3:5:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[BUILD_ITEM:2:TRAPPARTS:NONE:NONE:NONE][CAN_USE_ARTIFACT]
[BUILD_ITEM:2:TRAPCOMP:ITEM_TRAPCOMP_LARGESERRATEDDISC:NONE:NONE][CAN_USE_ARTIFACT]
[BUILD_ITEM:3:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]

[BUILDING_WORKSHOP:SUPPLY_SHED]
[NAME:Supply Shed]
[NAME_COLOR:7:0:1]
[DIM:1:1]
[WORK_LOCATION:1:1]
[BUILD_LABOR:MASON]
[BUILD_LABOR:CARPENTRY]
[BUILD_KEY:CUSTOM_SHIFT_Q]
[BLOCK:1:0]
[TILE:0:1:' ']
[COLOR:0:1:0:0:0]
[TILE:1:1:251]
[COLOR:1:1:0:0:0]
[BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]

and this is in the file reaction_constructionyard.txt
Code: [Select]
reaction_constructionyard

[OBJECT:REACTION]

[REACTION:MAKE_SMALL_BRICK_PALETTE]
[NAME:Make Small Brick Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_S]
[REAGENT:A:5:BOULDER:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_SMALL_BRICK:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:MASONRY]

[REACTION:MAKE_LARGE_BRICK_PALETTE]
[NAME:Make Large Brick Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_L]
[REAGENT:A:10:BOULDER:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_LARGE_BRICK:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:MASONRY]

[REACTION:MAKE_SMALL_MAGMASAFE_BRICK_PALETTE]
[NAME:Make Small Magmasafe Brick Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_M]
[REAGENT:A:5:BOULDER:NONE:NONE:NONE][MAGMA_BUILD_SAFE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_SMALL_MAGMASAFE_BRICK:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:MASONRY]

[REACTION:MAKE_LARGE_MAGMASAFE_BRICK_PALETTE]
[NAME:Make Large Magmasafe Brick Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_SHIFT_M]
[REAGENT:A:10:BOULDER:NONE:NONE:NONE][MAGMA_BUILD_SAFE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_LARGE_MAGMASAFE_BRICK:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:MASONRY]

[REACTION:MAKE_SMALL_LUMBER_PALETTE]
[NAME:Make Small Lumber Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_W]
[REAGENT:A:5:WOOD:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_SMALL_LUMBER:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:CAPENTRY]

[REACTION:MAKE_LARGE_LUMBER_PALETTE]
[NAME:Make Large Lumber Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_SHIFT_W]
[REAGENT:A:10:WOOD:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_LARGE_LUMBER:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:CAPENTRY]

[REACTION:UNPACK_SMALL_BRICK_PALETTE]
[NAME:Unpack Small Brick Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_S]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_SMALL_BRICK:NONE:NONE]
[PRODUCT:100:25:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_LARGE_BRICK_PALETTE]
[NAME:Unpack Large Brick Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_L]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_LARGE_BRICK:NONE:NONE]
[PRODUCT:100:50:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_SMALL_MAGMASAFE_BRICK_PALETTE]
[NAME:Unpack Small Magmasafe Brick Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_M]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_SMALL_MAGMASAFE_BRICK:NONE:NONE]
[PRODUCT:100:25:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_LARGE_MAGMASAFE_BRICK_PALETTE]
[NAME:Unpack Large Magmasafe Brick Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_SHIFT_M]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_LARGE_MAGMASAFE_BRICK:NONE:NONE]
[PRODUCT:100:50:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_SMALL_LUMBER_PALETTE]
[NAME:Unpack Small Lumber Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_SHIFT_W]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_SMALL_LUMBER:NONE:NONE]
[PRODUCT:100:25:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_LARGE_LUMBER_PALETTE]
[NAME:Unpack Large Lumber Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_SHIFT_W]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_LARGE_LUMBER:NONE:NONE]
[PRODUCT:100:50:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

Lastly, you have to add this to your entity_default.txt file
Code: [Select]
[TOOL:ITEM_TOOL_PALETTE_SMALL_BRICK]
[TOOL:ITEM_TOOL_PALETTE_LARGE_BRICK]
[TOOL:ITEM_TOOL_PALETTE_SMALL_MAGMASAFE_BRICK]
[TOOL:ITEM_TOOL_PALETTE_LARGE_MAGMASAFE_BRICK]
[TOOL:ITEM_TOOL_PALETTE_SMALL_LUMBER]
[TOOL:ITEM_TOOL_PALETTE_LARGE_LUMBER]

[PERMITTED_BUILDING:CONSTRUCTION_YARD]
[PERMITTED_BUILDING:SUPPLY_SHED]
        [PERMITTED_REACTION:MAKE_SMALL_BRICK_PALETTE]
        [PERMITTED_REACTION:MAKE_LARGE_BRICK_PALETTE]
        [PERMITTED_REACTION:MAKE_SMALL_MAGMASAFE_BRICK_PALETTE]
        [PERMITTED_REACTION:MAKE_LARGE_MAGMASAFE_BRICK_PALETTE]
        [PERMITTED_REACTION:MAKE_SMALL_LUMBER_PALETTE]
        [PERMITTED_REACTION:MAKE_LARGE_LUMBER_PALETTE]
        [PERMITTED_REACTION:UNPACK_SMALL_BRICK_PALETTE]
        [PERMITTED_REACTION:UNPACK_LARGE_BRICK_PALETTE]
        [PERMITTED_REACTION:UNPACK_SMALL_MAGMASAFE_BRICK_PALETTE]
        [PERMITTED_REACTION:UNPACK_LARGE_MAGMASAFE_BRICK_PALETTE]
        [PERMITTED_REACTION:UNPACK_SMALL_LUMBER_PALETTE]
        [PERMITTED_REACTION:UNPACK_LARGE_LUMBER_PALETTE]
« Last Edit: October 08, 2013, 04:08:35 am by merp »
Logged

WillowLuman

  • Bay Watcher
  • They/Them Life is weird
    • View Profile
Re: Construction Yard Mod
« Reply #6 on: October 08, 2013, 01:04:46 pm »

Please only do one thread, lock the other or something. It's a bit confusing.
Logged
Dwarf Souls: Prepare to Mine
Keep Me Safe - A Girl and Her Computer (Illustrated Game)
Darkest Garden - Illustrated game. - What mysteries lie in the abandoned dark?

merp

  • Bay Watcher
    • View Profile
Re: Construction Yard Mod
« Reply #7 on: October 09, 2013, 06:23:26 am »

Hey Meph!  How bout adding a palette system to the brick furnace?

I finished work on that Construction Yard thing, ironed out all the kinks.  (I even got the colors to work!)  It works pretty well, I was hoping you could incorporate some of my code into your brick furnace for mega-projects and the like.  I'm not married to the tile set, i wanted to keep a couple of piles of block and lumber in the corner just for flavor.

The code is below, each block of code is a separate text file,

except for this, which goes in the entity_default.txt

Code: [Select]
[TOOL:ITEM_TOOL_PALETTE_SMALL_BRICK]
[TOOL:ITEM_TOOL_PALETTE_LARGE_BRICK]
[TOOL:ITEM_TOOL_PALETTE_SMALL_MAGMASAFE_BRICK]
[TOOL:ITEM_TOOL_PALETTE_LARGE_MAGMASAFE_BRICK]
[TOOL:ITEM_TOOL_PALETTE_SMALL_LUMBER]
[TOOL:ITEM_TOOL_PALETTE_LARGE_LUMBER]
[PERMITTED_BUILDING:CONSTRUCTION_YARD]
[PERMITTED_BUILDING:SUPPLY_SHED]
        [PERMITTED_REACTION:MAKE_SMALL_BRICK_PALETTE]
        [PERMITTED_REACTION:MAKE_LARGE_BRICK_PALETTE]
        [PERMITTED_REACTION:MAKE_SMALL_MAGMASAFE_BRICK_PALETTE]
        [PERMITTED_REACTION:MAKE_LARGE_MAGMASAFE_BRICK_PALETTE]
        [PERMITTED_REACTION:MAKE_SMALL_LUMBER_PALETTE]
        [PERMITTED_REACTION:MAKE_LARGE_LUMBER_PALETTE]
        [PERMITTED_REACTION:UNPACK_SMALL_BRICK_PALETTE]
        [PERMITTED_REACTION:UNPACK_LARGE_BRICK_PALETTE]
        [PERMITTED_REACTION:UNPACK_SMALL_MAGMASAFE_BRICK_PALETTE]
        [PERMITTED_REACTION:UNPACK_LARGE_MAGMASAFE_BRICK_PALETTE]
        [PERMITTED_REACTION:UNPACK_SMALL_LUMBER_PALETTE]
        [PERMITTED_REACTION:UNPACK_LARGE_LUMBER_PALETTE]

Code: [Select]
building_construction_yard

[OBJECT:BUILDING]

[BUILDING_WORKSHOP:CONSTRUCTION_YARD]
[NAME:Construction Yard]
[NAME_COLOR:7:0:1]
[DIM:5:5]
[WORK_LOCATION:3:3]
[BUILD_LABOR:MASON]
[BUILD_LABOR:CARPENTRY]
[BUILD_KEY:CUSTOM_SHIFT_Y]
[BLOCK:1:0:0:0:0:0]
[BLOCK:2:0:0:0:0:0]
[BLOCK:3:0:0:0:0:0]
[BLOCK:4:0:0:0:0:0]
[BLOCK:5:0:0:0:0:0]
[TILE:0:1:' ':' ':' ':' ':' ']
[TILE:0:2:' ':' ':' ':' ':' ']
[TILE:0:3:' ':' ':07:' ':' ']
[TILE:0:4:' ':' ':' ':' ':' ']
[TILE:0:5:' ':' ':' ':' ':' ']
[COLOR:0:1:0:0:0:6:0:0:6:0:0:6:0:0:0:0:0]
[COLOR:0:2:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:0:3:0:0:0:0:0:0:6:0:0:0:0:0:0:0:0]
[COLOR:0:4:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:0:5:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[TILE:1:1:' ':' ':' ':' ':' ']
[TILE:1:2:' ':07:07:07:' ']
[TILE:1:3:' ':07:' ':07:' ']
[TILE:1:4:' ':07:07:07:' ']
[TILE:1:5:' ':' ':' ':' ':' ']
[COLOR:1:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:1:2:0:0:0:6:0:0:6:0:0:6:0:0:0:0:0]
[COLOR:1:3:0:0:0:6:0:0:0:0:0:6:0:0:0:0:0]
[COLOR:1:4:0:0:0:6:0:0:6:0:0:6:0:0:0:0:0]
[COLOR:1:5:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[TILE:2:1:07:07:07:07:07:]
[TILE:2:2:07:' ':' ':' ':07]
[TILE:2:3:07:' ':' ':' ':07]
[TILE:2:4:07:' ':' ':' ':07]
[TILE:2:5:07:07:07:07:07:]
[COLOR:2:1:6:0:0:6:0:0:6:0:0:6:0:0:6:0:0]
[COLOR:2:2:6:0:0:0:0:0:0:0:0:0:0:0:6:0:0]
[COLOR:2:3:6:0:0:0:0:0:0:0:0:0:0:0:6:0:0]
[COLOR:2:4:6:0:0:0:0:0:0:0:0:0:0:0:6:0:0]
[COLOR:2:5:6:0:0:6:0:0:6:0:0:6:0:0:6:0:0]
[TILE:3:1:22:22:' ':254:254]
[TILE:3:2:22:22:' ':254:254]
[TILE:3:3:07:' ':' ':' ':' ']
[TILE:3:4:' ':' ':' ':' ':07]
[TILE:3:5:07:' ':' ':07:07]
[COLOR:3:1:6:0:0:6:0:0:0:0:0:6:0:0:6:0:0]
[COLOR:3:2:6:0:0:6:0:0:0:0:0:6:0:0:6:0:0]
[COLOR:3:3:6:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:3:4:0:0:0:0:0:0:0:0:0:0:0:0:6:0:0]
[COLOR:3:5:6:0:0:0:0:0:0:0:0:6:0:0:6:0:0]
[BUILD_ITEM:2:TRAPPARTS:NONE:NONE:NONE][CAN_USE_ARTIFACT]
[BUILD_ITEM:2:TRAPCOMP:ITEM_TRAPCOMP_LARGESERRATEDDISC:NONE:NONE][CAN_USE_ARTIFACT]
[BUILD_ITEM:3:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]

[BUILDING_WORKSHOP:SUPPLY_SHED]
[NAME:Supply Shed]
[NAME_COLOR:7:0:1]
[DIM:1:1]
[WORK_LOCATION:1:1]
[BUILD_LABOR:MASON]
[BUILD_LABOR:CARPENTRY]
[BUILD_KEY:CUSTOM_SHIFT_Q]
[BLOCK:1:0]
[TILE:0:1:' ']
[COLOR:0:1:0:0:0]
[TILE:1:1:251]
[COLOR:1:1:0:0:0]
[BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]

Code: [Select]
item_tool_palette

[OBJECT:ITEM]

[ITEM_TOOL:ITEM_TOOL_PALETTE_SMALL_BRICK]
[NAME:palette:palettes]
[ADJECTIVE:small brick]
[VALUE:100]
[TILE:11]
[WEIGHT:3000]
item_tool

[ITEM_TOOL:ITEM_TOOL_PALETTE_LARGE_BRICK]
[NAME:palette:palettes]
[ADJECTIVE:large brick]
[VALUE:250]
[TILE:11]
[WEIGHT:6000]

[ITEM_TOOL:ITEM_TOOL_PALETTE_SMALL_MAGMASAFE_BRICK]
[NAME:palette:palettes]
[ADJECTIVE:small magmasafe brick]
[VALUE:100]
[TILE:11]
[WEIGHT:3000]

[ITEM_TOOL:ITEM_TOOL_PALETTE_LARGE_MAGMASAFE_BRICK]
[NAME:palette:palettes]
[ADJECTIVE:large magmasafe brick]
[VALUE:250]
[TILE:11]
[WEIGHT:6000]

[ITEM_TOOL:ITEM_TOOL_PALETTE_SMALL_LUMBER]
[NAME:palette:palettes]
[ADJECTIVE:small lumber]
[VALUE:100]
[TILE:11]
[WEIGHT:3000]

[ITEM_TOOL:ITEM_TOOL_PALETTE_LARGE_LUMBER]
[NAME:palette:palettes]
[ADJECTIVE:large lumber]
[VALUE:250]
[TILE:11]
[WEIGHT:6000]

Code: [Select]
reaction_constructionyard

[OBJECT:REACTION]

[REACTION:MAKE_SMALL_BRICK_PALETTE]
[NAME:Make Small Brick Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_S]
[REAGENT:A:5:BOULDER:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_SMALL_BRICK:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:MASONRY]

[REACTION:MAKE_LARGE_BRICK_PALETTE]
[NAME:Make Large Brick Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_L]
[REAGENT:A:10:BOULDER:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_LARGE_BRICK:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:MASONRY]

[REACTION:MAKE_SMALL_MAGMASAFE_BRICK_PALETTE]
[NAME:Make Small Magmasafe Brick Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_M]
[REAGENT:A:5:BOULDER:NONE:NONE:NONE][MAGMA_BUILD_SAFE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_SMALL_MAGMASAFE_BRICK:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:MASONRY]

[REACTION:MAKE_LARGE_MAGMASAFE_BRICK_PALETTE]
[NAME:Make Large Magmasafe Brick Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_SHIFT_M]
[REAGENT:A:10:BOULDER:NONE:NONE:NONE][MAGMA_BUILD_SAFE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_LARGE_MAGMASAFE_BRICK:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:MASONRY]

[REACTION:MAKE_SMALL_LUMBER_PALETTE]
[NAME:Make Small Lumber Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_W]
[REAGENT:A:5:WOOD:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_SMALL_LUMBER:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:CAPENTRY]

[REACTION:MAKE_LARGE_LUMBER_PALETTE]
[NAME:Make Large Lumber Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_SHIFT_W]
[REAGENT:A:10:WOOD:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_LARGE_LUMBER:GET_MATERIAL_FROM_REAGENT:A:NONE]
[SKILL:CAPENTRY]

[REACTION:UNPACK_SMALL_BRICK_PALETTE]
[NAME:Unpack Small Brick Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_S]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_SMALL_BRICK:NONE:NONE]
[PRODUCT:100:25:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_LARGE_BRICK_PALETTE]
[NAME:Unpack Large Brick Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_L]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_LARGE_BRICK:NONE:NONE]
[PRODUCT:100:50:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_SMALL_MAGMASAFE_BRICK_PALETTE]
[NAME:Unpack Small Magmasafe Brick Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_M]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_SMALL_MAGMASAFE_BRICK:NONE:NONE]
[PRODUCT:100:25:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_LARGE_MAGMASAFE_BRICK_PALETTE]
[NAME:Unpack Large Magmasafe Brick Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_SHIFT_M]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_LARGE_MAGMASAFE_BRICK:NONE:NONE]
[PRODUCT:100:50:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_SMALL_LUMBER_PALETTE]
[NAME:Unpack Small Lumber Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_SHIFT_W]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_SMALL_LUMBER:NONE:NONE]
[PRODUCT:100:25:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_LARGE_LUMBER_PALETTE]
[NAME:Unpack Large Lumber Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_SHIFT_W]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_LARGE_LUMBER:NONE:NONE]
[PRODUCT:100:50:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Construction Yard Mod
« Reply #8 on: October 09, 2013, 06:51:08 am »

There are a couple of errors here.

1. You need to delete the tools from the entity file.

Code: [Select]
[TOOL:ITEM_TOOL_PALETTE_SMALL_BRICK]
[TOOL:ITEM_TOOL_PALETTE_LARGE_BRICK]
[TOOL:ITEM_TOOL_PALETTE_SMALL_MAGMASAFE_BRICK]
[TOOL:ITEM_TOOL_PALETTE_LARGE_MAGMASAFE_BRICK]
[TOOL:ITEM_TOOL_PALETTE_SMALL_LUMBER]
[TOOL:ITEM_TOOL_PALETTE_LARGE_LUMBER]

2. The problem I mentioned about the packing and unpacking. only containers fix that... they way you use currently breaks quite a bit if people pack different materials into one palette.

3. You tool names are a bit weird.

Code: [Select]
[NAME:palette:palettes]
[ADJECTIVE:small brick]

If you make one palette like this from ornamental bright red brick, you will ge this: "small brick ornamental bright red palette". which is probably not what you intended. Just small/large palette is fine, even better would be palette (10) and palette (50), because its shorter and gives more ingame info about the content. 
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

merp

  • Bay Watcher
    • View Profile
Re: Construction Yard Mod
« Reply #9 on: October 09, 2013, 08:53:24 am »

Thanks Meph.  It seems to work okay for now as a stand alone mod to vanilla df.

I was thinking you could maybe just swap out the reactions in your brick oven, replace the product with individual crates and change the number of boulders listed under reagents to 5 or 10.  Then you could borrow the code for the supply shed and unpack the crates there instead of the trade supply warehouse.
Logged

merp

  • Bay Watcher
    • View Profile
Re: Construction Yard Mod
« Reply #10 on: October 09, 2013, 09:08:48 am »

Just curious though, why do i need to remove the code from the entity file?  When I tested it the game wouldn't work unless I did that.
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Construction Yard Mod
« Reply #11 on: October 09, 2013, 09:10:52 am »

Only the tools. Check your forge/craftsdwarf menu, you will see that you can force the palettes from steel and whatnot. Or the carpenter can make wood palettes from 1 log.

The problem still stands in vanilla DF, if you make a 10 log palette from 1 netherwood and 9 alder wood, then get a netherwood palette, then unpack it, you get 10 netherwood logs.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

merp

  • Bay Watcher
    • View Profile
Re: Construction Yard Mod
« Reply #12 on: October 10, 2013, 01:22:01 am »

See, this is why I originally had the materials set up to gabbro for magma safe blocks and granite for normal stone blocks.  I wanted the wood blocks to be pine, but i wasn't sure if I set the material token correctly.  Putnam suggested I use the get material from reagent token to make it compatible with the masterwork mod.
Logged

merp

  • Bay Watcher
    • View Profile
Re: Construction Yard Mod
« Reply #13 on: October 10, 2013, 02:12:04 am »

Alright, well, i thought I was done with this, but apparently there are still a couple of improvements that need to be made.

Bugfix: fixed supply shed tile, got rid of tool entries from entity_default.txt, changed material tokens for brick, magma-safe brick, and lumber palettes to granite, gabbro, and pine respectively.  Also switched out boulder tile for workshop tile, still looks like crap, but.. meh.

This goes in the entity_default.txt file:
Code: [Select]
[PERMITTED_BUILDING:CONSTRUCTION_YARD]
[PERMITTED_BUILDING:SUPPLY_SHED]
        [PERMITTED_REACTION:MAKE_SMALL_BRICK_PALETTE]
        [PERMITTED_REACTION:MAKE_LARGE_BRICK_PALETTE]
        [PERMITTED_REACTION:MAKE_SMALL_MAGMASAFE_BRICK_PALETTE]
        [PERMITTED_REACTION:MAKE_LARGE_MAGMASAFE_BRICK_PALETTE]
        [PERMITTED_REACTION:MAKE_SMALL_LUMBER_PALETTE]
        [PERMITTED_REACTION:MAKE_LARGE_LUMBER_PALETTE]
        [PERMITTED_REACTION:UNPACK_SMALL_BRICK_PALETTE]
        [PERMITTED_REACTION:UNPACK_LARGE_BRICK_PALETTE]
        [PERMITTED_REACTION:UNPACK_SMALL_MAGMASAFE_BRICK_PALETTE]
        [PERMITTED_REACTION:UNPACK_LARGE_MAGMASAFE_BRICK_PALETTE]
        [PERMITTED_REACTION:UNPACK_SMALL_LUMBER_PALETTE]
        [PERMITTED_REACTION:UNPACK_LARGE_LUMBER_PALETTE]

add this to a text file named building_construction_yard.txt

Code: [Select]
building_construction_yard

[OBJECT:BUILDING]

[BUILDING_WORKSHOP:CONSTRUCTION_YARD]
[NAME:Construction Yard]
[NAME_COLOR:7:0:1]
[DIM:5:5]
[WORK_LOCATION:3:3]
[BUILD_LABOR:MASON]
[BUILD_LABOR:CARPENTRY]
[BUILD_KEY:CUSTOM_SHIFT_Y]
[BLOCK:1:0:0:0:0:0]
[BLOCK:2:0:0:0:0:0]
[BLOCK:3:0:0:0:0:0]
[BLOCK:4:0:0:0:0:0]
[BLOCK:5:0:0:0:0:0]
[TILE:0:1:' ':' ':' ':' ':' ']
[TILE:0:2:' ':' ':' ':' ':' ']
[TILE:0:3:' ':' ':08:' ':' ']
[TILE:0:4:' ':' ':' ':' ':' ']
[TILE:0:5:' ':' ':' ':' ':' ']
[COLOR:0:1:0:0:0:6:0:0:6:0:0:6:0:0:0:0:0]
[COLOR:0:2:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:0:3:0:0:0:0:0:0:6:0:0:0:0:0:0:0:0]
[COLOR:0:4:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:0:5:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[TILE:1:1:' ':' ':' ':' ':' ']
[TILE:1:2:' ':08:08:08:' ']
[TILE:1:3:' ':08:' ':08:' ']
[TILE:1:4:' ':08:08:08:' ']
[TILE:1:5:' ':' ':' ':' ':' ']
[COLOR:1:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:1:2:0:0:0:6:0:0:6:0:0:6:0:0:0:0:0]
[COLOR:1:3:0:0:0:6:0:0:0:0:0:6:0:0:0:0:0]
[COLOR:1:4:0:0:0:6:0:0:6:0:0:6:0:0:0:0:0]
[COLOR:1:5:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[TILE:2:1:08:08:08:08:08:]
[TILE:2:2:08:' ':' ':' ':08]
[TILE:2:3:08:' ':' ':' ':08]
[TILE:2:4:08:' ':' ':' ':08]
[TILE:2:5:08:08:08:08:08:]
[COLOR:2:1:6:0:0:6:0:0:6:0:0:6:0:0:6:0:0]
[COLOR:2:2:6:0:0:0:0:0:0:0:0:0:0:0:6:0:0]
[COLOR:2:3:6:0:0:0:0:0:0:0:0:0:0:0:6:0:0]
[COLOR:2:4:6:0:0:0:0:0:0:0:0:0:0:0:6:0:0]
[COLOR:2:5:6:0:0:6:0:0:6:0:0:6:0:0:6:0:0]
[TILE:3:1:22:22:' ':254:254]
[TILE:3:2:22:22:' ':254:254]
[TILE:3:3:08:' ':' ':' ':' ']
[TILE:3:4:' ':' ':' ':' ':08]
[TILE:3:5:08:' ':' ':08:08]
[COLOR:3:1:6:0:0:6:0:0:0:0:0:6:0:0:6:0:0]
[COLOR:3:2:6:0:0:6:0:0:0:0:0:6:0:0:6:0:0]
[COLOR:3:3:6:0:0:0:0:0:0:0:0:0:0:0:0:0:0]
[COLOR:3:4:0:0:0:0:0:0:0:0:0:0:0:0:6:0:0]
[COLOR:3:5:6:0:0:0:0:0:0:0:0:6:0:0:6:0:0]
[BUILD_ITEM:2:TRAPPARTS:NONE:NONE:NONE][CAN_USE_ARTIFACT]
[BUILD_ITEM:2:TRAPCOMP:ITEM_TRAPCOMP_LARGESERRATEDDISC:NONE:NONE][CAN_USE_ARTIFACT]
[BUILD_ITEM:3:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]

[BUILDING_WORKSHOP:SUPPLY_SHED]
[NAME:Supply Shed]
[NAME_COLOR:7:0:1]
[DIM:1:1]
[WORK_LOCATION:1:1]
[BUILD_LABOR:MASON]
[BUILD_LABOR:CARPENTRY]
[BUILD_KEY:CUSTOM_SHIFT_Q]
[BLOCK:1:0]
[TILE:0:1:' ']
[COLOR:0:1:6:0:0]
[TILE:1:1:251]
[COLOR:1:1:6:0:0]
[BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]

add this to a text file named item_tool_palette.txt

Code: [Select]
item_tool_palette

[OBJECT:ITEM]

[ITEM_TOOL:ITEM_TOOL_PALETTE_SMALL_BRICK]
[NAME:palette:palettes]
[ADJECTIVE:small brick]
[VALUE:100]
[TILE:11]
[WEIGHT:3000]
item_tool

[ITEM_TOOL:ITEM_TOOL_PALETTE_LARGE_BRICK]
[NAME:palette:palettes]
[ADJECTIVE:large brick]
[VALUE:250]
[TILE:11]
[WEIGHT:6000]

[ITEM_TOOL:ITEM_TOOL_PALETTE_SMALL_MAGMASAFE_BRICK]
[NAME:palette:palettes]
[ADJECTIVE:small magmasafe brick]
[VALUE:100]
[TILE:11]
[WEIGHT:3000]

[ITEM_TOOL:ITEM_TOOL_PALETTE_LARGE_MAGMASAFE_BRICK]
[NAME:palette:palettes]
[ADJECTIVE:large magmasafe brick]
[VALUE:250]
[TILE:11]
[WEIGHT:6000]

[ITEM_TOOL:ITEM_TOOL_PALETTE_SMALL_LUMBER]
[NAME:palette:palettes]
[ADJECTIVE:small lumber]
[VALUE:100]
[TILE:11]
[WEIGHT:3000]

[ITEM_TOOL:ITEM_TOOL_PALETTE_LARGE_LUMBER]
[NAME:palette:palettes]
[ADJECTIVE:large lumber]
[VALUE:250]
[TILE:11]
[WEIGHT:6000]

add this to a text file named reaction_construction_yard

Code: [Select]
reaction_construction_yard

[OBJECT:REACTION]

[REACTION:MAKE_SMALL_BRICK_PALETTE]
[NAME:Make Small Brick Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_S]
[REAGENT:A:5:BOULDER:NONE:NONE:NONE][WORTHLESS_STONE_ONLY]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_SMALL_BRICK:INORGANIC:GRANITE]
[SKILL:MASONRY]

[REACTION:MAKE_LARGE_BRICK_PALETTE]
[NAME:Make Large Brick Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_L]
[REAGENT:A:10:BOULDER:NONE:NONE:NONE][WORTHLESS_STONE_ONLY]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_LARGE_BRICK:INORGANIC:GRANITE]
[SKILL:MASONRY]

[REACTION:MAKE_SMALL_MAGMASAFE_BRICK_PALETTE]
[NAME:Make Small Magmasafe Brick Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_M]
[REAGENT:A:5:BOULDER:NONE:NONE:NONE][MAGMA_BUILD_SAFE][WORTHLESS_STONE_ONLY]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_SMALL_MAGMASAFE_BRICK:INORGANIC:GABBRO]
[SKILL:MASONRY]

[REACTION:MAKE_LARGE_MAGMASAFE_BRICK_PALETTE]
[NAME:Make Large Magmasafe Brick Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_SHIFT_M]
[REAGENT:A:10:BOULDER:NONE:NONE:NONE][MAGMA_BUILD_SAFE][WORTHLESS_STONE_ONLY]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_LARGE_MAGMASAFE_BRICK:INORGANIC:GABBRO]
[SKILL:MASONRY]

[REACTION:MAKE_SMALL_LUMBER_PALETTE]
[NAME:Make Small Lumber Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_W]
[REAGENT:A:5:WOOD:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_SMALL_LUMBER:PLANT_MAT:PINE:STRUCTURAL]
[SKILL:CAPENTRY]

[REACTION:MAKE_LARGE_LUMBER_PALETTE]
[NAME:Make Large Lumber Palette]
[BUILDING:CONSTRUCTION_YARD:CUSTOM_SHIFT_W]
[REAGENT:A:10:WOOD:NONE:NONE:NONE]
[PRODUCT:100:1:TOOL:ITEM_TOOL_PALETTE_LARGE_LUMBER:PLANT_MAT:PINE:STRUCTURAL]
[SKILL:CAPENTRY]

[REACTION:UNPACK_SMALL_BRICK_PALETTE]
[NAME:Unpack Small Brick Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_S]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_SMALL_BRICK:NONE:NONE]
[PRODUCT:100:25:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_LARGE_BRICK_PALETTE]
[NAME:Unpack Large Brick Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_L]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_LARGE_BRICK:NONE:NONE]
[PRODUCT:100:50:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_SMALL_MAGMASAFE_BRICK_PALETTE]
[NAME:Unpack Small Magmasafe Brick Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_M]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_SMALL_MAGMASAFE_BRICK:NONE:NONE]
[PRODUCT:100:25:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_LARGE_MAGMASAFE_BRICK_PALETTE]
[NAME:Unpack Large Magmasafe Brick Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_SHIFT_M]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_LARGE_MAGMASAFE_BRICK:NONE:NONE]
[PRODUCT:100:50:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_SMALL_LUMBER_PALETTE]
[NAME:Unpack Small Lumber Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_SHIFT_W]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_SMALL_LUMBER:NONE:NONE]
[PRODUCT:100:25:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]

[REACTION:UNPACK_LARGE_LUMBER_PALETTE]
[NAME:Unpack Large Lumber Palette]
[BUILDING:SUPPLY_SHED:CUSTOM_SHIFT_W]
[REAGENT:A:1:TOOL:ITEM_TOOL_PALETTE_LARGE_LUMBER:NONE:NONE]
[PRODUCT:100:50:BLOCKS:NONE:GET_MATERIAL_FROM_REAGENT:A:NONE]
Logged

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: Construction Yard Mod
« Reply #14 on: October 10, 2013, 02:47:50 am »

I still dont see the problem with making the palettes a container, so that the player gets 100% these items  or materials out of it that were put it. Its the same for masterwork as for vanilla...

Your names are still a bit long.
This is a obsidian long sword => already gets cut off without TTF.
This is a superior large magmasafe bricks gabbro palette => wow, thats twice as long.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::
Pages: [1] 2