wluc9875 / iUFCExport-LuaScript

Script for DCS (https://www.digitalcombatsimulator.com/) to export plane UFCs (or other panels)
GNU General Public License v2.0
18 stars 3 forks source link

iUFCExport-LuaScript

Script for DCS (https://www.digitalcombatsimulator.com/) to export plane UFCs (or other panels)

How to install

Configure Windows 10 Firewall

The following configuration is required to let your PC accept the incoming commands from your iPad and to let the content of your UFC displays to reach your iPad.

Run application Windows PowerShell as an Administrator. 1) execute the following command to open the inbound channel

New-NetFirewallRule -DisplayName "iUFCExport inbound" -Direction Inbound -Action Allow -Protocol UDP -LocalPort 7677

2) execute the following command to open the outbound channel

New-NetFirewallRule -DisplayName "iUFCExport outbound" -Direction Outbound -Action Allow -Protocol UDP -LocalPort 7676

If you prefer to configure these rules with the Windows Defender Firewall with Advanced Security application, please follow this link. Note that configuring the outbound rule goes through similar steps, except that you have to use port 7676 instead of 7677.

Troubleshooting

DCS doesn't update the displays on the iPad

Sometimes, your local network router may not accept local multicast and you wouldn't see anything displayed in the UFCs on your iPad (like the ODU/OSB texts).

In that case, you will have to try another outbound IP address. You would have to replace the 224.0.0.1 address in this line of the iUFCExport.lua script.

iUFCExport.HOST = "224.0.0.1" -- local network multicast IP address

There are 2 options. They require you to get your iPad IP address. You can get your iPad IP address by going to Settings > Wi-Fi. Then select your wifi network in the list. The address you're looking for is in the line IP address.

Option 1

Use your iPad IP address, replacing the last of the 4 numbers by 255. This will allow for a local broadcast.

For example, if your address is something like 192.168.1.33, use 192.168.1.255.

If it works for you, fine, you won't need to change it again.

Option 2

Use your iPad IP address.

Unfortunately, if only this option works for you, then you won't be able to drive several iPads from DCS.

Ports 7676 and 7677 are already taken by other applications

In rare cases, you may have to adjust the base port used to communicate with your iPad. By default it's 7676.

To do that, check this line in the iUFCExport.lua file:

 iUFCExport.OUTBOUND_PORT = 7676 -- change this port if already taken. If you do that, don't forget to adjust the iPad application ports too.

and replace 7676 by the port of your choice (as long as it's between 1024 and 65534).

Don't forget to: