The Dink Network

Palettes

November 13th 2009, 09:53 PM
burntree.gif
Fireball5
Peasant He/Him Australia
Let me heat that up for you... 
I am having trouble with using palettes in Dink - the engine seems to mess up the ordering of colours

e.g. If the first half of the palette consisted of yellow, and the second half of the palette was blue, Dink would cause a yellow image to appear a mix between yellow and blue, instead of the yellow it was meant to be.
November 13th 2009, 10:00 PM
custom_robj.png
Robj
Jester He/Him Australia
You feed the madness, and it feeds on you. 
Is this problem only in the editor?
I recall having a problem similar to this, the graphic was displayed wrong in the editor, but when in-game it was displayed right.
November 13th 2009, 10:06 PM
burntree.gif
Fireball5
Peasant He/Him Australia
Let me heat that up for you... 
The error occured during in-game testing. I am planning on using only Notepad and Photoshop to make my next D-Mod.

The images look fine in Photoshop, I exported them as 8 bit images (256 colour).

When I change the palette with:

load_palette("PALETTES/P-01.BMP");


the colours seem messed up (colours in wrong places)

Changing the directory seems to make no difference, but I decided to make a palettes directory as I will be using a lot of palettes.
November 14th 2009, 03:37 AM
burntree.gif
Fireball5
Peasant He/Him Australia
Let me heat that up for you... 
Don't worry - I figured it out.

The image was saved using the new palette - apparently, it needed to have Dink's palette applied to images for it to work.