McZapkie wrote: 21 Dec 2020 18:30
I would like to update my vehicles newgrf to be compliant with NRT.
For example, I want to disable slow vehicles (horse carriages, farm feeders etc) from entering into HWAY.
How to achieve this? I can't find any source examples
The horse carriages should not have support for HWAY, so you exclude that from the compatible road type list.
Example code is:
Code: Select all
item(FEAT_ROADTYPES, off_road, 1) {
property {
label: "OFRD";
roadtype_flags: bitmask(ROADTYPE_FLAG_HIDDEN);
powered_roadtype_list: ["ROAD", "HAUL", "OFFR", "SAND", "DIRT", "GRAV", "ASPT", "FORD", "FRZN", "IWAY", "SETT", "ASP1", "AUZB", "AUZC", "AUZD", "AUZE", "AUZ5", "AUZF", "AUZ1", "ORD0", "ORD1", "ORD2", "ORD3", "ORD4", "IRD0", "IRD1", "SRD0", "SRD1", "SRD2", "ARD0", "ARD1", "ARD2", "ARD3", "ARD4", "ARD5", "URD0", "URD1"];
}
}
So, basically, you take a unused label, mark it as hidden, and define your supported road types, i.e. the above lacks support for high speed asphalt roads or highways. (The above labels are mainly from my own sets, supermop's or Garry's road type sets, U&RaTT and this set.)