Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Thu Sep 02, 2010 6:04 pm

All times are UTC




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: action colors conversion tool
PostPosted: Thu Apr 29, 2004 1:34 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Fri Mar 26, 2004 1:27 am
Posts: 1552
Location: Netherlands, Enschede
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:
File comment: palconvert.exe - executable
palconvert.zip [0 Bytes]
Downloaded 202 times
File comment: Source - ANSI C
palconvert_source.zip [0 Bytes]
Downloaded 121 times

_________________
Abunai!
Creator of the Openttd Challenge Spinoff


Last edited by Korenn on Thu Apr 29, 2004 2:05 pm, edited 1 time in total.
Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 29, 2004 2:03 pm 
Director
Director
User avatar
Offline

Joined: Sun Jul 13, 2003 12:47 pm
Posts: 564
Location: Stompwijk
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 29, 2004 4:16 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Fri Feb 07, 2003 1:58 am
Posts: 11681
Location: Washington DC, USA
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 29, 2004 4:36 pm 
Moderator
Moderator
User avatar
Offline

Joined: Tue Dec 03, 2002 10:36 am
Posts: 10008
Location: The Netherlands
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.

_________________
Image
Dutch Trainset for TTDPatch | Dutch Trainset for OpenTTD | Dutch Trainset Topic | Combined Roadset v0.10

The best intentions are fraught with disappointment


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 29, 2004 7:48 pm 
Transport Coordinator
Transport Coordinator
Offline

Joined: Wed Nov 20, 2002 4:20 pm
Posts: 268
Location: Dresden, Germany
@ korenn
Thank you very much for releasing the source code and allowing others to enhance it.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 06, 2004 7:27 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Thu May 22, 2003 9:59 am
Posts: 2135
Location: Cambridge, UK
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

_________________
US Train Set v0.87.1 now released: viewtopic.php?t=8754
Don't forget to read the manual: http://wiki.ttdpatch.net/tiki-index.php?page=Manual


Top
 Profile  
 
 Post subject: Re: action colors conversion tool
PostPosted: Sun Dec 16, 2007 2:06 pm 
Tycoon
Tycoon
Offline

Joined: Fri Jun 08, 2007 8:00 am
Posts: 1656
Location: Tallinn, Estonia
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.


Top
 Profile E-mail  
 
 Post subject: Re: action colors conversion tool
PostPosted: Sun Dec 16, 2007 3:24 pm 
Traffic Manager
Traffic Manager
User avatar
Offline

Joined: Mon Jul 31, 2006 12:40 pm
Posts: 151
Location: Lancs, England
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. :)


Top
 Profile  
 
 Post subject: Re: action colors conversion tool
PostPosted: Sun Dec 16, 2007 6:30 pm 
Transport Coordinator
Transport Coordinator
User avatar
Offline

Joined: Tue Mar 29, 2005 12:44 pm
Posts: 363
Location: Hungary
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
Image


Top
 Profile  
 
 Post subject: Re: action colors conversion tool
PostPosted: Sun Dec 16, 2007 11:27 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Thu Jun 23, 2005 12:09 am
Posts: 3138
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.


Top
 Profile  
 
 Post subject: Re: action colors conversion tool
PostPosted: Mon Dec 17, 2007 10:20 am 
Tycoon
Tycoon
User avatar
Offline

Joined: Tue Mar 30, 2004 12:30 pm
Posts: 14449
Location: Huizen, The Netherlands
For those who don't know; GRFMaker got a similar tool built-in.

_________________
Project Coordinator and Graphics Artist of The 2cc Set and Dutch Trainset.
Image
Download TT | Drawing tutorials | Linkage! The Transport Tycoon Link Collector | Latest Patch | OpenTTDCoop | BaNaNaS: OpenTTD content system
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | Simutrans transport game | NFO Documentation Wiki
Click here to download my 2048x2048 OpenTTD scenario of the Netherlands! Would fit well with the released Dutch Trainset!

As of now, all my graphics are licensed under GPL. For those trying to find me in Azeroth: Bloodhoof EU, Alliance, Purnissa


Top
 Profile E-mail  
 
 Post subject: Re: action colors conversion tool
PostPosted: Mon Dec 17, 2007 10:30 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Fri Mar 26, 2004 1:27 am
Posts: 1552
Location: Netherlands, Enschede
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.

_________________
Abunai!
Creator of the Openttd Challenge Spinoff


Top
 Profile  
 
 Post subject: Re: action colors conversion tool
PostPosted: Tue Dec 18, 2007 6:25 am 
Tycoon
Tycoon
User avatar
Offline

Joined: Thu Jun 23, 2005 12:09 am
Posts: 3138
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.


Top
 Profile  
 
 Post subject: Re: action colors conversion tool
PostPosted: Mon Nov 03, 2008 12:04 pm 
Tycoon
Tycoon
User avatar
Offline

Joined: Fri Mar 26, 2004 1:27 am
Posts: 1552
Location: Netherlands, Enschede
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.

_________________
Abunai!
Creator of the Openttd Challenge Spinoff


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC


Who is online

Users browsing this forum: NekoMaster, silver_777 and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Find services | Cheap Home Insurance | Debt Help | Breast Enlargement | Free Online Greeting Cards : Meme4u
Powered by phpBB © 2000-2009 phpBB Group

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2010.
Hosted by Zernebok.