Saving Maps in Files - LightningdeGolem/Chips2 GitHub Wiki
Maps are saved in files using the following format: The first 4 bytes are the size of the rest of the file in big-endian format.
Then there is the length of the map title followed by the map title bytes encoded in UTF-8 Followed by the length of the map author and then the map author name encoded in UTF-8
Then there is the rest of the map data. For every block in the game, with the exception of air, the format is: [Block Data] However, to save storage space, if the block id is 0x00(air) then it misses out the byte for air as air will never have any blockdata.
Currently, the editor have anyway to save the map name and author so this must be done manually. The editor will always save the map name as "Unknown Name" and the author as "Unknown Author". The editor does not allow you to edit block data either.