v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "v0.31:Building token"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 7: Line 7:
 
The raw text for the building itself:
 
The raw text for the building itself:
  
[BUILDING_WORKSHOP:MAGMA_CREMATORIUM]
+
start tag and lookup ID for adding the building to entities
 
+
[BUILDING_WORKSHOP:MAGMA_CREMATORIUM]
[NAME:Magma Crematorium]
+
 
+
name to display on menus
[NAME_COLOR:7:0:1]
+
[NAME:Magma Crematorium]
 
+
[DIM:3:3]
+
color to use for name
 
+
[NAME_COLOR:7:0:1]
[WORK_LOCATION:2:3]
+
 
+
dimensions of building
[BUILD_LABOR:MASON]
+
[DIM:3:3]
 
+
[BUILD_KEY:CUSTOM_SHIFT_C]
+
location where your dwarf will stand while working
 
+
[WORK_LOCATION:2:3]
[BLOCK:1:0:0:0]
+
 
+
labor used to construct building (can be hard to guess- try running the .exe through a hex editor)
[BLOCK:2:0:0:0]
+
[BUILD_LABOR:MASON]
 
+
[BLOCK:3:0:0:0]
+
shortcut in build menu
 
+
[BUILD_KEY:CUSTOM_SHIFT_C]
[TILE:0:1:' ':' ':236]
+
 
+
which tiles block movement- 1 blocks, 0 is passable; [BLOCK:line number:tile1:tile2...]
[TILE:0:2:' ':236:'/']
+
[BLOCK:1:0:0:0]
 
+
[BLOCK:2:0:0:0]
 
+
[BLOCK:3:0:0:0]
[TILE:0:3:'|':' ':' ']
+
 
+
graphics for unbuilt workshop tiles [TILE:build_state:line:tile1:tile2...]
[COLOR:0:1:0:0:0:0:0:0:0:0:1]
+
[TILE:0:1:' ':' ':236]
 
+
[TILE:0:2:' ':236:'/']
[COLOR:0:2:0:0:0:0:0:1:6:0:0]
+
[TILE:0:3:'|':' ':' ']
 
+
[COLOR:0:3:6:0:0:0:0:0:0:0:0]
+
color for unbuilt workshop tiles [COLOR:build_state:line:tile1fg:tile1bg:tile1brightness:...]
 
+
[COLOR:0:1:0:0:0:0:0:0:0:0:1]
[TILE:1:1:236:' ':227]
+
[COLOR:0:2:0:0:0:0:0:1:6:0:0]
 
+
[COLOR:0:3:6:0:0:0:0:0:0:0:0]
[TILE:1:2:'|':' ':8]
+
 
+
graphics for the rest of the build states
[TILE:1:3:' ':' ':236]
+
[TILE:1:1:236:' ':227]
 
+
[TILE:1:2:'|':' ':8]
[COLOR:1:1:0:0:1:0:0:0:0:0:1]
+
[TILE:1:3:' ':' ':236]
 
+
[COLOR:1:2:6:0:0:0:0:0:0:0:1]
+
[COLOR:1:1:0:0:1:0:0:0:0:0:1]
 
+
[COLOR:1:2:6:0:0:0:0:0:0:0:1]
[COLOR:1:3:0:0:0:0:0:0:0:0:1]
+
[COLOR:1:3:0:0:0:0:0:0:0:0:1]
 
+
[TILE:2:1:201:227:187]
+
[TILE:2:1:201:227:187]
 
+
[TILE:2:2:200:8:188]
[TILE:2:2:200:8:188]
+
[TILE:2:3:' ':' ':' ']
 
+
[TILE:2:3:' ':' ':' ']
+
[COLOR:2:1:0:0:1:0:0:1:0:0:1]
 
+
[COLOR:2:2:0:0:1:0:0:1:0:0:1]
[COLOR:2:1:0:0:1:0:0:1:0:0:1]
+
[COLOR:2:3:0:0:0:0:0:0:0:0:0]
 
+
[COLOR:2:2:0:0:1:0:0:1:0:0:1]
+
[TILE:3:1:201:227:187]
 
+
[TILE:3:2:200:8:188]
[COLOR:2:3:0:0:0:0:0:0:0:0:0]
+
[TILE:3:3:150:210:253]
 
