Palette importing incorrectly from GrafX2 to OHR.

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
TheLordThyGod
Slime Knight
Posts: 195
Joined: Thu May 14, 2015 9:18 pm
Location: Muscle Shoals, AL, USA, Earth, Solar System, Milky Way, Known Universe
Contact:

Palette importing incorrectly from GrafX2 to OHR.

Post by TheLordThyGod »

I used Neo's Better Palette as a template to create my own palette in GrafX2, saved the file as a BMP, imported it into OHR, and the colors were all screwy. I checked the BMP in MS Paint and it looked as it should. Any insight?
Attachments
LinearPalette
LinearPalette
LinearPalette.bmp (26.05 KiB) Viewed 294 times
How OHR reads it.
How OHR reads it.
untitled.bmp (2.25 MiB) Viewed 294 times
Last edited by TheLordThyGod on Thu May 25, 2017 8:31 am, edited 1 time in total.
...spake The Lord Thy God.
TMC
Metal King Slime
Posts: 4101
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

There are two formats that can be used to import a master palette into the OHR:

-An 8 bit BMP of any size. The palette is used, and the pixels are ignored
-A 16x16 24/32 bit BMP. The pixel values are used

If you open your image in GrafX2 and look at the palette you see that it's all scrambled.
So shrink your image down to 16x16 and convert it to 24/32 bit using some other program (I don't think GrafX2 can save in that format).
Last edited by TMC on Thu May 25, 2017 12:14 pm, edited 2 times in total.
User avatar
TheLordThyGod
Slime Knight
Posts: 195
Joined: Thu May 14, 2015 9:18 pm
Location: Muscle Shoals, AL, USA, Earth, Solar System, Milky Way, Known Universe
Contact:

Post by TheLordThyGod »

Got it, thanks!!!
...spake The Lord Thy God.
Post Reply