I'm assuming you're already aware of FlightSim Economy and what it is so I'll skip that.
Basically I wanted to try the An-225 with FSE using their SimConnect client. FSE doesn't have a 225 available to fly and the next biggest thing is a 747. So I did what we do all the time in FSE, I downloaded these liveries for the 225 and edited the "title" field in "aircraft.cfg" to match one of the recognized 747 aliases in FSE's database.
FSE SimConnect recognized the plane normally, it detects the state of the parking brake, wheels, location, etc all normally.
But when I hit "Start Flight" in the client and the client tries to set the fuel and payload to match the job I've taken it throws an IndexOutOfRangeException and all I can do is quit.
Is this because the aircraft.cfg file included with the livery is basically just a skeleton? Hard to know because we can't see the real one since this is a Marketplace addon.
Anyway I would appreciate it if you could look into this and at least help me determine where the problem is. Thanks.
Steps to Reproduce
Assuming you already have an FSE game world account... Otherwise you will need to register for one.
Download these liveries: https://flightsim.to/file/51022/antonov-an-225-cccp-82060-1989-livery
Drop either one of them into your Community Packages folder
Edit the "aircraft.cfg" file for the livery as I have done in the attached image
Set title="Boeing 747 FSE"
Launch MSFS
Launch the FSE SimConnect client
In FSE, find an airport which has a 747-400 and take an "All In Reserved" job that matches the registration number of the 747 at that airport.
Add it to your flight
Start a flight in the An-225 using the edited livery at the starting airport for the job you just took
FSE SimConnect should show that you are in a 747-400 and at the right location.
Click Action -> Start Flight
Result: It throws this error.
Anyway, thanks for taking a look.
Full error text:
************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at FSEconomy.Flight.ReceiveData(SimConnect sender, SIMCONNECT_RECV_SIMOBJECT_DATA data)
at FSEconomy.StateManager.onRecvSimobjectData(SimConnect sender, SIMCONNECT_RECV_SIMOBJECT_DATA data)
at Microsoft.FlightSimulator.SimConnect.SimConnect.raise_OnRecvSimobjectData(SimConnect value0, SIMCONNECT_RECV_SIMOBJECT_DATA value1)
at Microsoft.FlightSimulator.SimConnect.SimConnect.OnReceiveMessage(SIMCONNECT_RECV pData, UInt32 cbData)
at Microsoft.FlightSimulator.SimConnect.CSignalProcDelegateMarshaler.CallSignalProc(SIMCONNECT_RECV* pData, UInt32 cbData, Void* pContext)
at SimConnect_CallDispatch(Void* , IntPtr , Void* )
at Microsoft.FlightSimulator.SimConnect.SimConnect.ReceiveDispatch(SignalProcDelegate pfcnSignal)
at Microsoft.FlightSimulator.SimConnect.SimConnect.ReceiveMessage()
at FSEconomy.Main.DefWndProc(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4515.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4536.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
FSEconomy
Assembly Version: 1.3.0.15
Win32 Version: 1.3.0.15
CodeBase: file:///C:/Users/Username/AppData/Local/Apps/2.0/WEVQJBM4.9HZ/R8R8R4NM.ZYG/fsec..tion_219be5b309124a3f_0001.0003_f920816d268db011/FSEconomy.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4550.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.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
----------------------------------------
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
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4590.0 built by: NET48REL1LAST_B
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
----------------------------------------
System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4494.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.FlightSimulator.SimConnect
Assembly Version: 10.0.61242.0
Win32 Version: 10.0.61355.0 (fsx-sp1.20070510-2038)
CodeBase: file:///C:/Windows/assembly/GAC_32/Microsoft.FlightSimulator.SimConnect/10.0.61242.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
----------------------------------------