aliens

Author Topic: Palettes for XCOM in GIMP/Paintshop format  (Read 104259 times)

Online Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Palettes for XCOM in GIMP/Paintshop format
« Reply #60 on: April 02, 2015, 06:30:08 pm »
If you have any trouble, here's the complete palette set.

The names are mostly straightforward, except for Paleta.act which is used for stuff that appears both in the battlescape an the Ufopaedia, for example item bigobs.

Offline jackstraw2323

  • Colonel
  • ****
  • Posts: 206
    • View Profile
Re: Palettes for XCOM in GIMP/Paintshop format
« Reply #61 on: April 03, 2015, 06:32:42 am »
Using the correct basescape pallets with transparency on my test images consisting of the colors in order from left to right demonstrates that certain bands are shifting. Maybe this is by design. In this case index 1 is not converted unlike battlescape.

Image 1 is the greys and image 2 is the ufo light purples that are often used for alloy.
« Last Edit: April 03, 2015, 06:34:58 am by jackstraw2323 »

Offline CanadianBeaver

  • Colonel
  • ****
  • Posts: 184
    • View Profile
    • AwesomeGuns
Re: Palettes for XCOM in GIMP/Paintshop format
« Reply #62 on: August 11, 2016, 06:35:29 pm »
GIMP palettes for BattleScape and Ufopaedia are here. Zero index is used for transparent background (lime color in the palettes).
« Last Edit: August 11, 2016, 07:05:06 pm by CanadianBeaver »

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: Palettes for XCOM in GIMP/Paintshop format
« Reply #63 on: August 11, 2016, 07:41:07 pm »
GIMP palettes for BattleScape and Ufopaedia are here. Zero index is used for transparent background (lime color in the palettes).

This might save you some time. It's all the game palettes (Battlescape, Geoscape, UFOPaedia and Basescape) in .pal format. You can import those for GIMP.

Offline CanadianBeaver

  • Colonel
  • ****
  • Posts: 184
    • View Profile
    • AwesomeGuns
Re: Palettes for XCOM in GIMP/Paintshop format
« Reply #64 on: August 11, 2016, 08:05:01 pm »
This might save you some time. It's all the game palettes (Battlescape, Geoscape, UFOPaedia and Basescape) in .pal format. You can import those for GIMP.

Unfortunately, GIMP do not import transparent background from .pal palettes. Therefore, GIMP palettes will be shifted by 1 color after imports. I took palettes from message #3 and corrected they after import. The .gpl files in the my message are the original GIMP palette files.

Remarks: GIMP will cut and will compact colors in the indexed .png file, but will not compact (just cuts) in the .gif files.

Offline hellrazor

  • Commander
  • *****
  • Posts: 2027
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: Palettes for XCOM in GIMP/Paintshop format
« Reply #65 on: August 22, 2016, 09:59:15 am »
Jeah its a shame it does that, I usually have to reimport the pallette from another correct picture via grafx2.
I try to avoid gif files, they had some serious issues in the past.

Or using falkoo's sprite tool

Offline RSSwizard

  • Commander
  • *****
  • Posts: 793
    • View Profile
Re: Palettes for XCOM in GIMP/Paintshop format
« Reply #66 on: November 02, 2016, 10:27:25 pm »
Somewhat related I thought I would post this really nifty technique I discovered for working with photoshop and spriting, take a screenshot of the palette editor, paste it into a new image then crop the image to the palette. You can even save that image for future use if you want.

It doesn't matter if that image is in 8bit or not, the point is it provides a literal artist's palette to pick colors from, and at least in PS7 you dont even have to switch to that image to pick a color or use the eyedropper (hold down ALT and it becomes the color picker, and picking a color from the other image will not switch to it).

There are some people who use the Swatches toolbar but I have never found it useful for anything or how to adapt it quickly like others do, and it just adds another layer of hassle to an already hassle-filled program. Id rather just have it as an image like so.

I discovered this actually when I was doing some ZDoom spriting because I wanted to pick colors that were most likely going to be on the ranges I wanted (rather than an off-red diverting to brown, it has an actual color on the palette to start with)

Online Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Palettes for XCOM in GIMP/Paintshop format
« Reply #67 on: November 02, 2016, 10:29:31 pm »
Yeah, it's not a bad idea. I usually just fix it after conversion (when I'm not simply working on that palette), but I'll try your method.

Offline RSSwizard

  • Commander
  • *****
  • Posts: 793
    • View Profile
