I'm looking for a program that can edit and save FCEUX (/NESticle/etc.) .PAL files. (From FCEUX's help file: "Palette files are expected to contain 64 8-bit RGB triplets.")
I could put it together with a hex editor, but I'd like to work with something more visual. What program saves palettes in an FCEUX-compatible format?
It might be easiest to cut the relevant area out of a correctly-sized image stored in the TGA, BMP, or PPM formats, since all of them can store 64 pixels as 192 bytes. (BMP is flipped vertically on disk)
You could also cut out the relevant area out of a 64-pixel GIF file, because it stores the palette uncompressed (once again, 64 colors as 192 bytes).
If you save the palette in Photoshop as an .act file, you can use a hex editor to grab the RGB triplets from it very easily (they're at the beginning of the file).
Thanks, lidnariq, that put me on the right track.
I didn't see the appropriate hex values in the .BMP or .TGA files I made; the .GIF had them but in a strange order. Saving the file as a .TIFF worked. Every RGB triplet had an "FF" byte after it, but those were easy to remove with a hex editor. Chopped off the beginning and end of the file so it just had the 192 bytes of colour data, and the palette worked perfectly in FCEUX!
thefox, thanks for the idea. I'm working with GIMP, and my version doesn't support .ACT.