Jump to content

Helios Generated Export.lua will not allow Platform movements on Force Dynamic 301


Recommended Posts

Posted

Hello All,

 

This is my first post but I've been reading the forums about a month now and I couldn't have gotten my platform to the level I've achieved without this wonderful forum. My setup is based around DCS A10C.

 

Here is my problem in a nutshell. I have a modified Force Dynamics 301(FD301) platform and I'm using a program called Simtools to communicate with the Forced Dynamics control software. One of the guys (Value1) over at Simtools wrote a new Export.lua for me which talks to the FD301 control software. Everything was working perfect until I tried to do "Gadroc A-10C Single Touchscreen" instrumentation on my sim platform. Whenever I Update the Export.lua file via the Helios Profile software, the instrumentation works but I loose movement of the platform. If I use the Simtools to repatch the DCS game then it overwrites the Helios changes to the Export.lua and the instrumentation will not work but the platform will have movement.

 

I think Simtools and Helios both use the UDP port to communicate but I can't determine if the two programs (Simtools & Helios) are cancelling each other out within the Export.lua. Could someone please take a look at my uploaded Export.lua and tell me what is causing the A10C positional data not to flow to the Simtools Game Manage module once I update the Export.lua file via the Helios profile. I hope this post give a clear picture of my problem, if not, please feel free to ask more questions. The very first portion of the Export.lua which says "Export plugin for SimTools V3" is the section which normally communicates with the Simtools and FD301 control software via UDP port.

 

Thank you

 

Andre

Export.lua

Posted

Both the Export.lua file from Helios and your SimTools plugin use the global variable "c" to store their UDP socket, so one overwrites the other's value.

 

I have attached a modified version of your code that avoids global variables (all state is kept inside the file-local variable "SimTools").

Copy SimTools.lua to your %USERPROFILE%/Saved Games/DCS/Scripts directory (next to your Export.lua) and then add the following line at the bottom of the (otherwise unmodified) Helios-generated Export.lua:

 

dofile(lfs.writedir()..[[scripts\SimTools.lua]])

SimTools.lua

Posted

[FSF]Ian,

 

Thank you so much:pilotfly:, that just what the doctor ordered. I now have motion on my platform and can control my instrumentation on my touch screen.

 

This forum is really a great place to hang out and learn.

 

Andre:thumbup:

  • Recently Browsing   0 members

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