Re: Palettes for XCOM in GIMP/Paintshop format
« Reply #68 on: November 02, 2016, 10:39:38 pm »
Also another useful tip for fixing colors after conversion is getting the paint bucket tool and turning off the "contiguous" function. Set the tolerance real low or even to 0.

Might be a no brainer, but after working on explosion stuff and having all these little islands of off-colored pixels after converting, going after all of them with the pencil tool is pretty hard and tedious.

Also found it useful because if I decided the entire color-banding on something wasnt coming out correctly I could fix the entire sequence on a macro level by replacing all of the in-between colors as desired. And if you select an area you can make sure that it only affects that sprite at a time, or hits the off-colored pixels on the outside of something but not the ones in the inside of it.

(for explosions and such this is an issue because maybe sparks or flaming bits on the outside could end up being unusually white or have red spots in them, but you dont want it to affect the white/red spots on the main body of the fireball, so if you select the sprite then de-select the parts you dont wanna effect)

Also good for matting, to get rid of darker colors that you're just not sure are bright enough on the fringe to adequately transition. Or even replace them with colors that are more like the rest of the sprite.

Offline CanadianBeaver

  • Colonel
  • ****
  • Posts: 184
    • View Profile
    • AwesomeGuns
Re: Palettes for XCOM in GIMP/Paintshop format
« Reply #69 on: November 10, 2016, 03:16:33 pm »
Also another useful tip for fixing colors after conversion is getting the paint bucket tool and turning off the "contiguous" function. Set the tolerance real low or even to 0.

Might be a no brainer, but after working on explosion stuff and having all these little islands of off-colored pixels after converting, going after all of them with the pencil tool is pretty hard and tedious.

Also found it useful because if I decided the entire color-banding on something wasnt coming out correctly I could fix the entire sequence on a macro level by replacing all of the in-between colors as desired. And if you select an area you can make sure that it only affects that sprite at a time, or hits the off-colored pixels on the outside of something but not the ones in the inside of it.

(for explosions and such this is an issue because maybe sparks or flaming bits on the outside could end up being unusually white or have red spots in them, but you dont want it to affect the white/red spots on the main body of the fireball, so if you select the sprite then de-select the parts you dont wanna effect)

Also good for matting, to get rid of darker colors that you're just not sure are bright enough on the fringe to adequately transition. Or even replace them with colors that are more like the rest of the sprite.

It is a simple - DO NOT USE .png with GIMP for OpenXcom - USE ONLY .gif! And each time when you have loaded image do - Colors - Map - Set colourmap - {pallete}

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: Palettes for XCOM in GIMP/Paintshop format
« Reply #70 on: November 10, 2016, 03:21:37 pm »
I export .png files from GIMP for the sprites I've been making and have had no problems.  It's easy to keep a project (.xcf) file as a template with the proper image mode and palette, save your wirking sprite to a new .xcf, then export when it's ready to get in game.  I can post my templates here if that's help anyone making battlescape sprites in GIMP.

Offline CanadianBeaver

  • Colonel
  • ****
  • Posts: 184
    • View Profile
    • AwesomeGuns
Re: Palettes for XCOM in GIMP/Paintshop format
« Reply #71 on: November 10, 2016, 03:27:54 pm »
I export .png files from GIMP for the sprites I've been making and have had no problems.

Look it better, because all colours have shifted by 1 step in palette (after apply the pallete)

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: Palettes for XCOM in GIMP/Paintshop format
« Reply #72 on: January 12, 2018, 06:27:34 pm »
Yes, I had the issue on conversion from an already indexed .gif imported to GIMP, re-applying the palette, then exporting again, but not with images where I started with an .xcf file already in the proper palette.

Edit: For anybody who wants to use GIMP for UFO sprites editing, I've compiled a set of palettes in .gpl format if you want to use them, attached to this post.  Also, if you're running into loading indexed .png files causing the issue of shifting the colormap down one index, this is the fix I've found to work:
  • Import the image into GIMP.
  • Go to Image>Mode, set the image to RGB mode.
  • Go back to Image>Mode, set the image back to Indexed.
  • In the dialogue that pops up, set the palette back to what it you need it to be, and untick the option to remove unused colors from the map.

Online Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Palettes for XCOM in GIMP/Paintshop format
« Reply #73 on: May 20, 2018, 04:29:55 pm »
RSS Wizard,
Your palette for X-Com Files is great, but some people complain that it's too dark to see. Would it be possible to have a brighter version?