Vehicle settings file setup

There is a pinned message on telegram:

Brian Tee, [28-01-2023 14:41]
Appdata has the “working” copy of the exact same settings file used and sourced in 3 different places.

  1. The default XML file. This is stored in the program folder called AgOpenGPS.exe.config. This has every setting ever used in AOG. AgIO has one also. When you first start AOG, it uses this file and creates a skeleton copy of it in AppData to be the working copy of any changes in settings you make.

  2. C:\Users\Grizs\AppData\Local\AgOpenGPS\AgOpenGPS.exe_Url_djk0qumzckoxguu0ndtkmwiiikypywwm\5.7.0.0\user.config This is the working copy of that same XML. When you move a window, set your sections from 3 to 5, set a color, change your wheelbase - every last change is set there. But only the changes. AOG looks there first for the setting and if it finds it, it uses that value. If there is no entry for that setting in Appdat, it goes back to the default config in the program directory and uses that. As you set more settings the file user.config gets longer. You can see the folder thagt is generated is unique to where the program folder is and the version running. Move the program folder and you have a new config folder. Delete the folders - you use once again the default settings from AOG.config and start all over.

  3. The Saved Vehicle.xml fies folder in Documents. This is just a copy of whatever was in Appdata. When you Save a vehicle all you are doing is copying the config file (which is type XML) to a vehicle XML file you have named and want to keep those settings no matter what happens. Every time you change something or leave Config Form and hit ok, the Appdata XML overwrites the Vehicle Name .xml file in Documents so there is always a copy of it. In the settings config file a setting keeps track of which setting file you have (YourVehicle.xml) so it knows where to keep a copy of it saving it.

When you start AOG - it goes to AppData and looks for the latest settings and if it doesn’t see one, goes back to the porgram folder settings and uses that setting.

When you “Load” a vehicle - you are taking your vehicle.xml file and overwriting the config.user file in Appdata so AOG can now use those settings you want.

Brian Tee, [28-01-2023 14:42]
So go ahead delete Appdata folders. Start AOG fresh using the default from program folder. Load a Vehicle file from Documents and you are good to go.

Brian Tee, [28-01-2023 14:44]
Now for the problem of older versions. There uses to be 2 groups in the settings file - settings.settings and vehicle.settings. The vehicle group was added to the settings group as it was getting too hard to figure out what was stored where. So older files with both are rewritten and saved as a single settings.settings group and can’t be used in older versions again.

Brian Tee, [28-01-2023 14:45]
Save a copy of AgOpenGPS/Vehicles files if you want to save all the settings.

Brian Tee, [28-01-2023 14:46]
The only odd duck is the language setting - it is stored in the registry. So it doesn’t matter where you store or which version you use, your language is always your language and needs to be actually changed from the menu before it will change

Brian Tee, [28-01-2023 14:47]
Hope this helps.

1 Like