Page 1 sur 1

Missions Persistente

Publié : 26 avr. 2020, 13:09
par HotStick
Manip à à garder sous le coude pour activer le fait d'avoir une mission persistente:

Source:
https://www.digitalcombatsimulator.com/ ... s/3306695/

Extrait:

To Enable Persistency:

Inside your DCS installation there is a folder called Scripts. Inside that there is a file called MissionScripting.lua, if you want persistency to work, edit this file (make a backup first if you like) and make the bit that looks like this:

do
sanitizeModule('os')
sanitizeModule('io')
sanitizeModule('lfs')
require = nil
loadlib = nil
end

Look like this instead:

do
sanitizeModule('os')
--sanitizeModule('io')
--sanitizeModule('lfs')
require = nil
loadlib = nil
end

Once you have done that, start DCS and launch the mission. The mission will then write out a list of dead units and statics to a pair of lua files inside the DCS root folder (it will update this list periodically, every 2.5 minutes at the moment). Once these files exist, the mission will load those files when it starts up and remove the units and statics that were previously destroyed so you can pick up wh ere you left off

Note: MissionScripting.lua will need to be changed any time an update or repair is run.

Re: Missions Persistente

Publié : 27 avr. 2020, 15:54
par Moos
Cool :good:

Pense aussi à verrouiller la pause dans les paramètres du serveur, pour éviter qu'elle saute chaque fois que quelqu'un rentre :rooll:

Re: Missions Persistente

Publié : 30 avr. 2020, 13:06
par HotStick
Je n'ai pas trouvé l'option !