Page 1 of 1

Help with Vehicle coding, Liverys.

Posted: 02 Oct 2020 14:49
by temporal8
Hello, I am learning a bit of nfo coding and I started to make a set of vehicles in 32bpp, I already understood how to put vehicles into the game and I have 3 of them working.

My question is the following: I want each vehicle to have several color options, for example: if I buy a car, I want it to be able to choose in white, black or red, that is liverys as I understand it.

Predefined colors not company colors, I have the graphics of each color ready but I need to understand how to make it work in the code.

I am going through the wiki but I did not find the part referring to Liverys or it is incomplete.

https://www.tt-wiki.net/wiki/NFOTutorial

Thanks in advance.

Re: Help with Vehicle coding, Liverys.

Posted: 02 Oct 2020 19:00
by Erato
In NML you would use two switches based on cargo subtype.
https://newgrf-specs.tt-wiki.net/wiki/C ... y_.2819.29
This might have the info you need.