Simconnect to sync one pc master and one pc client

SDK supports Prepar3D’s philosophy of an open development architecture and encourages third parties to bring new innovations with improved add-ons and training content.
Post Reply
sisoffi
Posts: 45
Joined: Sun Sep 25, 2011 9:29 pm

Simconnect to sync one pc master and one pc client

Post by sisoffi »

Hi at all,
I have a home cockpit with a somewhat particular setup in the sense that I have to use the multiplayer of the addons to synchronize the external view and the avionics instrumentation that is using a client pc.
In this regard, I would need to synchronize these elements to the PC that receives the data from the master:
-traffic
- weather
-date and time (I can't find the string in the examples)

I was trying to create something with simconnect i.e. the file that goes on the master pc a simconnect.xml / appdata / roaming / p3dv5 as follows:

<?xml version="1.0" encoding="UTF-8"?>
<SimBase.Document version="1.0" Type="SimConnect">
<Descr>SimConnect Server Configuration</Descr>
<Filename>Simconnect.xml</Filename>
<Disabled>False</Disabled>
<SimConnect.Comm>
<Disabled>False</Disabled>
<Protocol>Auto</Protocol>
<Scope>local</Scope>
</SimConnect.Comm>
<SimConnect.Comm>
<Disabled>False</Disabled
<Protocol>IPv4</Protocol>
<Scope>global</Scope>
<MaxClients>64</MaxClients>
<Address>192.168.1.2</Address>
<Port>9017</Port>
</SimConnect.Comm>
<SimConnect.Comm>
<Disabled>False</Disabled
<Protocol>IPv4</Protocol>
<Scope>global</Scope>
<MaxClients>64</MaxClients>
<Address>127.0.0.1</Address>
<Port>9017</Port>
<MaxRecvSize>4096</MaxRecvSize>
<DisableNagle>True</DisableNagle>
</SimConnect.Comm>
HRESULT SimConnect_RequestTrafficSettings(
HANDLE hSimConnect,
SIMCONNECT_DATA_REQUEST_ID RequestID
);
HRESULT SimConnect_WeatherRequestInterpolatedObservation(
HANDLE hSimConnect,
SIMCONNECT_DATA_REQUEST_ID RequestID,
float lat,
float lon,
float alt
);
</SimBase.Document>

but i dont know if is syntax correct because nothing work.
Can somebody help me?

it say me CANT INIT SimConnect - error code 0x80004005

many thanks,
Simone
Post Reply