[quote=“ZoneWizard, post:342, topic:8933”]A few questions:
3-Is there anything to help us add or correct tiles? Also how do I add new items?..or is that a to easy question with not a easy answer?[/quote]
If you look at the tiles.png in the gfx/ChestHole32Tileset folder (I use GIMP and configure the grid to 32x32) they are numbered (numbers aren’t visible) from left to right, top to bottom, starting at number 0. Top row is 0-15, second row is 16-31 and on and on and on.
To find the number of a tile that’s further down I use either a calculator or I look into the tile_config.json (in the same folder) at something close to it and count backwards or forwards. To use a calculator to find a tile from the tile_config look at the number after “fg”, multiply it by 32 (that’s how many pixels tall these tiles are) and then divide the result by 16 (16 tiles per row) and it will get you close enough that you can figure it out. In GIMP there are handy numbers to the left:
tiles_config.json (I use notepad++ to view and edit it) has this kind of format:
{
"id": "birchbark",
"fg": 3580,
"bg": 632,
"rotates": false
},
“id” is the ingame id of the item or terrain
"fg" is the foreground tile you want displayed for the item or terrain
"bg" is the background tile you want displayed behind the item or terrain
And you generally want “rotates” to be “false” for items.
Armor usually has two entries; one for the armor on the ground (or wherever) and one for when it’s on you. For the ones that are on you, the “id” will be prefixed with “overlay_worn”. Examples of worn/wielded below:
{
"id": "overlay_wielded_boots_fsurvivor",
"fg": 289,
"bg": 632,
"rotates": false
},
{
"id": ["overlay_worn_bunker_pants", "bunker_pants"],
"fg": 3711,
"bg": 632,
"rotates": false
},
I hope that’s enough explanation to get you started because I am terrible at explaining.