Re: Re: The Wiki
Reply #3 –
The only main inconsistency I found was that when loading tilesets, the tiles name appears after the tile info block, and contains the length of the string in the block. You might already have this fixed if you followed the original C++ code, but if you followed the docs it was written wrong.
Correct tile info block:
struct TILE_INFORMATION_BLOCK
byte obsolete1_;
byte animated;
word nexttile; // For animated tiles
word delay; // number of frames to wait until next tile switch
byte obsolete2_;
byte blocked; // 0 = no obstruction data, 1 = old obstruction data, 2 = new obstruction data
word num_segments;
word name_length; // see the name below the header segment
byte reserved[20];
end struct
string name; // strings are stored after the data block has name_length size