Simconnect setup for P3Dv3

Besides access to P3D data via FSUIPC, I wanted to know how hard it would be to connect directly to P3D without passing via FSUIPC. This should be possible via Simconnect, an API for P3D (which is also used by FSUIPC).

How to get everything working:

  • Get a copy of Visual Studio 2013 Express (I tried it with VS2017 community edition for hours but I failed big time getting the examples compiled/running. Most likely this was because the libraries are compiled in a different version (VS2017 uses platform 14.0))
  • Install all the SDK components
  • Set-up all required configuration files:
    • Simconnect.ini (C:\Users\maartenvd\Documents\Prepar3D v3 Files\Simconnect.ini), to be configured on the server side.
    •  Simconnect.cfg (C:\Users\maartenvd\Documents\Prepar3D v3 Files\Simconnect.cfg OR C:\Users\maartenvd\Documents  OR in the client application directory), to be configured on the client side.
    • Simconnect.xml (%APPDATA%\Lockheed Martin\Prepar3D v3\SimConnect.xml), to be configured on the server side.
<?xml version="1.0" encoding="Windows-1252"?>
<SimBase.Document Type="SimConnect" version="1,0">
  <Descr>SimConnect Server Configuration</Descr>
  <!-- Example Local IPv4 Server Configuration-->
  • Copy the ‘simconnect.lib’ (e.g. C:\Program Files (x86)\Lockheed Martin\Prepar3D v3 SDK\Utilities\SimConnect SDK\lib) to your console application directory
    • … and add the ‘simconnect.lib’ as command line option to the the linker options

  • Link the library where ‘simconnect.h’ (C:\Program Files (x86)\Lockheed Martin\Prepar3D v3 SDK\Utilities\SimConnect SDK\Inc) is stored in the project or just copy the file to your application project directory

That should be it.



Note: SimcConnect.xml and SimConnect.ini are not needed to use SimConnect under normal circumstances: SimConnect client addons that run on the same machine as Prepar3D will work without either of these two files.

Leave a Reply

Your email address will not be published. Required fields are marked *