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.

Need help with custom model matching xml file


Paul Young
 Share

Recommended Posts

Paul Young
Posted
Posted

Hello all,

I need some help troubleshooting an xml file I created for model matching in vPilot.

<?xml version="1.0" encoding="utf-8"?>
<ModelMatchRuleSet>
    <ModelMatchRule CallsignPrefix="TGG" Typecode="A320" Modelname="Airbus A320-232 TigerAir Australia" />
    <ModelMatchRule CallsignPrefix="JST" Typecode="A320" Modelname="Airbus A320-232 Jetstar Airways" />
    <ModelMatchRule CallsignPrefix="JST" Typecode="A321" Modelname="Airbus A321-232 Jetstar Airways - Silver" />
    <ModelMatchRule CallsignPrefix="JST" Typecode="A332" Modelname="Airbus A330-200 Jetstar Airways" />
    <ModelMatchRule CallsignPrefix="QFA" Typecode="A332" Modelname="Airbus A330-200 Qantas" />
    <ModelMatchRule CallsignPrefix="VOZ" Typecode="A332" Modelname="Airbus A330-200 Virgin Australia" />
    <ModelMatchRule CallsignPrefix="QFA" Typecode="A333" ModelName="Airbus A330-300 Qantas" />
    <ModelMatchRule CallsignPrefix="QFA" Typecode="A35K" ModelName="Airbus A350-1000 Qantas" />
    <ModelMatchRule CallsignPrefix="QFA" Typecode="A388" ModelName="Airbus A380-800 Qantas" />
    <ModelMatchRule CallsignPrefix="QFA" Typecode="B738" ModelName="Boeing 737-800 Qantas FREEWARE_(C)_TDS_16AUG2013_738_CFM56-7B--W2_+A0000_+D00_+B0" />
    <ModelMatchRule CallsignPrefix="JST" Typecode="B788" ModelName="Boeing 787-8 Jetstar Airways Plane0 FREEWARE_COPYRIGHT_TenkuuDevelopersStudio_01JUN2013 OPTANT1110000000_OPTDEC11110" />
    <ModelMatchRule CallsignPrefix="QFA" Typecode="B789" ModelName="Boeing 787-9 Qantas Plane0  FREEWARE_COPYRIGHT_TenkuuDevelopersStudio_01JUN2013 OPTANT1110000000_OPTDEC11110" />
    <ModelMatchRule CallsignPrefix="VOZ" Typecode="B3XM" ModelName="Boeing 737-MAX10 Virgin Australia FREEWARE_(C)_TDS_16AUG2013_739MAX_LEAPX1B--P2WM_+A3200_+D00_+B0" />
</ModelMatchRuleSet>
 
I've done similar files for other airlines and vPilot accepts them just fine. However, everytime I try to add these to the list of custom model matching rules, the client gives me this error:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at ea.a(String A_0, String A_1, String A_2)
   at go.c(gu A_0)
   at go.b()
   at go.a(gu A_0, gw A_1, Double A_2)
   at go.b(String A_0, gw A_1, Double A_2)
   at go.a(Object A_0, ep A_1)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4420.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
vPilot
    Assembly Version: 2.8.1.0
    Win32 Version: 2.8.1.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/vPilot.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4400.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4360.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Ninject
    Assembly Version: 3.2.0.0
    Win32 Version: 3.2.2.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/Ninject.DLL
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Ninject.Extensions.Factory
    Assembly Version: 3.2.0.0
    Win32 Version: 3.2.1.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/Ninject.Extensions.Factory.DLL
----------------------------------------
Castle.Core
    Assembly Version: 3.2.0.0
    Win32 Version: 3.2.0.2259
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/Castle.Core.DLL
----------------------------------------
bbv.Common.EventBroker
    Assembly Version: 0.0.0.0
    Win32 Version: 0.0.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/bbv.Common.EventBroker.DLL
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
DynamicProxyGenAssembly2
    Assembly Version: 0.0.0.0
    Win32 Version: 3.2.0.2259
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/Castle.Core.dll
----------------------------------------
DynamicProxyGenAssembly2
    Assembly Version: 0.0.0.0
    Win32 Version: 3.2.0.2259
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/Castle.Core.dll
----------------------------------------
RossCarlson.Vatsim.Vpilot.Plugins
    Assembly Version: 2.8.1.0
    Win32 Version: 2.8.1.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/RossCarlson.Vatsim.Vpilot.Plugins.DLL
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
    Assembly Version: 0.0.0.0
    Win32 Version: 4.8.4420.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
protobuf-net
    Assembly Version: 2.0.0.668
    Win32 Version: 2.0.0.668
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/protobuf-net.DLL
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
log4net
    Assembly Version: 1.2.10.0
    Win32 Version: 1.2.10.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/log4net.DLL
