Jump to content

Recommended Posts

Posted (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 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

Posted

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

  • 3 years later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...