I made a .pal file which by itself works correctly, but there's two large problems: Mods don't load pal files in them, and xml sprites (as opposed to the older .spr sprites) don't use the palettes at all. This is rather frustrating as there's no way I can get anything similar because the monster in question is almost entirely gray and I need to add color. In the meantime I'm learning to write and writing script-fu for gimp so I can batch process these. But seriously it'd be much nicer just to be able to use palettes. I just found out that their indeces appear to be in a different order in different pngs, besides the masses of horrible problems with the scripts. So anyway I need this.
If not, try this one http://www.alessandrofrancesconi.it/projects/bimp/ EDIT: and if so, please post it