OpenXcom Forum

Modding => Help => Topic started by: greenscarf on September 20, 2019, 03:35:36 pm

Title: image color gets crashed
Post by: greenscarf on September 20, 2019, 03:35:36 pm
So I was creating a mod that adds a new x-com craft, and the color pallete gets crashed. I think I must use some correct color pallete to prevent this to happen. Could you please tell me the appropriate color pallete to use?


I've attatched mod(with image files), save file and screenshots of how the error happens.
Title: Re: image color gets crashed
Post by: Meridian on September 20, 2019, 03:53:47 pm
For the base icon sprite you need PAL_BASESCAPE palette.
For the ufopedia craft article you need PAL_UFOPAEDIA palette.

All palettes (in 3 different formats) can be found here: https://github.com/MeridianOXC/OpenXcom/tree/oxce-plus/bin/common/Palettes
Title: Re: image color gets crashed
Post by: greenscarf on September 20, 2019, 04:35:50 pm
I've tried using the color palettes, but it does not seem to work. Is there a way to convert palette properly that I don't know?
Title: Re: image color gets crashed
Post by: Meridian on September 20, 2019, 04:46:43 pm
Attach the images and I will convert them for you.
Title: Re: image color gets crashed
Post by: greenscarf on September 20, 2019, 05:17:35 pm
Thank you!!
Title: Re: image color gets crashed
Post by: Meridian on September 20, 2019, 06:22:34 pm
Attached.

Btw. it is better to use PNGs than GIFs, especially for MacOS.