Panda_DCS Posted July 21, 2020 Posted July 21, 2020 (edited) I am working on exporting some data from DCS and my code works on its own. Once I put it into an environment where there are other mods it seems the export functions conflict. I have looked to the code from Tacview for a solution that seems to work for everything except the function that I need the most...LuaExportActivityNextEvent(t). I am able to get the initial call of the function to execute, but then it fails to run again based on (t) which is every 5 seconds. There are no errors being reported, it just doesn't seem to get called again. I am convinced the problem is the way I am setting up the function since this method is new to me, my Lua skills are trash, and I haven't seen an example of how to pass the variable t back to the function when setting it up this way. Any help would be greatly appreciated. do local DCSLuaExportActivityNextEvent = LuaExportActivityNextEvent; LuaExportActivityNextEvent = function(t) local tNext = t CODE TO BE EXECUTED tNext = tNext + 5.0 return tNext end Edited July 22, 2020 by Panda_DCS solved issue Sim Rig: Intel i7 9700k, SSD, GTX1660Ti, 32 GB DDR4, Windows 10 HOTAS: TM Warthog, MFG Crosswind Pedals, Opentrack - DIY HeadTracker IRL: Private Pilot - IFR, Part 107 Drone Pilot
Panda_DCS Posted July 22, 2020 Author Posted July 22, 2020 The code is now working as intended. Sim Rig: Intel i7 9700k, SSD, GTX1660Ti, 32 GB DDR4, Windows 10 HOTAS: TM Warthog, MFG Crosswind Pedals, Opentrack - DIY HeadTracker IRL: Private Pilot - IFR, Part 107 Drone Pilot
Recommended Posts