Night of the Dead

Night of the Dead

View Stats:
TalkBzero May 2, 2021 @ 8:46am
Dedicated server, unable to save
Dedicated server, unable to save
Is there a solution...
I think the inability to save is a very bad server, it is meaningless
Last edited by TalkBzero; May 2, 2021 @ 8:48am
< >
Showing 1-5 of 5 comments
SleepyEyez May 2, 2021 @ 9:35am 
There is the periodical auto save, and if you have the Admin password, you can manual save from the Server Info menu by pressing ESC.
TalkBzero May 2, 2021 @ 5:25pm 
Originally posted by SleepyEyez:
There is the periodical auto save, and if you have the Admin password, you can manual save from the Server Info menu by pressing ESC.

I found out that he will not save it. When I turn off the server and turn it on again, his record disappears...

The archive file exists, but he cannot read the archive file
Last edited by TalkBzero; May 2, 2021 @ 5:26pm
SleepyEyez May 2, 2021 @ 10:11pm 
I don't know what kind of saving method you were referring to so I am just gonna reply with assumptions for various scenarios.

The mechanism of how a server auto saves:
When there are players on the server, a hidden server timer will start running, the timer will reset to 0 when all players leave the server, but will start again when a player joins. When this timer reaches a certain number, specified in this parameter "SaveIntervalHour=" in the ServerSettings.ini file, then an auto save will be executed.

So, an auto save will NOT take place if no players stay on that server long enough.

You also mentioned an archive file, which must be located in the LF\Saved\SaveGames folder somewhere in your SteamCMD folder. depending on how your SteamCMD program was installed. A dedicated server save consists of a folder and 4 files within that folder. If you want to load that save, just copy that folder name and paste into the ServerSettings.ini file after the "SaveName=". The "SaveName=" is the file to load when you run StartServer.bat to start a dedicated server, and is also the name for the server to auto-save as.

So, to load that archive file, you may need to edit "SaveName=".

There also might be save corruption. To see if there are files missing, go to LF\Saved\SaveGames in your SteamCMD folder to check:
<SaveFileName>_Level.sav
<SaveFileName>_Persistent.sav
<SaveFileName>_Player.sav
<SaveFileName>_Slot.sav

If either of <SaveFileName>_Level.sav or <SaveFileName>_Slot.sav is missing or corrupted, a load will result in a fresh new game.
TalkBzero May 3, 2021 @ 4:40am 
@echo off
xcopy ServerSettings.ini "%cd%\LF\Saved\Config\" /y
LF\Binaries\Win64\LFServer.exe ?listen -log -Port=7777 -QueryPort=27015 -CRASHREPORTS
exit

This is its original internal code StartServer.bat, how can I modify it? Read the SaveName file???

I am pretty sure that after playing for 3 hours, I restarted the server, but did not read the previous record


ServerSettings.ini
[SystemSettings]
IngameAdminPassword=
SaveName=Moon1
;In-game time
SaveIntervalHour=2
DefaultMessageOfTheDay=
SleepyEyez May 3, 2021 @ 6:05am 
Sorry, I cannot help you with editing StartServer.bat because I couldn't find any information regarding the command line arguments for LFServer.exe .

I guess you are talking about auto save, but not manual save because leaving "IngameAdminPassword=" blank results in no one having access to manual save.

Since SaveIntervalHour=2 (auto save every 10 real minutes) and you've played for 3 hours, there must be a folder Moon1 created by the server in <SteamCMD installation path>\LF\Saved\SaveGames , and the 4 files within must've been periodically overwritten multiple times during those 3 hours. You can right click on any of those 4 files to bring up the Properties window, and go to the General tab to see the time when the file was created, modified, and accessed.

However, that save may also be overwritten by the auto save from your restarted server.

So, if you can make sure that the save was indeed from the previous server session and not from the restarted server, then the next to check is whether that save is corrupted or not.

A corrupted save, when loaded, will always start a completely new game.

You can test it without starting a dedicated server to avoid further auto save overwrites. The test can be done in a non-dedicated server.
1) Copy Moon1 to <System Drive>:\Users\<User Name>\AppData\Local\LF\Saved\SaveGames\
2) Start Night of the Dead.
3) Go to Multiplayer -> Player Server -> Host Game -> Load Game .
4) A window will pop up. Select Moon1 and then click on Load Game.
5) If you see your character outside of a bunker at day 0 hour 9, then this is a new game, which means the save is corrupted. In some cases of a corrupted save, your character may retain the inventory items.

< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: May 2, 2021 @ 8:46am
Posts: 5