Jump to content

Recommended Posts

Posted

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,

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

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

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