----------------------------------------
System.Management
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
SharpDX.DirectInput
    Assembly Version: 2.6.3.0
    Win32 Version: 2.6.3
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/SharpDX.DirectInput.DLL
----------------------------------------
SharpDX
    Assembly Version: 2.6.3.0
    Win32 Version: 2.6.3
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/SharpDX.DLL
----------------------------------------
GeoVR.Shared
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Shared.DLL
----------------------------------------
netstandard
    Assembly Version: 2.0.0.0
    Win32 Version: 4.8.4084.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/netstandard/v4.0_2.0.0.0__cc7b13ffcd2ddd51/netstandard.dll
----------------------------------------
GeoVR.Client
    Assembly Version: 1.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.DLL
----------------------------------------
GeoVR.Connection
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Connection.DLL
----------------------------------------
NLog
    Assembly Version: 4.0.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
Concentus
    Assembly Version: 1.1.6.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
System.Runtime
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.dll
----------------------------------------
System.Runtime.Extensions
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Extensions/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.Extensions.dll
----------------------------------------
System.Net.Http
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
----------------------------------------
Newtonsoft.Json
    Assembly Version: 12.0.0.0
    Win32 Version: 12.0.1.22727
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/Newtonsoft.Json.DLL
----------------------------------------
Microsoft.CSharp
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll
----------------------------------------
System.Net.Http.Formatting
    Assembly Version: 5.2.7.0
    Win32 Version: 5.2.61128.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/System.Net.Http.Formatting.DLL
----------------------------------------
System.Runtime.Serialization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4250.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
SMDiagnostics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4250.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll
----------------------------------------
System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
NAudio
    Assembly Version: 1.9.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4270.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Dynamic
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
INIFileParser
    Assembly Version: 2.2.2.0
    Win32 Version: 2.2.2
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/INIFileParser.DLL
----------------------------------------
Microsoft.FlightSimulator.SimConnect
    Assembly Version: 10.0.61259.0
    Win32 Version: 10.0.61637.0 (FSX-Xpack.20070926-1421)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/Microsoft.FlightSimulator.SimConnect/10.0.61259.0__31bf3856ad364e35/Microsoft.FlightSimulator.SimConnect.dll
----------------------------------------
msvcm80
    Assembly Version: 8.0.50727.9672
    Win32 Version: 8.00.50727.9672
    CodeBase: file:///C:/WINDOWS/WinSxS/x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.9672_none_d08f9da24428a513/msvcm80.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
RestSharp
    Assembly Version: 106.6.10.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
System.IdentityModel.Tokens.Jwt
    Assembly Version: 5.6.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
Microsoft.IdentityModel.Tokens
    Assembly Version: 5.6.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
System.Web
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4330.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
Microsoft.IdentityModel.Logging
    Assembly Version: 5.6.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
Microsoft.IdentityModel.JsonWebTokens
    Assembly Version: 5.6.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
MessagePack.CryptoDto
    Assembly Version: 1.0.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
MessagePack.Annotations
    Assembly Version: 2.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
System.Runtime.InteropServices.RuntimeInformation
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.InteropServices.RuntimeInformation/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.InteropServices.RuntimeInformation.dll
----------------------------------------
System.Memory
    Assembly Version: 4.0.1.1
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
System.Memory
    Assembly Version: 4.0.1.1
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
System.Runtime.CompilerServices.Unsafe
    Assembly Version: 4.0.6.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
MessagePack
    Assembly Version: 2.1.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
System.Reflection.Emit
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Reflection.Emit/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Reflection.Emit.dll
----------------------------------------
MessagePack.Resolvers.DynamicEnumResolver
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
MessagePack.Resolvers.DynamicUnionResolver
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
MessagePack.Resolvers.DynamicObjectResolver
    Assembly Version: 0.0.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
System.Buffers
    Assembly Version: 4.0.2.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------
System.ValueTuple
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ValueTuple/v4.0_4.0.0.0__cc7b13ffcd2ddd51/System.ValueTuple.dll
----------------------------------------
System.Reflection.Emit.ILGeneration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Reflection.Emit.ILGeneration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Reflection.Emit.ILGeneration.dll
----------------------------------------
NaCl.Core
    Assembly Version: 1.2.0.0
    Win32 Version: 1.1.0.0
    CodeBase: file:///C:/Users/Paul/AppData/Local/vPilot/GeoVR.Client.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Any ideas?

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

It's because you have the wrong letter casing in some of the XML. XML is case-sensitive.

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

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Paul Young
Posted
Posted
8 hours ago, Ross Carlson said:

It's because you have the wrong letter casing in some of the XML. XML is case-sensitive.

Hi Ross,

Thanks for replying. So words like 'Typecode' and 'Modelname' have to be typed as 'TypeCode' and 'ModelName', is that correct?

Cheers,

Paul

Link to comment
Share on other sites

Ross Carlson
Posted
Posted

That's right.

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

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Paul Young
Posted
Posted
5 hours ago, Ross Carlson said:

That's right.

It worked! Thank you so much, Ross!

Happy flying,

Paul

Link to comment
Share on other sites

 Share