

Loopyllu1
Members-
Posts
2 -
Joined
-
Last visited
-
OPTIONS_ADD_COMMAND_CODES_TO_TOOLTIP function removed? Why?
Loopyllu1 replied to Xtorris's topic in Mission Editor
Hi, i dont seem to have the autoexec.cfg file... would you know why by any means? -
Mike Force Team started following Loopyllu1
-
So i got the SD xl the other day first thing i did was watch a video on how to set it up for dcs, got the files the plugins and so on but when i go onto DCS and load up a mission in the F18 all the buttons work but its not connecting to dcs comms and says this DCS module not detected. Check that DCS mission is running, there is a .lua script for the module within "DCS-ExportScript\ExportsModules\", and the port settings above match those in "DCS-ExportScript\Config.lua" the IP address is 127.0.0.1 lister port is 1725 send port is 26027 how can i fix this I've done what it says ive ran stream deck in admin dcs is not running on admin ive tried every combo of them two and nothing works this is my export.lua -- Data export script for DCS, version 1.2. -- Copyright (C) 2006-2014, Eagle Dynamics. -- See http://www.lua.org for Lua script system info -- We recommend to use the LuaSocket addon (http://www.tecgraf.puc-rio.br/luasocket) -- to use standard network protocols in Lua scripts. -- LuaSocket 2.0 files (*.dll and *.lua) are supplied in the Scripts/LuaSocket folder -- and in the installation folder of the DCS. -- Expand the functionality of following functions for your external application needs. -- Look into Saved Games\DCS\Logs\dcs.log for this script errors, please. pcall(function() local dcsSr=require('lfs');dofile(dcsSr.writedir()..[[Mods\Services\DCS-SRS\Scripts\DCS-SimpleRadioStandalone.lua]]); end,nil); local Tacviewlfs=require('lfs');dofile(Tacviewlfs.writedir()..'Scripts/TacviewGameExport.lua') -- load the DCS ExportScript for DAC and Ikarus dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\ExportScript.lua]]) this is my config script -- Ikarus and D.A.C. Export Script -- -- Config File -- -- Copyright by Michael aka McMicha 2014 -- Contact dcs2arcaze.micha@farbpigmente.org ExportScript.Config = {} ExportScript.Version.Config = "1.2.1" -- Ikarus a Glass Cockpit Software ExportScript.Config.IkarusExport = true -- false for not use ExportScript.Config.IkarusHost = "127.0.0.1" -- IP for Ikarus ExportScript.Config.IkarusPort = 1625 -- Port Ikarus (1625) ExportScript.Config.IkarusSeparator = ":" -- D.A.C. (DCS Arcaze Connector) ExportScript.Config.DACExport = false -- true for use ExportScript.Config.DAC = {} -- first hardware ExportScript.Config.DAC[1] = {} ExportScript.Config.DAC[1].Host = "127.0.0.1" -- IP for hardware 1 ExportScript.Config.DAC[1].SendPort = 26026 -- Port for hardware 1 ExportScript.Config.DAC[1].Separator = ":" -- secound to n hardware --ExportScript.Config.DAC[2] = {} --ExportScript.Config.DAC[2].Host = "127.0.0.1" -- IP for hardware 2 --ExportScript.Config.DAC[2].SendPort = 9092 -- Port for hardware 2 --ExportScript.Config.DAC[2].Separator = ":" -- Ikarus and D.A.C. can data send ExportScript.Config.Listener = true -- false for not use ExportScript.Config.ListenerPort = 26027 -- Listener Port for D.A.C. -- Other ExportScript.Config.ExportInterval = 0.05 -- export evry 0.05 secounds ExportScript.Config.ExportLowTickInterval = 0.5 -- export evry 0.5 secounds ExportScript.Config.LogPath = lfs.writedir()..[[Logs\Export.log]] ExportScript.Config.ExportModulePath = lfs.writedir()..[[Scripts\DCS-ExportScript\ExportsModules\]] ExportScript.Config.Debug = false ExportScript.Config.SocketDebug = false ExportScript.Config.FirstNewDataSend = true ExportScript.Config.FirstNewDataSendCount = 100 And this is my export.lua script inside the \DCS\Scripts\DCS-ExportScript folder -- Ikarus and D.A.C. Export Script -- -- Copyright by Michael aka McMicha 2014 - 2018 -- Contact dcs2arcaze.micha@farbpigmente.org -- Main Table ExportScript = {} ExportScript.Version = {} ExportScript.Version.ExportScript = "1.2.1" -- Simulation id ExportScript.SimID = string.format("%08x*",os.time()) -- State data for export ExportScript.PacketSize = 0 ExportScript.SendStrings = {} ExportScript.LastData = {} ExportScript.PacketSizeDAC = {} ExportScript.SendStringsDAC = {} ExportScript.LastDataDAC = {} ExportScript.lastExportTimeHI = 0 ExportScript.lastExportTimeLI = 0 ExportScript.NoLuaExportBeforeNextFrame = false local PrevExport = {} PrevExport.LuaExportStart = LuaExportStart PrevExport.LuaExportStop = LuaExportStop PrevExport.LuaExportBeforeNextFrame = LuaExportBeforeNextFrame PrevExport.LuaExportAfterNextFrame = LuaExportAfterNextFrame dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\Config.lua]]) ExportScript.utf8 = dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\lib\utf8.lua]]) dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\lib\Tools.lua]]) dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\lib\genericRadio.lua]]) dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\lib\Maps.lua]]) for i = 1, #ExportScript.Config.DAC, 1 do ExportScript.PacketSizeDAC[i] = 0 ExportScript.SendStringsDAC[i] = {} ExportScript.LastDataDAC[i] = {} end -- Found DCS or FC Module ExportScript.FoundDCSModule = false ExportScript.FoundFCModule = false ExportScript.FoundNoModul = true --------------------------------------------- -- DCS Export API Function Implementations -- --------------------------------------------- function LuaExportStart() -- Works once just before mission start. -- (and before player selects their aircraft, if there is a choice!) -- 2) Setup udp sockets to talk to GlassCockpit package.path = package.path..";.\\LuaSocket\\?.lua" package.cpath = package.cpath..";.\\LuaSocket\\?.dll" --local lrename1, lrename2 = os.rename(ExportScript.Config.LogPath, ExportScript.Config.LogPath..".old") ExportScript.logFile = io.open(ExportScript.Config.LogPath, "wa") -- "W+" if ExportScript.logFile then ExportScript.logFile:write('\239\187\191') -- create a UTF-8 BOM ExportScript.logFile:write("ExportScript Version: "..ExportScript.Version.ExportScript.."\r\n") end --if lrenmae1 == nil then -- ExportScript.Tools.WriteToLog("Rename Error: "..lrename2) --end ExportScript.Tools.createUDPSender() ExportScript.Tools.createUDPListner() ExportScript.AF = {} -- Table for Auxiliary functions ExportScript.NoLuaExportBeforeNextFrame = false ExportScript.Tools.SelectModule() -- point globals to Module functions and data. -- Chain previously-included export as necessary if PrevExport.LuaExportStart then PrevExport.LuaExportStart() end end function LuaExportBeforeNextFrame() --[[ if ExportScript.Config.Debug then ExportScript.Tools.ProcessInput() else ExportScript.coProcessArguments_BeforeNextFrame = coroutine.create(ExportScript.Tools.ProcessInput) coStatus = coroutine.resume(ExportScript.coProcessArguments_BeforeNextFrame) end if ExportScript.NoLuaExportBeforeNextFrame == false then ExportScript.Tools.ProcessOutput() end ]] -- Chain previously-included export as necessary if PrevExport.LuaExportBeforeNextFrame then PrevExport.LuaExportBeforeNextFrame() end end function LuaExportAfterNextFrame() if ExportScript.NoLuaExportBeforeNextFrame then ExportScript.Tools.ProcessOutput() end -- Chain previously-included export as necessary if PrevExport.LuaExportAfterNextFrame then PrevExport.LuaExportAfterNextFrame() end end function LuaExportActivityNextEvent(t) local tNext = t -- Put your event code here and increase tNext for the next event -- so this function will be called automatically at your custom -- model times. -- If tNext == t then the activity will be terminated. if ExportScript.Config.Debug then ExportScript.Tools.ProcessInput() else ExportScript.coProcessArguments_BeforeNextFrame = coroutine.create(ExportScript.Tools.ProcessInput) coStatus = coroutine.resume(ExportScript.coProcessArguments_BeforeNextFrame) end if ExportScript.NoLuaExportBeforeNextFrame == false then ExportScript.Tools.ProcessOutput() end tNext = tNext + ExportScript.Config.ExportInterval return tNext end function LuaExportStop() -- Works once just after mission stop. if ExportScript.Config.DACExport then ExportScript.Tools.SendDataDAC("DAC", "stop") for i=1, #ExportScript.Config.DAC, 1 do ExportScript.Tools.FlushDataDAC(i) end end if ExportScript.Config.IkarusExport then ExportScript.Tools.SendData("Ikarus", "stop") ExportScript.Tools.FlushData() end ExportScript.UDPsender:close() if ExportScript.Config.Listener then ExportScript.UDPListener:close() end ExportScript.ModuleName = nil ExportScript.FoundNoModul = false if ExportScript.logFile then ExportScript.Tools.WriteToLog("====== Logfile close ======") ExportScript.logFile:flush() ExportScript.logFile:close() ExportScript.logFile = nil end -- Chain previously-included export as necessary if PrevExport.LuaExportStop then PrevExport.LuaExportStop() end end really appreciate it if one of you could help thank you.