+
[TILE:3:1:201:227:187]
+
[COLOR:3:1:0:0:1:0:0:1:0:0:1]  
 
+
[COLOR:3:2:0:0:1:0:4:1:0:0:1]
[TILE:3:2:200:8:188]
+
[COLOR:3:3:0:0:1:6:0:0:7:0:1]
 
+
[TILE:3:3:150:210:253]
+
materials used to construct the
 
+
workshop [BUILD_ITEM:quantity:item type:item subtype:mat type:mat subtype] tokens
[COLOR:3:1:0:0:1:0:0:1:0:0:1]
+
[BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]
 
 
[COLOR:3:2:0:0:1:0:4:1:0:0:1]
 
 
 
[COLOR:3:3:0:0:1:6:0:0:7:0:1]
 
 
 
[BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]
 
  
  
 
Tokens that are availabe (from hexdump of the exe)
 
Tokens that are availabe (from hexdump of the exe)
 
+
BUILDING_FURNACE
BUILDING_FURNACE
+
REACTION_CLASS
 
+
HAS_MATERIAL_REACTION_PRODUCT
REACTION_CLASS
+
UNROTTEN
 
+
CONTAINS_LYE
HAS_MATERIAL_REACTION_PRODUCT
+
POTASHABLE
 
+
NOT_WEB
UNROTTEN
+
WEB_ONLY
 
+
EMPTY
CONTAINS_LYE
+
NOT_CONTAIN_BARREL_ITEM
 
+
BAG
POTASHABLE
+
GLASS_MATERIAL
 
+
BUILDMAT
NOT_WEB
+
FIRE_BUILD_SAFE
 
+
MAGMA_BUILD_SAFE
WEB_ONLY
+
CAN_USE_ARTIFACT
 
+
WORTHLESS_STONE_ONLY
EMPTY
+
ANY_PLANT_MATERIAL
 
+
ANY_SILK_MATERIAL
NOT_CONTAIN_BARREL_ITEM
+
ANY_SOAP_MATERIAL
 
+
ANY_LEATHER_MATERIAL
BAG
+
ANY_BONE_MATERIAL
 
+
ANY_SHELL_MATERIAL
GLASS_MATERIAL
+
ANY_TOOTH_MATERIAL
 
+
ANY_HORN_MATERIAL.
BUILDMAT
+
ANY_PEARL_MATERIAL
 
+
USE_BODY_COMPONENT
FIRE_BUILD_SAFE
+
METAL_ORE
 
+
MIN_DIMENSION
MAGMA_BUILD_SAFE
+
BUILD_ITEM
 
+
NAME
CAN_USE_ARTIFACT
+
NAME_COLOR
 
+
BUILD_LABOR
WORTHLESS_STONE_ONLY
+
DIM
 
+
WORK_LOCATION
ANY_PLANT_MATERIAL
+
BUILD_KEY
 
+
NEEDS_MAGMA
ANY_SILK_MATERIAL
+
BLOCK
 
+
TILE
ANY_SOAP_MATERIAL
 
 
 
ANY_LEATHER_MATERIAL
 
 
 
ANY_BONE_MATERIAL
 
 
 
ANY_SHELL_MATERIAL
 
 
 
ANY_TOOTH_MATERIAL
 
 
 
ANY_HORN_MATERIAL.
 
 
 
ANY_PEARL_MATERIAL
 
 
 
USE_BODY_COMPONENT
 
 
 
METAL_ORE
 
 
 
MIN_DIMENSION
 
 
 
BUILD_ITEM
 
 
 
NAME
 
 
 
NAME_COLOR
 
 
 
BUILD_LABOR
 
 
 
DIM
 
 
 
WORK_LOCATION
 
 
 
BUILD_KEY
 
 
 
NEEDS_MAGMA
 
 
 
BLOCK
 
 
 
TILE
 
  
  
 
I'll come back later to add definitions for these, but many can be found at [[Reactions]]
 
I'll come back later to add definitions for these, but many can be found at [[Reactions]]

Revision as of 15:16, 13 May 2010

These tokens control the functionality of custom buildings.

A good first try at modding buildings is building a bug burning workshop. http://www.bay12forums.com/smf/index.php?topic=54058.0

