![]() ![]() The part of the data where the new, changed colours are written, could still contain a 00 byte. The encoding could happen to contain something that looks like a colour you want to edit (unlikely but possible), resulting in you editing the wrong thing and wtfpwning your ROM. the NPC palette will generally just have 3 or 4 entries changed to switch blue team -> green team, and the rest of the colours will be the same - so there's a chunk of repeated data that can be encoded as such. This is very unlikely, but possible, in the context of an individual palette.įor these groups of palettes, there is actual compression benefit, since e.g. But you should keep in mind: there are places in the ROM where single palettes are written uncompressed there are places with sets of 4 compressed palettes (which I'd think makes more sense in general) and I'm pretty sure there are places where a single palette is compressed (which is mind-bogglingly stupid, because basically no single palettes will actually compress, and it would only save a couple of bytes even if it did).Īnyway, it's entirely possible for a palette to compress slightly if the palette repeats some colours, or more generally repeats a sequence of 3 or more bytes. This is the header for the compression format: 10 indicates the compression format (LZ77), and the rest is the size - in this case, A0 = 160 bytes.Ī palette is 32 bytes, so this data-chunk is 5 consecutive palettes. The data that you're seeing is actually a single chunk, from one "10 A0 00 00" word to the next. These palettes have had the compression algorithm applied to them, but it hasn't worked out so well, because the data just isn't that compressible. ![]() The 00 bytes are making things longer, so that clearly hasn't happened. Things that are compressed are supposed to be smaller. It would be hard to do better without getting annoyingly technical, which most people wouldn't want to bother with, but it's meaningful and valuable, so I do so below. Asdlkjfkladsjfkla this part is massively inaccurate and the reason for any and all unreliability (except for failure to follow directions, of course).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |