aliens

Author Topic: image color gets crashed  (Read 2024 times)

Offline scarf

  • Sergeant
  • **
  • Posts: 27
  • hello world
    • View Profile
    • reddit page
image color gets crashed
« 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.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8595
    • View Profile
Re: image color gets crashed
« Reply #1 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

Offline scarf

  • Sergeant
  • **
  • Posts: 27
  • hello world
    • View Profile
    • reddit page
Re: image color gets crashed
« Reply #2 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?

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8595
    • View Profile
Re: image color gets crashed
« Reply #3 on: September 20, 2019, 04:46:43 pm »
Attach the images and I will convert them for you.

Offline scarf

  • Sergeant
  • **
  • Posts: 27
  • hello world
    • View Profile
    • reddit page
Re: image color gets crashed
« Reply #4 on: September 20, 2019, 05:17:35 pm »
Thank you!!

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8595
    • View Profile
Re: image color gets crashed
« Reply #5 on: September 20, 2019, 06:22:34 pm »
Attached.

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