Jump to content

Recommended Posts

Posted (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 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/

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

  • Recently Browsing   0 members

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