Page 1 of 1

action colors conversion tool

Posted: 29 Apr 2004 13:34
by Korenn
To help out those that face the arduous task of making NFO's to go along with sprites and then find that your new vehicle blinks like an ADHD patient on a sugar rush, I wrote a small tool.

It replaces all action colors in a pcx by the same non-action color.
run on a command line without parameters to view usage.

Replacement color credits go to Broodje


[update] Fixed! ready for use :mrgreen:

Posted: 29 Apr 2004 14:03
by broodje
yep works fine now, great. Now I won't have to complain when bastiaan or Purno send flashing blimping hurting my eyes sprites :).
It works fast and clean, tnx again

Posted: 29 Apr 2004 16:16
by krtaylor
Cool! Maybe it can be integrated in the the GRF encoder to do it automatically?

Posted: 29 Apr 2004 16:36
by Hyronymus
I don't think that would be useful. There are occasions where you do want blinking spots. If they get rendered harmless automaticly you might find yourself getting angry at the grfwizard. It could be an option though.

Posted: 29 Apr 2004 19:48
by nilsi
@ korenn
Thank you very much for releasing the source code and allowing others to enhance it.

Posted: 06 May 2004 19:27
by Oracle
Sorry for digging this up, but I was in a rush when this was a new post and so didn't get around to saying thank you.
This is really useful because I was sure there was still the odd flashing colour in the US set and so I've run the USSet PCX through it.
Now that I've copied the flashing ETD back in I've got rid of all those annoying flashes. :)
Thanks again! :D

Re: action colors conversion tool

Posted: 16 Dec 2007 14:06
by LordAzamath
now THIS is a bump...
they say in Estonia that never is too late...So when I started to organize the 8bpp graphics replacement for OpenTTD, Korenn gave me this link....Thank you Korenn very much. It has halped to solve one big problem I had about the action colours. So I thank you maybe even few years later, but I still thank you :D

BTW, one suggestion.(yea I know I'm a bit late :) ). Is it possible to make this tool to add the ttd palette first and then remove action? I mean another commandline option ->
palconvert source.pcx output.pcx -C -p 2

would add windows palette to picture (similar when you load a 32bpp layer to and indexed image in Gimp) and then remove action colours.
And once again, thanks and sorry for a three year topic bump

Re: action colors conversion tool

Posted: 16 Dec 2007 15:24
by PaulC
A worthy bump, IMO. I myself recently found this thread in the depths of the forum, and have found it to be a handy little tool. So a belated "thanks" to Korenn from me also. :)

Re: action colors conversion tool

Posted: 16 Dec 2007 18:30
by thgergo
PaulC wrote:A worthy bump, IMO. I myself recently found this thread in the depths of the forum, and have found it to be a handy little tool. So a belated "thanks" to Korenn from me also. :)
Its good to know the existence of this wonderful tool:)

Re: action colors conversion tool

Posted: 16 Dec 2007 23:27
by athanasios
Useful dig, useful applet. :mrgreen:

Re: action colors conversion tool

Posted: 17 Dec 2007 10:20
by Purno
For those who don't know; GRFMaker got a similar tool built-in.

Re: action colors conversion tool

Posted: 17 Dec 2007 22:30
by Korenn
lordazamath wrote:BTW, one suggestion.(yea I know I'm a bit late :) ). Is it possible to make this tool to add the ttd palette first and then remove action? I mean another commandline option ->
palconvert source.pcx output.pcx -C -p 2

would add windows palette to picture (similar when you load a 32bpp layer to and indexed image in Gimp) and then remove action colours.
And once again, thanks and sorry for a three year topic bump
Good to see it's still useful. That suggestion isn't as easy as it sounds, converting 32 bpp to the right indexed colors can be quite tricky. Especially because which color is the 'correct' replacement is subjective.

Re: action colors conversion tool

Posted: 18 Dec 2007 06:25
by athanasios
I prefer error diffusion. Replacing with most fit will not give nice result.

Re: action colors conversion tool

Posted: 03 Nov 2008 12:04
by Korenn
It turns out more than 4 years after I wrote this it's still being used occasionally, so I thought it was time to add what I forgot in the original post: The code for this tool is released to the public, you can do whatever you want with it, no strings attached.