[Graphics] A Workaround For The AC Palette Problem in GIMP

Submitted By: Buster's Uncle Date: October 13, 2012, 07:20:29 pm Views: 4729

Transparent Colors, the AC Palette Problem in GIMP and a Transparent Layer workaround

To my monolithic dismay, since I got back into the graphics modding saddle recently [last November],  finding myself confined to GIMP for the moment, along with changes in the Windows 7 version of Paint and my own rustiness, have left me a major learning curve I really didn’t expect. I never thought I’d have to figure out yet another way to do scanlines at my level of experience.

I certainly was shocked to find out I was getting the old ‘blue boxes around my bases’ problem at THIS late date.



In short, anything you do to the transparent background purple (or pink if you’re vanilla SMAC) will no longer be transparent in the game, and that naturally sucks real hard.  In Photoshop, sampling the background and doing a fill is all it takes to fix it - GIMP doesn’t take care of as much color stuff automatically ‘under the hood‘ for you, and replacing the exact same background color doesn’t work.  Loading the palette in GIMP doesn’t fix this. 

-Also, there a shade of blue that displays a mustard brown in-game, but I’ve only seen that be a problem with one faction that used that exact shade a lot in the leaderhead.

I don’t know if this was a Windows 7 change or what. I’d like to know, but what matters is that I found a workaround:

I assemble my factions in a blank .pcx. You can find a copy here: http://alphacentauri2.info/index.php?action=downloads;sa=view;down=65 (Look around the Downloads folder that file's in for a lot of other useful goodies and remember who yer buddy is.) Open a copy. I'd advise creating a palette from it before doing anything else - Windows>Dockable Dialogues>Palettes. Right-click on any palette in the menu>Import Palette. Check Image, the second option, below Gradient, and blankpcx.pcx(and a number) and import.

To get a transparent background copy to do the assembling in, Layer>Transparency>Add Alpha Channel. Then Select>By Color>click on the purple background>Delete.



(Or save a step using the Select by Color Tool in the Toolbax indicated by the red arrow above.) Now you should have the guide boxes and nothing else against a gray-checked background (the gray checks let you know it's a complete transparency).



You'll need to Image>Mode>RGB to turn on a lot of the functions in GIMP (same for Photoshop), especially color manipulation. When you’re finished and/or need to check how a color will look in the SMAC(X) palette, Image>Mode>Indexed>check Use custom palette>click on the colored square>pick the palette you made, and uncheck Remove unused colors from colormap. (While it's in Indexed mode, you can reload the palette with Colors>Map>Set Colormap.. - click on the Palette Default box in the pop-up and choose your palette.)



When the faction is finished, or at least ready to test, paste the whole thing into an unaltered copy of blankpcx.pcx ([Ctrl]a>[Crtl]c>bring up the unaltered copy with the purple>[Ctrl]v) and Save As with the filename you want. For playtesting, I usually replace the Gaians.pcx and have a look in an old gamesave with many Gaian bases - you'll wanna back up/save a copy of the graphic you're replacing, or course.

It's harder to explain than do, really. It surely sounds complicated until you've done it - then it will be no big deal.



Have fun.

Rating: ***** by 1 members.
***************

Comments

Buster's Uncle
With community service, I
Ascend
*
Online Online

Posts: 49636


AC2 is my instrument, my heart, as I play my song.


View Profile WWW Email
February 18, 2023, 01:16:12 am
Sorry I didn't see this over a year sooner.  I really, really like newer GIMP versions older than mine less and less the more I see and hear - trying to cram the .xcf format down our throats by adding a superfluous hoop to jump through saving was enough to make me stop where I am, when I saw it in the copy I downloaded for my mother.  I really don't have an answer to them moving things around enough to make my careful step>by>step instructions not work - you just have to root around and find where function x has been moved.


Sorry.
phriskiii
Drone
*
Offline Offline

Posts: 1

Newb - be nice and greet me :)


View Profile Email
November 03, 2020, 02:39:19 am
Looks like version 2.6.8 of GIMP (https://download.gimp.org/pub/gimp/v2.6/windows/?C=N;O=D) is doing it for me! Your guide works just fine for older versions. Nice work and thank you. Perhaps I'll actually finish a mod now. I'll share my progress when I've made some!
phriskiii
Drone
*
Offline Offline

Posts: 1

Newb - be nice and greet me :)


View Profile Email
November 03, 2020, 01:38:54 am
Hey again. Thanks for the tutorial. I am using GIMP 2.10.22, and I am still getting the turquoise background behind my cities. I believe I followed your tutorial to the letter, but I am new to GIMP - it's possible I've missed something. Do you know if there are any issues with newer versions of GIMP? Do you think I should try an older version?


* User

Welcome, Guest. Please login or register.

Login with username, password and session length

Select language:

* Community poll

SMAC v.4 SMAX v.2 (or previous versions)
-=-
24 (7%)
XP Compatibility patch
-=-
9 (2%)
Gog version for Windows
-=-
103 (32%)
Scient (unofficial) patch
-=-
40 (12%)
Kyrub's latest patch
-=-
14 (4%)
Yitzi's latest patch
-=-
89 (28%)
AC for Mac
-=-
3 (0%)
AC for Linux
-=-
6 (1%)
Gog version for Mac
-=-
10 (3%)
No patch
-=-
16 (5%)
Total Members Voted: 314
AC2 Wiki Logo
-click pic for wik-

* Random quote

The Academician's private residences shall remain off-limits to the Genetic Inspectors. We possess no retroviral capability, we are not researching retroviral engineering, and we shall not allow this Council to violate faction privileges in the name of this ridiculous witch hunt!
~Fedor Petrov (Vice Provost for University Affairs)

* Select your theme

*
Templates: 4: index (default), PortaMx/Mainindex (default), PortaMx/Frames (default), Articles2 (default).
Sub templates: 8: init, html_above, body_above, portamx_above, viewarticle, portamx_below, body_below, html_below.
Language files: 5: index+Modifications.english (default), TopicRating/.english (default), PortaMx/PortaMx.english (default), OharaYTEmbed.english (default), Articles.english (default).
Style sheets: 0: .
Files included: 44 - 1207KB. (show)
Queries used: 35.

[Show Queries]