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,

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

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

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

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