We've got a tilemap bitmap that we generated in accordance with all of the tutorials, which agree with eachother and say that it's a standard bitmap with no special formatting. MapConv.exe is finding the file, but says that it can't read it:
Error opening tile file ...
It's failing on line 48 of MapConv.exe:
Code: Select all
TileFileHeader tfh;
ifs.read((char*)&tfh,sizeof(TileFileHeader));
if(strcmp(tfh.magic,"spring tilefile\0")!=0 || tfh.version!=1 || tfh.tileSize!=32){
printf("Error opening tile file %s\n",fi->c_str());
continue;
}
We did some debugging and it's failing all three criteria. Since it is a standard bitmap, obviously it doesn't have a header of those specifications, so of course it's failing. So, how do we generate a correct tilemap? Exactly zero of the tutorials mention this. Are we missing something super simple that's not even worth mentioning, or are you all wrong and has nobody ever used tilemaps ever in any map in the history of everything ever?
While we're on the topic, can somebody provide an explicit and complete format for tilemaps?