chromium Posted May 21, 2016 Share Posted May 21, 2016 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/ 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 More sharing options...
uboats Posted May 22, 2016 Share Posted May 22, 2016 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 | Link to comment Share on other sites More sharing options...
chromium Posted May 22, 2016 Author Share Posted May 22, 2016 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/ 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 More sharing options...
uboats Posted May 22, 2016 Share Posted May 22, 2016 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 More sharing options...
chromium Posted May 22, 2016 Author Share Posted May 22, 2016 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/ 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 More sharing options...
chromium Posted June 4, 2016 Author Share Posted June 4, 2016 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/ 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 More sharing options...
uboats Posted June 4, 2016 Share Posted June 4, 2016 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 More sharing options...
chromium Posted June 4, 2016 Author Share Posted June 4, 2016 To be honest, you gave me that idea with that mod :) I'll check for sure :) 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 More sharing options...
uboats Posted June 5, 2016 Share Posted June 5, 2016 if you have anything unclear, please PM me. [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 More sharing options...
chromium Posted June 5, 2016 Author Share Posted June 5, 2016 ok, will do if necessary. Thanks a lot. 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 More sharing options...
Recommended Posts