The International Simutrans Forum

 

Author Topic: Recolor already existing vehicles?  (Read 303 times)

0 Members and 1 Guest are viewing this topic.

Offline emirkir se

  • *
  • Posts: 117
  • Join Simutrans Discord: https://discord.gg/fpXY772
  • Languages: SV, EN, FI
Recolor already existing vehicles?
« 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...

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2836
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: Recolor already existing vehicles?
« Reply #1 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.

Offline emirkir se

  • *
  • Posts: 117
  • Join Simutrans Discord: https://discord.gg/fpXY772
  • Languages: SV, EN, FI
Re: Recolor already existing vehicles?
« Reply #2 on: June 05, 2018, 01:55:21 PM »
Is there any tutorial about doing that? (makeobj stuff, edit graphics etc.)

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9313
  • Languages: De,EN,JP
Re: Recolor already existing vehicles?
« Reply #3 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.

Offline emirkir se

  • *
  • Posts: 117
  • Join Simutrans Discord: https://discord.gg/fpXY772
  • Languages: SV, EN, FI
Re: Recolor already existing vehicles?
« Reply #4 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.