This tool generates a palette (colormap) file based on an image. The palette is dumped as an ACT file, a simple binary format that XWE can import easily.
The main use of this tool is create a PLAYPAL lump by:
1 - modifying an image representing the game's palette (examples below) using gimp / photoshop / psp / etc.
2 - loading the modified image with this tool and dumping an ACT file
3 - loading the ACT file into a wad as a PLAYPAL lump with a WAD editor
Spoiler: screenshots
linux:
windows:
the readme wrote:
The source image should be square, and each of its sides should
measure a power of two (ie 64, 128, 256...) It should contain 256
colored squares representing the color of each palette entry.
The colors will be entered into the palette in the order the squares
appear, starting at the upper left corner and moving from left to
right, top to bottom.
Basically that means the images you use with this tool should look similar to these:
Well, from a quick test, it seems to do the job, but the preview image doesn't appear quite cleanly (I have to resize the window in order for the image preview to be drawn).
It could also do well with a proper executable. However for such a simple program, I suppose having a command line window looming in the background is excusable
Re: [palettedump] Spidey's Palette Dump Tool
Posted: Sun Feb 03, 2008 12:48 am
by bagheadspidey
Shinjanji wrote:Well, from a quick test, it seems to do the job, but the preview image doesn't appear quite cleanly (I have to resize the window in order for the image preview to be drawn).
Ok. Luckily it's easy to send a dummy resize event =) Fixed in my copy, update soon.
Shinjanji wrote:It could also do well with a proper executable. However for such a simple program, I suppose having a command line window looming in the background is excusable
Yeah... what it really needs is an installer. Here's what you can do, though:
Create a shortcut to the .bat file. Right click the shortcut, hit properties, and deselect "run in console." No more black window.
Re: [palettedump] Spidey's Palette Dump Tool
Posted: Sun Feb 03, 2008 2:27 am
by bagheadspidey
Ok, sorry about that guys, from now on I guess I should test stuff in windows first =p
Works just fine. This is a handy little program; most definitely keeping this one around Thanks spidey!
Re: [palettedump] Spidey's Palette Dump Tool
Posted: Sun Feb 03, 2008 6:38 am
by Remmirath
Very useful tool. Thx a lot, Spidey!
Re: [palettedump] Spidey's Palette Dump Tool
Posted: Sun Feb 03, 2008 1:02 pm
by bagheadspidey
Hey, I'm glad this is working out for you guys. It has definitely saved me some time and some clicks so far.
...So, who's going to make the feature request?
Re: [palettedump] Spidey's Palette Dump Tool
Posted: Sun Feb 03, 2008 8:50 pm
by wildweasel
Bug report (or maybe I'm doing it wrong):
Using this palette...
Spoiler:
...results in this output when importing the ACT into XWE:
Spoiler:
Re: [palettedump] Spidey's Palette Dump Tool
Posted: Sun Feb 03, 2008 8:55 pm
by bagheadspidey
the readme shall reveal all
(there's an image you can use in the "example" folder)
edit - I guess the readme isn't entirely clear - the image should consist of only what the readme describes and no extra stuff (like borders, numbers, etc) - each square should be the same size and also be a power of two, and nothing but squares should appear in the image.
Re: [palettedump] Spidey's Palette Dump Tool
Posted: Mon Feb 04, 2008 2:21 am
by BouncyTEM
Hey, look what I painstakingly worked on!
The Hexen Palette is now available for Bagheadspidey's tool.
Re: [palettedump] Spidey's Palette Dump Tool
Posted: Tue Feb 05, 2008 1:56 am
by bagheadspidey
Bouncy's Hexen palette seems to have disappeared, so I've attached it in the title post, along with Skunk's Strife palette (slightly fixed and resized to match the others) - Now all we need is a Heretic palette!
Re: [palettedump] Spidey's Palette Dump Tool
Posted: Tue Feb 05, 2008 11:34 am
by Enjay
Dammit, I didn't realise you already had a strife one so I made this:
I think it's all OK (I was going a bit cross-eyed at one point) but I notice it is slightly different to the one you have posted already. The pale blue on the bottom line is different. Could that be due to your image being paletised? I have noticed some errors in pngs with that in the past.
Re: [palettedump] Spidey's Palette Dump Tool
Posted: Tue Feb 05, 2008 12:02 pm
by bagheadspidey
Enjay wrote:Dammit, I didn't realise you already had a strife one so I made this:
Spoiler:
I think it's all OK (I was going a bit cross-eyed at one point) but I notice it is slightly different to the one you have posted already. The pale blue on the bottom line is different. Could that be due to your image being paletised? I have noticed some errors in pngs with that in the past.
Skunk's image had cyan in 247 - I never realized his image was paletted until you mentioned it, so I probably screwed that up when I tried to fix that cyan color. Let's just use your image for now...
Re: [palettedump] Spidey's Palette Dump Tool
Posted: Tue Feb 05, 2008 3:53 pm
by Enjay
OK, last one. Heretic
I think it's OK but I really got lost whilst doing this one. Also, interestingly, the first 2 colours are RGB 2,2,2 and there doesn't seem to be a 0,0,0 in the palette at all. I checked and double checked and that does seem to be correct.
Re: [palettedump] Spidey's Palette Dump Tool
Posted: Tue Feb 05, 2008 5:56 pm
by Skunk
bagheadspidey wrote:
Enjay wrote:Dammit, I didn't realise you already had a strife one so I made this:
Spoiler:
I think it's all OK (I was going a bit cross-eyed at one point) but I notice it is slightly different to the one you have posted already. The pale blue on the bottom line is different. Could that be due to your image being paletised? I have noticed some errors in pngs with that in the past.
Skunk's image had cyan in 247 - I never realized his image was paletted until you mentioned it, so I probably screwed that up when I tried to fix that cyan color. Let's just use your image for now...
Oh yeah I indexed it for the resize, cause the original image wasn't a power of 2. I didn't change any colors though! That cyan was there when I was editing the image of the palette, I sure as hell didn't put it there. Thanks Enjay for doing a better version than me!