Skip to content

Export iCommands from DCS

Jerker Dahlblom edited this page Nov 28, 2023 · 2 revisions

How to export the iCommands

  • Close DCS
  • Open file DCS World\Config\Input\Aircrafts\Default\keyboard\default.lua

In the very beginning of the file add the following code snippet :

local lfs = require("lfs")
local io = require("io")
local f = io.open(lfs.writedir() .. [[Logs\iCommands.txt]], "w")
if f then
	f:write("\n\n*** fenv:\n")
	for k, v in pairs(getfenv()) do
		f:write(tostring(k))
		f:write("\t")
		f:write(tostring(v))
		f:write("\n")
	end
	f:close()
end
  • Save default.lua
  • Start DCS
  • Go into Settings -> Controls (that is all you need to do, the file has now been created)
  • Go to C:\Users\<username>\Saved Games\DCS\Logs and you will find iCommands.txt.
  • Copy iCommands.txt to the dcs-insight client folder and replace old file.

These commands do not change often so this shouldn't be necessary but if you are unsure then do it and you can compare the files.

Clone this wiki locally