Author Topic: Add-ons - Fire an add-on from Other than default Add-ons folder (Prepar3Dv4v5)  (Read 118 times)

nbrich1

  • Misty Moorings Team
  • Hero Member
  • *
  • Posts: 1,920
  • Misty Flying Club VA, Sim Troubleshooting & Help
    • View Profile
    • Misty Flying Club (MFC)
To fire an add-on contents in P3Dv4 or v5 from other than the default  xx:\Documents\Prepar3D xx Add-ons
folder add a Discovery Path entry in the add-ons.cfg file (C:\ProgramData\Lockheed Martin\Prepar3D vx):

IE:To fire up the new RTMM add-on (or any add-on for that matter) from any alternate location on your PC:

1. Move the contents of the add-on (as is) to your desired location.
2. Open the add-on.cfg file (notepad) (in  hidden folder C:\ProgramData\Lockheed Martin\Prepar3D v4 or 5
3. Add a "Discovery Path" Entry in the add-ons.cfg file (number accordingly), ensure the path is correct. Save.

IE: For P3Dv5 - Edit the add-ons.cfg file located in folder: C:\ProgramData\Lockheed Martin\Prepar3D v5 (add-on.cfg edit with notepad).:

[DiscoveryPath.0]
PATH=F:\Add-ons\Orbx Library\p3dv5
TITLE=Orbx Main Library
ACTIVE=true
REQUIRED=false

(Add a new discovery path:) 
[DiscoveryPath.1]
PATH=F:\Add-ons\RTMM Add-on (P3Dv5)
TITLE=RTMM Add-on Scenery Package
ACTIVE=true
REQUIRED=false



When Prepar3D v5 is started it will read the add-on.cfg file and see that the RTMM Add-on (P3Dv5) is located at F:\Add-ons\RTMM Add-on (P3Dv5) and it will fire the add-on.xml file that is in the folder
"RTMM Add-on (P3Dv5)"

So by using a discovery path entry, you can place any add-on anywhere and as long as the add-on.cfg entry matches the path - then the add-on will be seen by the sim- and an enable window to load that add-on will appear during the sim load.

RTMM Add-on was released here on the site today. (One for P3Dv4 and the other for P3Dv5. They are different! so if you're going to use them, ensure that you download the correct version for you sim). 

This add-on will be recognized on startup of the sim if the RTMM Add-on folder is simply placed is in the default x:\documents\Prepar3D Add-ons vx folder, or be found at an alternate location if a discovery path entry is used so that the sim is directed to find and load it, as is shown above. So the add-on (and all of it contents inside the add-on), can be configured/directed to run from the default add-on location or from any other location as specified by the user. 

Norm
« Last Edit: July 29, 2020, 07:48:47 PM by nbrich1 »
Regards from Toronto, Canada. Home Airport CYYZ.
^----------------- Misty Flying Club -----------------^

Penzoil3

  • Sr. Member
  • ****
  • Posts: 519
    • View Profile
 8) Thanks, this got it working. I'd been beating my head on the wall for a couple days...
 Sue

Garry

  • Misty Moorings Team
  • Member
  • *
  • Posts: 209
    • View Profile
Hi Sue

Have you tried the Lorby SI Add On Organiser freeware?
It will create the add-on xml file for you. Great for us lazy simmers!
Recommended freeware if you use the xml method.


P3Dv5;R7 1700X o/c 4GHz; RX580 8Gb; 16Gb 2666Hz RAM; Corsair 110h; 34" UW monitor; 120Gb SSD-OS; 1Tb SSD-P3D + 3 HDD; Cambridge 2.1 audio; Honeycomb Yoke; TMpedals; G510s kb