chromium Posted July 6, 2015 Posted July 6, 2015 Hello, I'm currently making some different mods, each one require a small modification od the \Scripts\MissionScripting.lua (I need to add a dofile line before the sanitization module). Obviously, if two mods are installed in succession with JGSME, only the second one will work properly. My main objective is to make those mod self-installable, so that DCS will check for the dofile line in the MissionScripting.lua at each DCS start and, if missing, it will add it. Do you think it's possibile? Else, can you suggest me an installer that could let me perform such kind of action (MissionScripting.lua modification)? In that case I could sobstitute the (beloved) JGSME installation with the installer, for each mod. 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.
FSFIan Posted October 16, 2015 Posted October 16, 2015 You could use a pattern that is often used for configuration files in Linux: introduce a folder (I suggest lfs.writedir().."MissionScripting.d") where each mod places a Lua file it wants to run. Better yet, make that two folders, one under lfs.writedir(), one in the DCS: World installation directory. Then modify MissionScripting.lua so it calls dofile() on every Lua file in these folders before sanitation. That way all mods can share the same MissionScripting.lua file. Then document what you did so this hopefully becomes a standard for every modder to use. Now that I think of it, I should do something similar for Export.lua... DCS-BIOS | How to export CMSP, RWR, etc. through MonitorSetup.lua
Recommended Posts