@nesbox, can you explain .tic file format? I just want to change the map from outside.
which kind of information (specification) is stored in the chunk 14? (0x0E) - and how the information on the chunk 3 (cover) is stored? (btw, sfx and waveforms might need to be documented as well) - would be really great having the whole .tic format specification documented! :) (i'm aware how toilsome is to document anything, perhaps we should start a wiki page somewhere and keep improving it voluntarily and progressively? )
Type 3 (cover) is essentially a GIF image file. You can just copy any GIF image's binary data you want, as long as it's less than 65536 bytes. (Nesbox was wrong, only 2 bytes for size are actually being read, the 3rd byte is unused.)
Type 5 (code) is plain text. All other valid types are based on the TIC-80 RAM layouts for each of those assets.
Useful wiki pages:
https://github.com/nesbox/TIC-80/wiki/tic-File-Format
https://github.com/nesbox/TIC-80/wiki/RAM