Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.

ModelMatching improvement (TypeCode)


Thomas Czarnetzki
 Share

Recommended Posts

Thomas Czarnetzki
Posted
Posted

Hi,

i have seen a lot of vmr-files, how containts a lot or rows and are very confusing.
One of the reason is, that are multiple lines exists, for the same Airline/Livery and only the TypeCode change.

So it will be helpful, if the TypeCode can include multiple Types, e.g.

Quote

    <ModelMatchRule CallsignPrefix="ACI" TypeCode="A321" ModelName="AIGAIM_Aircalin Airbus A320-200//AIGAIM_Aircalin Airbus A320-200" />
    <ModelMatchRule CallsignPrefix="ACI" TypeCode="A319" ModelName="AIGAIM_Aircalin Airbus A320-200//AIGAIM_Aircalin Airbus A320-200" />
    <ModelMatchRule CallsignPrefix="ACI" TypeCode="A318" ModelName="AIGAIM_Aircalin Airbus A320-200//AIGAIM_Aircalin Airbus A320-200" />
    <ModelMatchRule CallsignPrefix="ACI" TypeCode="A20N" ModelName="AIGAIM_Aircalin Airbus A320-200//AIGAIM_Aircalin Airbus A320-200" />
    <ModelMatchRule CallsignPrefix="ACI" TypeCode="A21N" ModelName="AIGAIM_Aircalin Airbus A320-200//AIGAIM_Aircalin Airbus A320-200" />
    <ModelMatchRule CallsignPrefix="ACI" TypeCode="A19N" ModelName="AIGAIM_Aircalin Airbus A320-200//AIGAIM_Aircalin Airbus A320-200" />

can by summarized to:

Quote

    <ModelMatchRule CallsignPrefix="ACI" TypeCode="A321|A319|A318|A20N|A21N|A19N" ModelName="AIGAIM_Aircalin Airbus A320-200//AIGAIM_Aircalin Airbus A320-200" />

Or even better, by use RegEx ... i think this will also reduce the filesize considerably.

Kind regards,
Tommes

Link to comment
Share on other sites

 Share