Here is the NML code:
Code: Select all
grf {
grfid: "DP\20\13";
name: string(str_grf_name);
desc: string(str_grf_desc);
version: 0;
min_compatible_version: 0;
}
template template_house(x,y){
//xpos, ypos, width, height, xoffset, yoffset
[x,y,68,71,-33,-40]
}
item(FEAT_HOUSES, item_testhouse){
property {
substitute: 06;
name: string(str_testhouse);
override: 06;
probability: 15;
years_available: [0,2000];
availability_mask: [ALL_TOWNZONES, ALL_CLIMATES];
}
}
spriteset(spriteset_testhouse, "gfx/buildings.png") {
template_house(0, 0)
}
spritelayout spritelayout_testhouse {
ground { sprite: GROUNDSPRITE_NORMAL;}
building { sprite: spriteset_testhouse;
recolour_mode: RECOLOUR_NONE;
}
}
item(FEAT_HOUSES, item_testhouse){
graphics {
default: spritelayout_testhouse;
}
}
Code: Select all
4 * 6 01 07 01 FF 01 00
5 sprites/nmlhouse.png 8bpp 98 8 68 71 -33 -40 normal chunked
6 * 18 02 07 FF 01 8D 0F 00 00
00 00 00 80 00 00 00 10 10 10
7 * 27 02 07 FF 89
1A 20 00 00 00 00 \2sto
1A 20 FF 00 00 00 \2rst
0C 00 FF FF 00 00
00 FF 00
8 * 7 03 07 01 00 00 FF 00