action colors conversion tool

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
User avatar
Korenn
Tycoon
Tycoon
Posts: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

action colors conversion tool

Post 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:
Attachments
palconvert.zip
palconvert.exe - executable
(14.34 KiB) Downloaded 418 times
palconvert_source.zip
Source - ANSI C
(1.7 KiB) Downloaded 329 times
Last edited by Korenn on 29 Apr 2004 14:05, edited 1 time in total.
broodje
Director
Director
Posts: 615
Joined: 13 Jul 2003 12:47
Location: Alphen aan den Rijn
Contact:

Post 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
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

Cool! Maybe it can be integrated in the the GRF encoder to do it automatically?
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13233
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

Post 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.
nilsi
Transport Coordinator
Transport Coordinator
Posts: 268
Joined: 20 Nov 2002 16:20
Location: Dresden, Germany

Post by nilsi »

@ korenn
Thank you very much for releasing the source code and allowing others to enhance it.
User avatar
Oracle
Tycoon
Tycoon
Posts: 2138
Joined: 22 May 2003 09:59

Post 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
LordAzamath
Tycoon
Tycoon
Posts: 1656
Joined: 08 Jun 2007 08:00

Re: action colors conversion tool

Post 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
PS: And I stopped the propaganda to support Dave Worley since he got a nice new red hat now.[/color]
I know I have a BBCode error in my signature but I really cba to fix it.
User avatar
PaulC
Director
Director
Posts: 616
Joined: 31 Jul 2006 12:40
Location: Lancs, England
Contact:

Re: action colors conversion tool

Post 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. :)
User avatar
thgergo
Route Supervisor
Route Supervisor
Posts: 391
Joined: 29 Mar 2005 12:44
Location: Hungary

Re: action colors conversion tool

Post 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:)
Image
Image
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Re: action colors conversion tool

Post by athanasios »

Useful dig, useful applet. :mrgreen:
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.


I prefer to be contacted through PMs. Thanks.
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Re: action colors conversion tool

Post by Purno »

For those who don't know; GRFMaker got a similar tool built-in.
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
Korenn
Tycoon
Tycoon
Posts: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

Re: action colors conversion tool

Post 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.
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Re: action colors conversion tool

Post by athanasios »

I prefer error diffusion. Replacing with most fit will not give nice result.
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.


I prefer to be contacted through PMs. Thanks.
User avatar
Korenn
Tycoon
Tycoon
Posts: 1735
Joined: 26 Mar 2004 01:27
Location: Netherlands
Contact:

Re: action colors conversion tool

Post 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.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: GarryG and 35 guests