MP save game and DLL

Nefliqus

Prince
Joined
Sep 16, 2010
Messages
400
Location
Poland
Hi, I don't know C++ and I don't want to start with new DLL. I just want to ask you if someone could check why manual save in MP is just a copy of last autosave file with new name. I need save function during MP turn to finish one of my project (simple pitboss functionality). Could someone check if it is possible to implement new MPManualSave() function that will make new save but not a copy of last autosave file? It can work local like singleplayer save function but just save file to MP folder instead of singleplayer saves folder . It is because during player rejoin the newest save file is downloaded from host to rejoining player's PC.
 
The save game code isn't in the GameCore dll (presumably it's in the .exe or another dll)

The Lua is

Code:
if (Game:IsNetworkMultiPlayer()) then
  UI.CopyLastAutoSave( Controls.NameBox:GetText() );
else
  UI.SaveGame( Controls.NameBox:GetText() );
end

and none of the UI.Xyz() methods are in the released cpp file
 
I have tried to use UI.SaveGame() and manually copy save file to good folder but there is a problem with units activation after player rejoin. I don't know if it is a problem with UI.SaveGame() or something else. Do you know how MP autosave is triggered? Is there any MP autosave function?
 
Back
Top Bottom