midspace / Space-Engineers-Admin-script-mod

Modding script for Space Engineers with dozens of Admin commands for creating game scenarios or supporting servers.
43 stars 13 forks source link

Redundant save and log file names #104

Open midspace opened 9 years ago

midspace commented 9 years ago

Due to change https://github.com/midspace/Space-Engineers-Admin-script-mod/commit/37190f256ee3035084b3bdd8f78234995afffced calling ChatCommandLogic.Instance.ServerCfg.SaveLogs() in the SaveMessage may now be redundant, as it should now be automatically called. It may be saving twice!

If it hasn't been checked, the calls to SaveLogs(...) and ServerCfg.Save() should correctly save their active logs in the for the correct game name if the game has been saved using /save l/s new custom game name

Logging needs to be added for the custom save action, to make it clear if a copy has been produced, or a the game name has been changed, thus copy the log and close the old log before opening a new one under the right name.