Jump to content

Recommended Posts

Posted

Hi,

 

some of the mods I'm working on, as DAWS Save Mission, require modification to the missionscripting.lua file due to need to use io, lfs and other "sanitized" things. To prevent the "desanitization" for the main lua function, instead of hack the sanitization module I add a line before the sanitize module that execute a main lua file mod that will locally copy io, lfs etc into something allowed during the sim.

 

But this mean that 2 or more module may not be compatible if not adding manually some lines... and I don't want this.

 

Is there a way to make the sim to execute a lua file before sanitization module whitout touching missionscripting.lua?

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

then you still need to modify a file to ask the sim pre-load those lib and make an alias right?

[sIGPIC][/sIGPIC]

My DCS Mods, Skins, Utilities and Scripts

 

| Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD |

| TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |

Posted

Not if the sim automatically scan a folder, or if i Can modify a file once to Say "check that folder and execute everything there".

I'm asking here to understand if the sim do that alone

 

Inviato dal mio SM-G850F utilizzando Tapatalk

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

IIRC DCS does not automatically find all lua under 'some' folder, since it's not safe

 

what you should do is before creating sandbox env, you need to load lfs, io, os into _G and package.loaded with alias, e.g. _G['os_self'] = what _G['os'] contains

[sIGPIC][/sIGPIC]

My DCS Mods, Skins, Utilities and Scripts

 

| Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD |

| TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |

Posted

I already do that, but the point is how can I do that whitout having to modify missionscripting.lua file or, better, no files at all.

 

If there is no possibility, I will try to add a generic command in the missionscripting lua that lead to a similar solution for at least all my mods. But that will anyway prevent compatibility between my mods and other mods that modify missionscripting lua.

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

  • 2 weeks later...
Posted

Ok now I'm trying to convert my mod into a small module, to be able to:

 

1. get the "auto-load" feature I needed, but sadly it seems that lfs, io etc aren't available during DCS loading.

2. being able to set all the custom options of DAWS Save mission as a tab inside the sim options menù.

 

Does anyone know how to access options tab values? (how do I know if one is checked 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
Ok now I'm trying to convert my mod into a small module, to be able to:

 

1. get the "auto-load" feature I needed, but sadly it seems that lfs, io etc aren't available during DCS loading.

2. being able to set all the custom options of DAWS Save mission as a tab inside the sim options menù.

 

Does anyone know how to access options tab values? (how do I know if one is checked or not?)

 

Hi chromium, you can check my mod for option data access

http://forums.eagle.ru/showthread.php?t=167862

[sIGPIC][/sIGPIC]

My DCS Mods, Skins, Utilities and Scripts

 

| Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD |

| TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |

  • Recently Browsing   0 members

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