Most of the commonly reported issues and questions are answered in the Frequently Asked Questions (FAQ) option under the Support menu of this website.
*** PLEASE NOTE ***
Your forum account is not the same as the account used in the shop. They are completely separate accounts.
1st December: A new version of the GoFlight Interface Tool for MSFS is now available.
12th November: A new version of the GoFlight Interface Tool for X-Plane is now available.
6th June: A new version of Virtual Flight Sim Hardware is now available (huge update)
21st November: A new version of the GoFlight Interface Tool for FSX/FSXSE/P3D is now available.

GFConfig - how to load different configurations automatically?

I use SimStarterNG to launch different scenarios in P3D v4. One would be for a PC-12, another for a Learjet and a third for the PMDG737. I have different settings for my GoFlight buttons and switches for the PMDG737 than I have for the other two. I asked on the SimStarter forum if it was possible for a GoFlight config file to be loaded as part of a SimStarter scenario. The answer was to test if GFConfig.exe could be launched with a parameter naming the file to be loaded. So I tried running this in a Run command with Admin rights:-

"C:\Program Files (x86)\GoFlight\GFConfig.exe" C:\Users\Ray\Documents\GoFlight\FSDefault.gfc

Sadly it didn't work. The GFConfig interface opened but the current configuration was still loaded. I appreciate this is not the GoFlight support forum but does anyone know if it's possible to load a config but any other means than manually?
Cheers,
Ray (Cheshire, England)

Comments

  • A workaround could be to write a little script to copy the desired goflight config file to the default one that gets loaded and have SimStarterNG run the script - that might work?
  • By script do you mean a batch file? The only way I can see of loading a different configuration file is to open GFConfig and load it there.
    Cheers,
    Ray (Cheshire, England)
  • yes, batch file, windows script file or similar.

    So my theory (and it is only a theory) is this:

    I'm assuming GoFlight config program loads a configuration when it starts - either a default one or the last used config profile?

    Let's say this profile is called "FSDefault.gfc" and that you also have 2 other config profiles: PMDG737.gfc and Learjet.gfc. Also make a copy of the default to restore it when needed as it we get overwritten, so copy to "defaultBackup.gfc"

    So the batch script content - let's call it "setConfig.bat" would be something like:

    copy %1 FSDefault.gfc

    Then, if you want to load the PMDG737 config, have SimStarterNG run the batch script before GFConfig.exe like so:

    setConfig.bat PMDG737.gfc

    I haven't tried this (I don't have SimStarterNG) but in theory it should work?


  • Hi Curbz, thanks for that advice. What was intriguing me was the fact that if you opened GFConfig and loaded a new profile then closed it without saving it was the current profile the next time you opened GFConfig.

    This made me think that the profile name must be stored somewhere. Registry was the first place I looked but nothing. Then I looked in User\[Name]\AppData but nothing there either. Finally I looked in C:\ProgramData and bingo!

    In there there is this file - GFDevP3D.ini. The configuration file for P3D. Open it and you see this:-

    [Main]
    Config=C:\Users\Ray\Documents\GoFlight\FSDefault.gfc
    3piWrapper1=C:\Program Files (x86)\GoFlight\GF3pLvlD.dll
    3piWrapper2=C:\Program Files (x86)\GoFlight\GF3pPM.dll
    3piWrapper3=C:\Program Files (x86)\GoFlight\GF3pIFLY.dll
    3piWrapper4=C:\Program Files (x86)\GoFlight\GF3pIFLY747.dll

    The top line is the currently loaded configuration. What I now need is a way of renaming the gfc file dependent on my choice of scenario in SimStarterNG. Perhaps just a simple system of copies of that file and a batch file to rename which ever I need as GFDevP3D.ini.

    Sounds feasible?
    Cheers,
    Ray (Cheshire, England)
  • yes that does sound feasible Ray

    regards
    Darren (curbz)
  • Hi Darren,

    Right concept, wrong file. It's not the GFDevP3D.ini file that needs editing. That is updated from the data in the master file - GFConfig.ini.
    That contains a section for each Flight Sim Product including the name of the relevant gfc file. Once I created a set of batch files to copy a customised GFConfig.ini into that file the correct gfc profile is loaded. Got there in the end. Thanks for your help.
    Cheers,
    Ray (Cheshire, England)
  • good to hear Ray - thanks for sharing the solution
Sign In or Register to comment.