Color swapper and palette maker by qqluqq
Notes and additions by Spatulade

=================================

--TO RUN--

if it doesn't recognise where colourswapper.py, navigate to the folder first using 'cd "[path to folder]"'

then run it.

=================================

script to batch recolor sprites with the dk pallete

install python to run

includes sample of a recolored knight

the in folder should have all images you want to recolor

output will be placed in out folder

mask folder is for when only part of the image needs recoloring, in sample the knight gets recolored without also recouloring the torture table

pal_in.png should just stay the same,

pal_out.png should be modified to the new colours you want in the output

Also made a "one step lighter" and "one step darker" palette but it's a pain because of the dupes so I made three versions:

super safe: basically just alerts you if any of the colours would turn into a dupe (red) and doesn't set the colour that is lightest/darkest to anything else (blue), and the weird extra colours at the bottom i couldn't be bothered to find what they would go to (green)
safe: same but without the red warning
lossy: yolo here are other colours it goes to, some of it will look kinda weird if you hit the dupes and you'll lose detail on the lightest/darkest

pal_lighting: To create effects with transparency (for example flames, smoke effects, hero gates, healing and buff effects), the sprites are actually coloured using the first few lines of the main palette (see https://github.com/dkfans/FXInfo/wiki/Palettes#lighting-engine-palette for more information) which are then interpreted ingame and turned into the correct colours for the lighting engine. This palette is there to help you either convert the raw graphics into something prettier (for other work), or for designing custom graphics and converting them to the colours the engine will interpret.

=================================

if anyone wants to play with making palletes

throw it in with the color swapper as it also needs the png.py

and it'll convert pal_out.png to a .pal file

=================================

for the palette maker:

throw it in the same folder as the colorswapper