In some cases for unknown reasons, the server may lock camp.title _ongoing.miz file preventing execution of the following instructions in MAIN_NextMission.lua:
- rename os.rename ("../" .. camp.title .. "_ ongoing.miz", "../"..camp.title.."/Debriefing/"..camp.title.."_ongoing" ..NbMission .. ". miz");
- miz = minizip.zipCreate ("../" .. camp.title .. "_ongoing.miz").
The consequences are the error: "... attempt to index global "miz " value (a nil value)" and the failure of the generation of the new mission.
a possible solution:
- shut down the server (not just pause it ),
- generate the new mission,
- reactivate the server.
Note: Pausing the server without closing it is not enough to avoid the error (based on my own experience )