Tuesday, July 11, 2017

KeenGraph only checks for the old palette patch

Today I helped a PCKF member extract graphics from a Keen 1 mod that had an alternate color palette patched in. KeenGraph was able to extract the graphics, but it didn't process the palette patch, so the colors in the exported graphics didn't match the colors shown in the game. KeenGraph documentation claims that it can scan the patch file for an altered palette, so I was confused.

After trying various things (including changing the decimal values in the patch file to hexadecimal) I consulted the KeenWiki page on the palette patch. There, I learned that there are two versions of the palette patch, one old and one new. The only relevant different for patch file scanning purposes is that the new edition stores the color table in a different location. Apparently the version of KeenGraph I was using only knew about the old palette patch, and so didn't realize that the new version (used by this mod) affected the palette. Altering the patch file to use the old offset made KeenGraph use the right colors.

No comments:

Post a Comment