This is a small Lua script for your DCS Scripts
folder that makes using ControllerBuddy with DCS World even more comfortable.
The script automatically starts ControllerBuddy in local mode with a profile that matches the current player aircraft when entering a mission.
- Create a new folder named
ControllerBuddy-DCS-Integration
inside yourSaved Games\DCS\Scripts
folder. - Place
ControllerBuddy.lua
into this new folder. - Create a text file named
Export.lua
inside yourSaved Games\DCS\Scripts
folder with the following content:dofile(lfs.writedir()..[[Scripts\ControllerBuddy-DCS-Integration\ControllerBuddy.lua]])
If a file namedExport.lua
already exists, simply append the above line to the end of the file. - Create a new environment variable named
CONTROLLER_BUDDY_EXECUTABLE
pointing to theControllerBuddy.exe
executable in your ControllerBuddy installation folder. - Create a second environment variable named
CONTROLLER_BUDDY_PROFILES_DIR
pointing to a folder containing your ControllerBuddy profiles. - In order for ControllerBuddy to be able to match between a DCS aircraft and a profile, the profile filename must follow the following scheme:
DCS_$DCS_INTERNAL_AIRCRAFT_NAME.json
(e.g.DCS_FA-18C_hornet.json
)
Please refer to the author's profile repository for a complete set of correctly named ControllerBuddy profiles for DCS.
GNU General Public License v3.0