Jump to content

Recommended Posts

Posted

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/

Github for latest version: https://github.com/Chromium18/DSMC

  • 3 months later...
Posted

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...

  • Recently Browsing   0 members

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