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

ChromiumDis.png

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

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

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

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.

ChromiumDis.png

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

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

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

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

ChromiumDis.png

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

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

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

  • 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.

ChromiumDis.png

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

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

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

  • Recently Browsing   0 members

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