Jump to content

Mod "activation", need help


Recommended Posts

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?

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.

Link to comment
Share on other sites

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

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.

Link to comment
Share on other sites

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 |

Link to comment
Share on other sites

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.

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.

Link to comment
Share on other sites

  • 2 weeks later...

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

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.

Link to comment
Share on other sites

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 |

Link to comment
Share on other sites

To be honest, you gave me that idea with that mod :) I'll check for sure :)

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.

Link to comment
Share on other sites

ok, will do if necessary. Thanks a lot.

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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