chromium Posted August 16, 2017 Share Posted August 16, 2017 (edited) Hi everyone, since mods needs to be moved in saved games directory, I modified the structure moving everything in the savegame folder, but DAWS do not load anymore its main code file that should be activaded right after the SSE initialization. This file is loaded by a small modification in MissionScripting.lua, adding a line: dofile('AMVI/AMVI_mods_exec.lua') right after dofile('Scripts/ScriptingSystem.lua'). this prevent the user to the need of modify every mission loading the DAWS file as it does with mist or moose or else. Also, ensure that the currently mist version DAWS implement is correctly loaded, and ensure that most of its writing/reading functions will work as it's loaded before sanitization module. I also tried to re-point the dofile subject, like writing dofile(lfs.writedir() .. 'AMVI/AMVI_mods_exec.lua') but it doesn't work. Can someone help me to find why it does not load the file anymore, even if I manually overwrite the MissionScripting.lua file inside the main directory? How can I load a .lua file at each mission start as a mod? Edited August 20, 2017 by chromium trying to improve question details 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 August 20, 2017 Author Share Posted August 20, 2017 I have to ask: is my question not clear? or really nobody has a suggestion? thanks. I tried to improve the question also. 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 August 23, 2017 Author Share Posted August 23, 2017 Solved using API. thanks anyway. 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