• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSXA Directly loading Aircraft (without UI)

Messages
1,057
Country
ca-ontario
Hello all,

Is there a way to directly load a user aircraft, without going through "Aircraft->SelectAircraft..." menu? I'd like to be able to supply an "<aircraft>.air" file and have SimConnect load the requested AC... Any idea?
 
This should work. You would modify the flight and then do this. If I undestand your question right.

"-flt:path_to_mission.flt" Loads the named flight file. The path can be relative to the root folder containing ESP.exe, or an absolute path. This is the recommended method of loading single-player missions. The -flt switch is optional if the path to the flight file is the last entry on the command line. ESP "-flt:Missions\Airline Pilot\Monsoon\Monsoon.flt"

You can also load a save via SimConnect_FlightLoad

If you want to force load a different aircraft inflight, I don't think that's possible. Besides, you'd have to go by aircraft.cfg title, not .air file.
 
You can save the flight using Simconnect, modify the [Sim.0] Sim= entry in the .FLT file, then reload the FLT file using Simconnect.
You may also have to patch some other entries in the FLT file, e.g. Saving with a fixed undercarriage aircraft will probably result in the gear being down when re-loading a retractable undercarriage aircraft etc.
The basic principle of this works, but I don't know of all the side effects of applying the FLT entries of one aircraft to a different aircraft.
 
This should work. You would modify the flight and then do this. If I undestand your question right.

"-flt:path_to_mission.flt" Loads the named flight file. The path can be relative to the root folder containing ESP.exe, or an absolute path. This is the recommended method of loading single-player missions. The -flt switch is optional if the path to the flight file is the last entry on the command line. ESP "-flt:Missions\Airline Pilot\Monsoon\Monsoon.flt"

You can also load a save via SimConnect_FlightLoad

If you want to force load a different aircraft inflight, I don't think that's possible. Besides, you'd have to go by aircraft.cfg title, not .air file.

Right - I think you misunderstood my Question - I wanted to load a different AC while in flight, not from the command line (which I think that is what you're suggesting).

So, in SimConnect, there is an API call SimConnect_FlightLoad(hSimConnect, "myFlight.FLT") (FLT extension is omitted)

I'd like to have a similar method that would load an aircraft, as in SimConnect_FlightLoad(hSimConnect, "myAircraft.cfg.")

However, since I posted this question, I was thinking about loading a different aircraft through a FLT file, and upon loading, change the position and attitude in the FLT file to the current values...

 
You can save the flight using Simconnect, modify the [Sim.0] Sim= entry in the .FLT file, then reload the FLT file using Simconnect.
You may also have to patch some other entries in the FLT file, e.g. Saving with a fixed undercarriage aircraft will probably result in the gear being down when re-loading a retractable undercarriage aircraft etc.
The basic principle of this works, but I don't know of all the side effects of applying the FLT entries of one aircraft to a different aircraft.

Yes - as I mentioned in my above post, I was thinking the same thing after I posted my q - save a current FLT file, overwrite with desired AC, and re-load the FLT file. Time for some experimentation, thanks!
 
Back
Top