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.

Help with Custom Rule for VPilot


Roy Higgins
 Share

Recommended Posts

Roy Higgins
Posted
Posted

I have FLAi model set installed and use on Vpilot. All works well but I wanted to get British Airways Shuttle flights to display in BA Livery. Have read the documentation and tried to set up Custom Rule in VPilot.

Prepare 3d is installed in C:\Prepar3D

Created a file in C:\Users\Roy\Documents\Prepar3D v5 Add-ons     ..   (where other add-ons are located)

<?xml version-"1.0" encoding="utf-8"?>
<ModelMatchRuleSet>

<ModelMatchRule CallsignPrefix="SHT" TypeCode="A319" ModelName="FLAi_FAIB_A319IAE_BAW-British Airways"/>
<ModelMatchRule CallsignPrefix="SHT" TypeCode="A320" ModelName="FLAI_FAIB_A319AE_BAW-British Airways STD//FLAi_FAIB_A320IAE_BAW-British Airways SL"/>
<ModelMatchRule CallsignPrefix="SHT" TypeCode="A321" ModelName="FLAi_FAIB_A321IAE_BAW-British Airways"/>

</ModelMatchRuleSet>

Originally this was an XML file but VPilot was only looking for vmr files so could not add it.

Changed file name to custom.vmr but then had error message in XML file  (1, 7)

I am very new to amending software. Any ideas why this will not work please ?

Roy Higgins

Error1.thumb.jpg.3a4dd22d99ce993d4d2a7771e3212f72.jpgError2.thumb.jpg.b8264fae721b4fdd1f80f5e536173f26.jpgErrorr3.thumb.jpg.cc84f5d8c345bd3b790de56a3d1f1532.jpg 

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

The clue is in the error message. Line 1, character 7. It does not know what "version-" means. Compare your file against the example in the docs:

https://vpilot.rosscarlson.dev/Documentation#creating-rulesets

And you'll see the error.

Also, custom model matching rules are not P3D add-ons, so you don't need to put the file in your P3D add-ons folder.

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Roy Higgins
Posted
Posted

Hi Ross

Thanks for your help but this is still not clear to me. Should I replace "utf-8" with "FLAI"

 

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

Look at the docs, compare the first line of your file with the first line of the example file in the docs.

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Roy Higgins
Posted
Posted

Ross 

Thank you so much for your help. All good now. Spotted the error.

 

Link to comment
Share on other sites

 Share