chromium Posted October 25, 2018 Posted October 25, 2018 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/ 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.
Nero.ger Posted October 27, 2018 Posted October 27, 2018 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.
chromium Posted October 27, 2018 Author Posted October 27, 2018 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/ 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.
Nero.ger Posted October 27, 2018 Posted October 27, 2018 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.
chromium Posted October 27, 2018 Author Posted October 27, 2018 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/ 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.
chromium Posted November 18, 2018 Author Posted November 18, 2018 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/ 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.
Recommended Posts