chromium Posted October 17, 2018 Posted October 17, 2018 Hello, I know that lfs has some possibile call, as lfs.current and lfs.writedir... but... how to load a file that is already stored inside the miz archive? Does someone know how to load a file stored in the miz file (as a do_file trigger), using a script and not a trigger? Basically I want to load a lua code or, for example, a sound file that is already inside the miz file whitout having to use trigger. 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.
chromium Posted October 18, 2018 Author Posted October 18, 2018 I'll answer myself this time... not tested yet, but it seems that files should be accessible from the lfs.tempdir function which point to the temporary unpacked mission files that DCS place in the appdata\local\temp\DCS.(version)\mission\ folder. I'll tell if it's working or not. 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.
Wrench Posted October 21, 2018 Posted October 21, 2018 What about assert:loadfile? Works in the ME. Carrier Script.
chromium Posted October 21, 2018 Author Posted October 21, 2018 What about assert:loadfile? Works in the ME. yes but with what path do you use loadfile ;) ? the answer is lfs.tempdir() .. (path in local\temp\ with the miz file extracted by dcs while the mission is running). 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