Vehicle change colors

Discuss, get help with, or post new modifications, graphics or related tools for Locomotion in this forum.

Moderator: Locomotion Moderators

Post Reply
roda2324
Engineer
Engineer
Posts: 4
Joined: 04 Mar 2014 14:38

Vehicle change colors

Post by roda2324 »

Hi everyone, I'd like to repaint vehicles to change colors to company colors, but I don't know how to do that.

My idea is:

I have Locotool.exe, and when I use it, I get folder with .PNG pictures of all sequences of vehicle move. I tried to repaint all sequences from original red (Deutsche Bahn) to purple, which is used by original Locomotion vehicles...

... but when I create the .DAT file and use it in game..., all vehicles are still red. When I tried to "unpack" .DAT file, the vehicle was still red. I don't know why...

I send you an example:

Image
This is original PNG file

Image
This is new PNG file modified by Photoshop


Image
... and this is PNG from "unpacked .DAT folder...

I tried just everything, I deleted original .DAT file and cleared whole Locotool from any other files, but I still get red train...

Can someone help me? I allso don't know, if I'd really repaint it to purple I'd get magic-coloured train with custom company color...

Thanks for help.
User avatar
Zakos
Tycoon
Tycoon
Posts: 3977
Joined: 15 Mar 2012 02:48
Location: in my mum's car
Contact:

Re: Vehicle change colors

Post by Zakos »

Make sure you re-compile the .dat file after the changes have been made, as they don't save automatically. I've made that mistake a at least once.
roda2324
Engineer
Engineer
Posts: 4
Joined: 04 Mar 2014 14:38

Re: Vehicle change colors

Post by roda2324 »

Hi, thanks,

but i don't know how to do that... Maybe it's caused by my bad English.

I'm sorry That's allso my first modification for Locomotion. Can you explain it to me in more detail?

Big thanks.
User avatar
Zakos
Tycoon
Tycoon
Posts: 3977
Joined: 15 Mar 2012 02:48
Location: in my mum's car
Contact:

Re: Vehicle change colors

Post by Zakos »

You drag the file over Locotool to get the folder of images, right? So when you're done with the images, drag the whole folder over Locotool to save your changes.
roda2324
Engineer
Engineer
Posts: 4
Joined: 04 Mar 2014 14:38

Re: Vehicle change colors

Post by roda2324 »

Yes, I understand..., I tried to drag the folder of images over Locotool, but it doesen't work, but when I drag the .XML file over Locotool, the train is stil red.


..... BUT:

I tried to do an experiment:

Image
1/ I changed the color of my train to purple.

Image
2/ I overpainted new-colored train with purple-colored brush.

Image
3/ I drag .XML file over Locotool and then I drag the .DAT file over Locotool again to get the image, which I'll see in the game and I got red train with red streak.

I think the .XML must contain the deffinition of color palette for the final .DAT file. When I'll change the code, I think I'll get the purple-coloured train... But how to do that? I'm not a programmer...

If someone can help me I'd be greatful!
lsbc
Engineer
Engineer
Posts: 92
Joined: 06 May 2012 03:21

Re: Vehicle change colors

Post by lsbc »

The palette for loco has to be exact and doing so many sprites for a 1st mod is a challenge. I don't use Photoshop as it costs a bit to much but if it does batch file work it may make things easier.
User avatar
Zakos
Tycoon
Tycoon
Posts: 3977
Joined: 15 Mar 2012 02:48
Location: in my mum's car
Contact:

Re: Vehicle change colors

Post by Zakos »

roda2324 wrote:I think the .XML must contain the deffinition of color palette for the final .DAT file. When I'll change the code, I think I'll get the purple-coloured train... But how to do that? I'm not a programmer...
You won't actually have to change any of the code, just the sprites.
roda2324
Engineer
Engineer
Posts: 4
Joined: 04 Mar 2014 14:38

Re: Vehicle change colors

Post by roda2324 »

Ok, thanks, but does anyone know, where can I get the exact Locomotion color palette?
User avatar
Nathanxbox20
Traffic Manager
Traffic Manager
Posts: 183
Joined: 17 Oct 2012 05:15
Location: At a computer

Re: Vehicle change colors

Post by Nathanxbox20 »

You can find the palette here.
I'm not normal. Because normal is stupid. And stupid is normal.
Life has no respawns.
A Locomotion, BeamNG.drive, and OpenTTD enthusiast and amateur photographer. Also getting into model railroading.
Post Reply

Return to “Locomotion Graphics, Modifications & Tools”

Who is online

Users browsing this forum: No registered users and 23 guests