DCS World
FlightLab reads your flight data from DCS World through DCS World's export script. FlightLab can set this up for you in Settings > Game Setup. If you'd rather do it yourself, follow the manual setup.
How FlightLab gets data from DCS World
When a mission starts, DCS World runs Export.lua from its Saved Games folder. Tools that read DCS World's data share this file. Each tool adds one line that loads its own script, and FlightLab does the same.
FlightLab uses three files in %USERPROFILE%\Saved Games\DCS\Scripts:
| File | What it does |
|---|---|
Export.lua | The export file DCS World runs. FlightLab adds one line to it. |
FlightLab\FlightLabExport.lua | FlightLab's export script. It starts the telemetry script when a mission starts, and it passes DCS World's export calls on to the tools loaded before it. |
Telemetry\TelemetryWrapper.lua | The telemetry script. It collects your flight data and sends it to FlightLab. |
The telemetry script sends the data over UDP to port 7778 on your own PC (127.0.0.1), where FlightLab listens. This means:
- FlightLab and DCS World must run on the same PC.
- Data only flows while a mission runs.
- You can start FlightLab and DCS World in any order.
Automatic setup
- Close DCS World. FlightLab doesn't change the files while DCS World runs.
- In FlightLab, open Settings > Game Setup.
- In the DCS World box, click Configure. If DCS World isn't the sim selected in FlightLab's top bar, its box is under Other games.
- Wait until the box shows setup complete.
The first time you sign in, FlightLab's welcome screens offer the same setup for the sim you pick there (One-time setup). If you skipped it, you can finish it any time in Settings > Game Setup.
What Configure changes
- It downloads FlightLab's current export script and telemetry script from
cdn.flightlab.app, so it needs an internet connection. - It saves them as
Scripts\FlightLab\FlightLabExport.luaandScripts\Telemetry\TelemetryWrapper.lua, and creates the folders if needed. These two files are FlightLab's own, so Configure overwrites them. - It adds FlightLab's line at the end of
Scripts\Export.lua, or creates the file. The lines of other tools, such as SRS, Tacview or Helios, stay as they are. - Older FlightLab versions wrote their whole script into
Export.lua. Configure takes that copy out, keeps the other tools' lines, and adds FlightLab's single line.
Check that it works
Game Setup checks the files each time you open it. The DCS World box has two checks:
- DCS data export:
Export.luahas FlightLab's line, andFlightLabExport.luais FlightLab's current export script. - Telemetry script:
TelemetryWrapper.luais FlightLab's current telemetry script.
If a check fails, the box lists the checks, marks the failed one with a cross and shows setup incomplete. When both checks pass, the box shows setup complete, and its button changes to Open Folder, which opens %USERPROFILE%\Saved Games\DCS. To run the checks again, click the arrow next to the button and choose Re-Check Configuration.
Then test the connection:
- In FlightLab's top bar, open the sim selector and pick DCS World. FlightLab only shows live data for the sim selected there.
- Go to Overlays, pick an overlay and click Open overlay.
- Start a mission in DCS World. The overlay shows up with your flight data.
Manual setup
Use these steps if Configure fails, or if you'd rather not let FlightLab change your files.
-
Close DCS World.
-
Open
%USERPROFILE%\Saved Games\DCS\Scripts. Create theScriptsfolder if it doesn't exist. -
In
Scripts, create a folder namedFlightLab. Download Export.lua and save it in this folder asFlightLabExport.lua. -
In
Scripts, create a folder namedTelemetry. Download TelemetryWrapper.lua and save it in this folder under the same name. -
Open
Scripts\Export.luain a text editor. Create the file if it doesn't exist. -
Add this line at the end of the file, exactly as shown, and save the file. Leave the other lines as they are.
%USERPROFILE%\Saved Games\DCS\Scripts\Export.lualocal flightlabLfs = require('lfs'); dofile(flightlabLfs.writedir() .. [[Scripts\FlightLab\FlightLabExport.lua]]) -
In FlightLab, open Settings > Game Setup. In the DCS World box, click the arrow next to the button and choose Re-Check Configuration.
When you're done, the folder looks like this:
%USERPROFILE%\Saved Games\DCS\Scripts\
Export.lua your other tools' lines, then FlightLab's line
FlightLab\FlightLabExport.lua Export.lua from cdn.flightlab.app, renamed
Telemetry\TelemetryWrapper.lua TelemetryWrapper.lua from cdn.flightlab.app
Save the downloaded files unchanged. Don't copy and paste their text into new files. Game Setup compares them with FlightLab's current scripts, so a changed file fails the check.
Display settings
Overlays on your monitor only show on top of DCS World while it runs in a window. In DCS World's graphics settings, switch off full screen and use windowed or borderless mode at your monitor's resolution. It looks the same as full screen.
VR overlays are not affected. See Virtual Reality.
Troubleshooting
Configure fails with "DCS is running, please close it". Close DCS World and click Configure again.
Configure fails with a download error. FlightLab downloads its scripts from cdn.flightlab.app when you click Configure. Check your internet connection and try again.
The box shows setup incomplete again. The checks compare your files with FlightLab's current scripts. When FlightLab updates its scripts, click Configure again to get the new ones. The checks also download the current scripts, so without an internet connection the box shows setup incomplete.
DCS data export fails after you installed another tool. If another tool rewrote Export.lua without FlightLab's line, click Configure again, or add the line as shown in the manual setup.
The box shows Game not detected. FlightLab looks for the folder DCS World creates in Saved Games the first time it starts, and for the DCS World game folder. Start DCS World once, close it, and choose Re-Check Configuration.
Setup is complete, but the overlays stay empty.
- Make sure DCS World is the sim selected in FlightLab's top bar.
- Start a mission. DCS World only runs
Export.luaduring a mission. - Run FlightLab on the same PC as DCS World.
- FlightLab receives DCS World's data on UDP port 7778, and this port can't be changed. If another program already uses it, FlightLab can't receive the data. Close that program and restart FlightLab.
Next steps
- Layouts vs Overlays explains the two ways to show overlays.
- The Tools Manager can start your other tools when DCS World connects.