• 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.

P3D v3 Configuration Files

n4gix

Resource contributor
Messages
11,674
Country
unitedstates
As many (most) of us now know, P3D v3 has set up an system of configuration files where they encourage us to place our add-on products.

Moreover, they have even provided command line parameters we can use to automatically add our new paths to these various configuration files! Sweet!

Unfortunately, the SDK documentation is just as opaque as any such has ever been... :confused:

Since I had to do this anyway, I've put together a simple batch (.bat) file that will do all the work for you. All anyone needs to do is edit this file to update the drive letter, path, title, etc. to suit their own needs.

This batch file will first make backup copies of these config files:
  • simobjects.cfg
  • effects.cfg
  • fonts.cfg
  • gauges.cfg
  • sound.cfg
I suggest that this should probably be removed from the .bat file before using it in your installers. I only used them while I was testing just to verify that I had all of the parameters correct! All new entries are made at the TOP of the existing config files, so whatever is in those new folders will be seen "first" before P3D v3 looks at its default folders.

Here then is my batch file:
Code:
echo
:: Make backup copies of P3Dv3's .cfg files
CD \ProgramData\Lockheed Martin\Prepar3D v3
Copy simobjects.cfg  simobjects_back.cfg
Copy effects.cfg  effects_back.cfg
Copy fonts.cfg fonts_back.cfg
Copy gauges.cfg gauges_back.cfg
Copy sound.cfg sound_back.cfg
 
:: Add new path to simobjects.cfg file
CD \Program Files (x86)\Lockheed Martin\Prepar3D v3
Prepar3D.exe "-Configure: File=SimObjects, Operation=Add, Path=D:\MilvizProducts\SimObjects\Airplanes, Title=Milviz Airplanes, Required=True, Active=True"
 
:: Add new path to effects.cfg file
CD \Program Files (x86)\Lockheed Martin\Prepar3D v3
Prepar3D.exe "-Configure: File=Effects, Operation=Add, Path=D:\MilvizProducts\Effects, Title=Milviz Effects, Required=True, Active=True"
 
:: Add new path to fonts.cfg file
CD \Program Files (x86)\Lockheed Martin\Prepar3D v3
Prepar3D.exe "-Configure: File=Fonts, Operation=Add, Path=D:\MilvizProducts\Fonts, Title=Milviz Fonts, Required=True, Active=True"
 
:: Add new path to gauges.cfg file
CD \Program Files (x86)\Lockheed Martin\Prepar3D v3
Prepar3D.exe "-Configure: File=Gauges, Operation=Add, Path=D:\MilvizProducts\Gauges, Title=Milviz Gauges, Required=True, Active=True"
 
:: Add new path to sound.cfg file
CD \Program Files (x86)\Lockheed Martin\Prepar3D v3
Prepar3D.exe "-Configure: File=Sound, Operation=Add, Path=D:\MilvizProducts\Sound, Title=Milviz Sound, Required=True, Active=True"
 
pause
 
Excellent info... many thanks for sharing your insights and innovations with us, Bill ! :wizard:

GaryGB
 
Bill has posted this information at AVSIM as well, and while Bill's example was initially intended for add-on aircraft developers, Jim Robinson has now posted info to that same thread on how this work-flow might also be used to install scenery into P3Dv3:

http://www.avsim.com/topic/476713-prepar3d-v3-configuration-files-for-add-on-developers/


Many thanks to Bill and Jim for sharing these helpful "worked examples" !
smile.png


GaryGB
 
I wonder if InstallCreator has this capability, to go in and make modifications to configs... :S
 
Back
Top