Jump to content

Recommended Posts

Posted

Is it possible?

 

I'm looking for a way to pass the loaded mission path as a text variable (got by DCS.getMissionFilename() ) to a script that is running into the mission (loaded by "do script file").

 

thanks

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Github for latest version: https://github.com/Chromium18/DSMC

Posted

the only way i found so far to transport data between the different Enviroments are either sockets or simply writing and reading a file. and yes its a pita.

(between cockpit and Export its a bit easier because you set and read gauges)

'controlling' the Ka50 feels like a discussion with the Autopilot and trim system about the flight direction.

Posted

do you have a socket example that might been read into the mission environment whitout having to modify missionscripting.lua?

 

writing and reading a file is my current solution, but i'm looking for a way that won't interfere with the current sanitization thing.

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Github for latest version: https://github.com/Chromium18/DSMC

Posted

i am not at my PC, but SRS has a socket-connection in thier luas

'controlling' the Ka50 feels like a discussion with the Autopilot and trim system about the flight direction.

Posted

uhmmm thanks, I'll check. But please, when and if you get to your PC consider sending something here if I don't already answer with a "Hey solution found" ;)

 

I can't look now, I will this evening likely

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Github for latest version: https://github.com/Chromium18/DSMC

  • 4 weeks later...
Posted

found a solution, ugly but it's ok.... serialize a table into string in the mission environment, print it as a text message and then in the hooks environment set an "onTriggerMessage" code that parse that text message back into a table.

 

Ugly mostly because it's a workaround.

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Github for latest version: https://github.com/Chromium18/DSMC

  • Recently Browsing   0 members

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