Talk:Visage Format

From ModdingWiki
Jump to: navigation, search

BASIC isn't my cup of tea so I'll leave it to you to add this, but here's how the RLE works. After the 8-byte header, there are 3 compression header bytes: UINT16LE chunk_size, BYTE repeat_marker. Now loop until out of data: read a BYTE as val; if it's the repeat_marker, read another BYTE as val2, read another BYTE as num, and add num val2s to output. If val wasn't the repeat marker, add it to output. Loop. Finally, output size should match width * height from the header. Ceidwad (talk) 09:19, 19 December 2014 (UTC)