In the following, you will find tables with valid values. List of professions, creatures and states Īs shown in the example above, the syntax is The only limitation is that the TILE_PAGE must be before its entries. You can have several TILE_PAGEs in succession and the entries of each all together, or have one TILE_PAGE followed by all of its entries, before you define the next TILE_PAGE with its entries. The order of a text file is fairly flexible. However, a sheet that has 24 rows and 44 columns (24 × 44 = 1056) will not work. Thus, a sheet that has its graphics organized into 22 rows and 44 columns works fine (as 22 × 44 = 968, which is less than 1024. The total number of tiles in a sheet cannot number more than 1024, regardless of how big (18×18) or how small (8×12) each tile is. So, the last column in a 5 tile wide image is at 4, not at 5. Note that the coordinates start at 0, not 1. The position of the dwarven child graphic from the example above ( ) is shown in bold. This is how the coordinates would work with the image mydwarves.png from the example above: The first value is the x-axis ("width"), the second value the y-axis ("height"). The PAGE_DIM value in the TILE_PAGE section defines how many columns and rows a given TILE_PAGE (graphic set) has. ← TRAINED_WAR profession only works with animals that have or. ← TRAINED_HUNTER profession only works with animals that have or. You could put that (and its creature graphic entries) in a separate text file, but it would have to contain ↑ The ADD_COLOR value tells DF to give the tile the same colors as the default graphic ← The value (DWARF in this case) is the name the creature has in the raws. Syntax is: X and Y are the coordinates of the tile on the image. This concludes the first TILE_PAGE definition. ← Width:Height - Tiles per image and how they're arranged in rows and columns. ← Height:Width - Pixels per tile, so DF knows where one tile ends and another begins ← The subfolder where the graphic set is located (relative to this text file) and its filename, including the file The title doesn't have to match any creature, folder, or image name. The title MYDWARVES will be used in creature graphic entries to refer to that graphic set. ← Here you are defining properties of a single graphic set image. You can use it for comments and organizing your file visually with lines Each graphic set text file needs to contain these lines.īelow are dwarves ← text outside brackets gets ignored. This name should match the folder name you will be using in "raw/graphics". You'll be saving the text document as this name (graphics_mygraphics.txt) Graphics_mygraphics ← The first line of the header. The structure of a typical text file would look like this: Each text file consists of a header, one or more graphic set definitions (called " TILE_PAGE") and several creature graphics entries, each of which has subentries for professions. You can use separate text files for each graphic set, or a single one for several. Vermin and different genders cannot have separate graphics assigned to them.Ī graphic set needs a text file that tells the game which tile is used for which creature. You can assign one graphic to several creatures/states, and you can set each tile to either be displayed as it appears or let the game color them. In addition, the major civilizations can have separate graphics for all professions (such as miner, mason, caravan guard, and ghost). Possible graphics You can find a detailed list below.Īll creatures can have separate graphics assigned to their adult and child states, undead, and their -men and giant variants. The number of tiles and their spatial arrangement doesn't matter see Notes for details. As the automatic resizing algorithm might introduce artifacts or unintended aliasing to your art, it is recommended to draw them in the intended dimension from the beginning. Graphic sets don't need to have the same tile size as the main tileset, they will be resized automatically to match it. The text files are placed directly in the raw/graphics folder while the graphic sets themselves should be in subfolders. 2 List of professions, creatures and statesĭocumentation Location and size.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |