The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: emirkir on June 04, 2018, 08:29:44 PM

Title: Recolor already existing vehicles?
Post by: emirkir on June 04, 2018, 08:29:44 PM
Is it possible in some way recolor already existing vehicles (downloaded .pak and in-game)?
Unfortunaly I haven't got time for learning how Pixel Art works, so I wonder if there's any faster way to like recolor or start from a template?
Sorry for bad description, hope you understand what I mean...
Title: Re: Recolor already existing vehicles?
Post by: An_dz on June 04, 2018, 09:37:15 PM
The objects in Simutrans (buildings, vehicles, and others) are a bunch of PNG graphics.

There's a special array of colours (RGB values) that have special meanings in Simutrans, some change colour during the night, others never change the colour (don't darken) and some are player colours. Those player colours change according to the company colour, that you can change under Options -> Player Colours. But the graphic has to have those specific colours to change to the player colours, otherwise the graphic is fixed.

If you want to change the colours of a vehicle beyond what the player colours change or completely modify the livery you must download the source, edit the graphics and recompile with makeobj. Simutrans will replace the object because of the same name.
Title: Re: Recolor already existing vehicles?
Post by: emirkir on June 05, 2018, 01:55:21 PM
Is there any tutorial about doing that? (makeobj stuff, edit graphics etc.)
Title: Re: Recolor already existing vehicles?
Post by: prissi on June 05, 2018, 02:25:32 PM
For downlooding the source, look at sourceforge https://sourceforge.net/p/simutrans/code/HEAD/tree/
For actually painting in these PNGsd, you have to do this with your favorite paint program. It must save PNG files. You also need the dat file that mentiones said PNG filename.
For compilation into a pak, you must download makeobj. Then right click on makeobj, drag it with right mousebutton into the fiolder with you PNG asnd DAT file, Choose "add link" (Verküpfung in German) and add after the program name " pak64", for instance "C:\download\makeobj.exe pak64" If you want  to pak for pak128, wite instead pak128.
Title: Re: Recolor already existing vehicles?
Post by: emirkir on June 08, 2018, 02:01:49 PM
Okay! I'll check this out.
Thank you!

I reach out again if I find some other trouble.