This works around the bug with critters not rotting by giving you a building to cremate them into ash.

The raw text for the building itself:

start tag and lookup ID for adding the building to entities
[BUILDING_WORKSHOP:MAGMA_CREMATORIUM]

	name to display on menus
	[NAME:Magma Crematorium]

	color to use for name
	[NAME_COLOR:7:0:1]

	dimensions of building
	[DIM:3:3]

	location where your dwarf will stand while working
	[WORK_LOCATION:2:3]

	labor used to construct building (can be hard to guess- try running the .exe through a hex editor)
	[BUILD_LABOR:MASON]

	shortcut in build menu
	[BUILD_KEY:CUSTOM_SHIFT_C]

	which tiles block movement- 1 blocks, 0 is passable; [BLOCK:line number:tile1:tile2...]
	[BLOCK:1:0:0:0]
	[BLOCK:2:0:0:0]
	[BLOCK:3:0:0:0]

	graphics for unbuilt workshop tiles [TILE:build_state:line:tile1:tile2...]
	[TILE:0:1:' ':' ':236]
	[TILE:0:2:' ':236:'/']
	[TILE:0:3:'|':' ':' ']

	color for unbuilt workshop tiles [COLOR:build_state:line:tile1fg:tile1bg:tile1brightness:...]
	[COLOR:0:1:0:0:0:0:0:0:0:0:1]
	[COLOR:0:2:0:0:0:0:0:1:6:0:0]
	[COLOR:0:3:6:0:0:0:0:0:0:0:0]

	graphics for the rest of the build states
	[TILE:1:1:236:' ':227]
	[TILE:1:2:'|':' ':8]
	[TILE:1:3:' ':' ':236]

	[COLOR:1:1:0:0:1:0:0:0:0:0:1]
	[COLOR:1:2:6:0:0:0:0:0:0:0:1]
	[COLOR:1:3:0:0:0:0:0:0:0:0:1]

	[TILE:2:1:201:227:187]
	[TILE:2:2:200:8:188]
	[TILE:2:3:' ':' ':' ']

	[COLOR:2:1:0:0:1:0:0:1:0:0:1]
	[COLOR:2:2:0:0:1:0:0:1:0:0:1]
	[COLOR:2:3:0:0:0:0:0:0:0:0:0]

	[TILE:3:1:201:227:187]
	[TILE:3:2:200:8:188]
	[TILE:3:3:150:210:253]

	[COLOR:3:1:0:0:1:0:0:1:0:0:1] 
	[COLOR:3:2:0:0:1:0:4:1:0:0:1]
	[COLOR:3:3:0:0:1:6:0:0:7:0:1]

	materials used to construct the
	workshop [BUILD_ITEM:quantity:item type:item subtype:mat type:mat subtype] tokens
	[BUILD_ITEM:1:NONE:NONE:NONE:NONE][BUILDMAT][WORTHLESS_STONE_ONLY][CAN_USE_ARTIFACT]


Tokens that are availabe (from hexdump of the exe)

BUILDING_FURNACE
REACTION_CLASS
HAS_MATERIAL_REACTION_PRODUCT
UNROTTEN
CONTAINS_LYE
POTASHABLE
NOT_WEB
WEB_ONLY
EMPTY
NOT_CONTAIN_BARREL_ITEM
BAG
GLASS_MATERIAL
BUILDMAT
FIRE_BUILD_SAFE
MAGMA_BUILD_SAFE
CAN_USE_ARTIFACT
WORTHLESS_STONE_ONLY
ANY_PLANT_MATERIAL
ANY_SILK_MATERIAL
ANY_SOAP_MATERIAL
ANY_LEATHER_MATERIAL
ANY_BONE_MATERIAL
ANY_SHELL_MATERIAL
ANY_TOOTH_MATERIAL
ANY_HORN_MATERIAL.
ANY_PEARL_MATERIAL
USE_BODY_COMPONENT
METAL_ORE
MIN_DIMENSION
BUILD_ITEM
NAME
NAME_COLOR
BUILD_LABOR
DIM
WORK_LOCATION
BUILD_KEY
NEEDS_MAGMA
BLOCK
TILE


I'll come back later to add definitions for these, but many can be found at Reactions