till213 / SkyDolly

Sky Dolly connects with Flight Simulator 2020 and records the flight path and basic instruments for replay.
MIT License
77 stars 9 forks source link

Feature/123 skydolly on remote pc via simconnect #134

Closed till213 closed 2 months ago

till213 commented 2 months ago

Sky Dolly is now able to properly make use of the provided SimConnect.cfg. In fact, I went the extra mile and made it easy to switch between three configurations in the Sky Dolly application settings:

No restart required: Sky Dolly reconnects automatically with the selected configuration :)

grafik

A sample SimConnect.cfg configuration will be shipped together with Sky Dolly, with three configuration sections matching the above configurations:

# This is the default Sky Dolly specific SimConnect client configuration.
# In Sky Dolly, go to File | Settings... | Flight Simulator and change
# the configuration (no restart required: Sky Dolly will reconnection
# automatically).
#
# All configurations work with the default SimConnect.xml server configuration
# that is located at:
#
# Steam: C:\Users\<user_name>\AppData\Roaming\Microsoft Flight Simulator\
# Microsoft store: C:\Users\<user_name>\AppData\Local\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache\
#
# However you may adjust the below IPv4 respectively IPv6 addresses and port numbers
# accordingly, in order to have MSFS and Sky Dolly run on different machines.
#
# For documentation about this SimConnect client configuration (SimConnect.cfg) also refer to:
# https://docs.flightsimulator.com/html/Programming_Tools/SimConnect/SimConnect_INI_Definition.htm
#
# For documentation about the SimConnect server configuration (SimConnect.xml) also refer to:
# https://docs.flightsimulator.com/html/Programming_Tools/SimConnect/SimConnect_XML_Definition.htm
#
# Please take note of the following notice:
#
# "IMPORTANT! This section relates to a legacy process intended for use with Microsoft Flight Simulator X.
# It is still valid for Microsoft Flight Simulator but may be changed or even removed at some time in the
# future and should only be used for support of legacy add-ons."

# Connection type: "Local (pipe)"
#
# This is the default connection type: MSFS and Sky Dolly run on the same local machine
[SimConnect]
Protocol=Pipe
Port=Custom/SimConnect
Address=127.0.0.1

# Connection type: "Network 1 (IPv4)"
#
# This is the network configuration with IPv4: MSFS and Sky Dolly may run on the same local
# machine (local address 127.0.0.1), or on different machines. In the later case adjust the
# 'Address' with the corresponding IPv4 address of the server (running MSFS).
[SimConnect.1]
Protocol=IPv4
Address=127.0.0.1
Port=500
MaxReceiveSize=41088

# Connection type: "Network 2 (IPv6)"
#
# This is the network configuration with IPv6: MSFS and Sky Dolly may run on the same local
# machine (local address ::1), or on different machines. In the later case adjust the
# 'Address' with the corresponding IPv6 address of the server (running MSFS).
[SimConnect.2]
Protocol=IPv6
Address=::1
Port=500
MaxReceiveSize=41088

All configurations (pipe, IPv4, IPv6) should work "out of the box" with the SimConnect.xml server configuration (*) that is automatically generated upon MSFS launch (if not present). The IP addresses and ports may be adjusted accordingly, for an actual network (different machines) configuration.

(*) On the same local machine

This feature will be part of the upcoming Sky Dolly v0.17.0.