Author Topic: GSX ini file locations  (Read 12158 times)

cmpbllsjc

  • Beta tester
  • Hero Member
  • *****
  • Posts: 948
GSX ini file locations
« on: May 03, 2016, 06:44:33 am »
Umberto,

Lately devs have been including GSX ini files with their airports,  and often times, like in the case of UK2000, say to put them in the corresponding scenery folder of the airport in use.

My understanding is that the ini files must go into the AppData/Roaming/Virtuali/GSX folder for them to be read from GSX. Is that correct or will GSX read those ini files from actual scenery folders?

I've been putting them in the GSX folder but also leaving them in the scenery folder of the addon airport. Is there any harmful consequence having them in both folders?

Thanks


virtuali

  • Administrator
  • Hero Member
  • *****
  • Posts: 50700
    • VIRTUALI Sagl
Re: GSX ini file locations
« Reply #1 on: May 03, 2016, 08:58:50 am »
the airport customization .INI files are read from BOTH folders, using this order of priority:

- First in the local \scenery folder, together with the scenery .BGL files

- Then, if an .INI file for the same ICAO+AFCAD combination is found in the %APPDATA%\Virtuali\GSX folder, this one will take precedence over the one in the scenery folder

The reason for this priority system, is twofolds:

1) If your scenery is installed under the main sim folder, which is installed in the default location under C:\Program Files, there will be permission issues if we tried to store an .INI file there. And it would be against UAC rules that no application should try to write into its own folder, but use the %APPDATA% folder instead.

AND

2) Scenery developers might want to include a GSX .INI file together with their scenery, and the \scenery folder is the most logical option. This file should be considered to be "read-only" but, this doesn't mean you cannot further customize it.  In fact, you can and, as soon as you start customizing an airport which was provided with a GSX .INI file in the \scenery folder, a NEW .INI file BASED on it will be created under the %APPDATA%\Virtuali\GSX folder, so GSX will start reading from that file from now on.

This means, if you choose to Undo all your changes, the original .INI file in the \scenery folder will still be there, so you will not start from scratch, but from at least a good base made by the original scenery developer.

This way, we can respect all Microsoft recommendations about UAC, allow 3rd party developers to customize their scenery for GSX, and allow users to further customize it, but keeping a "backup" they can go back to, in case something goes wrong.

cmpbllsjc

  • Beta tester
  • Hero Member
  • *****
  • Posts: 948
Re: GSX ini file locations
« Reply #2 on: May 04, 2016, 11:23:35 pm »
Thanks for the clarification Umberto, I didn't know that.