Jump to content

Player sessions won't save when the server is closed


Recommended Posts

Hello all,

 

Very recently i have noticed this problem and i have no idea why it happens or how to fix it. I have disabled all mods and reinstalled the app from steam and no luck =/.

 

Is there a proper way to shutdown the server? Up until now i have been using screen quit and today i have tried c_save() & c_shutdown() but it still didn't save my session. Everytime i enter after the server was closed and opened i have to select a caracter again ( even though on the server list it shows me as being there before somehow? )

 

Can anyone shed some light on this? thank you :-)

ps: im on linux

 

Edit: Actually i have realized that the server removes my session file when its starting up for some reason. can anyone help? This is really a problem.

Link to comment
Share on other sites

Yes i do. I have always used it and i have tried to turn it off and on to test this. It seems that when an autosave occurs, the sessions are saved to that point but they are not saved in any other way.

Also, i noticed that c_save() on the console has no output, is it normal? Shouldn't it have something like "saving user session..."?

Link to comment
Share on other sites

Seriously i could use a dev here. I don't consider myself a total noob on these things but i really can't figure out whats wrong here. Here is my latest log (i opened the server, got in, droped an axe, got out & closed the server, opened it again and my axe was still in my inventory):

 

Starting Up
Version: 138494
Current time: Thu Jun  4 16:37:14 2015
 
Don't Starve Together: 138494 LINUX
NNN Build Date: 2015-06-03_16-29-15
Parsing command line
Command Line Arguments: -console 
THREAD - started 'GAClient' (4135512896)
HttpClient::ClientThread::Main()
ProfileIndex:4.57
Network tick rate: U=15(2), D=0
Network tick rate: U=30(1), D=0
THREAD - started 'GAClient' (4126141248)
HttpClient::ClientThread::Main()
THREAD - started 'GAClient' (4128242496)
HttpClient::ClientThread::Main()
OnLoadPermissionList: /home/ubuntu/.klei/DoNotStarveTogether/save/blocklist.txt (Failure)
OnLoadPermissionList: /home/ubuntu/.klei/DoNotStarveTogether/save/adminlist.txt (Failure)
OnLoadUserIdList: /home/ubuntu/.klei/DoNotStarveTogether/save/whitelist.txt (Failure)
Server token retrieved from: server_token.txt
cGame::InitializeOnMainThread
Renderer initialize: Okay
AnimManager initialize: Okay
Buffers initialize: Okay
cDontStarveGame::DoGameSpecificInitialize()
FMOD Error: An invalid object handle was used. 
GameSpecific initialize: Okay
cGame::StartPlaying
THREAD - started 'GAClient' (4112501568)
HttpClient::ClientThread::Main()
THREAD - started 'GAClient' (4119849792)
HttpClient::ClientThread::Main()
THREAD - started 'ConsoleInput' (4121951040)
LOADING LUA
DoLuaFile scripts/main.lua
DoLuaFile loading buffer scripts/main.lua
scripts/main.lua(167,1) running main.lua
 
loaded modindex
ModIndex: Beginning normal load sequence for dedicated server.
 
DownloadMods(0)
FMOD Error: An invalid object handle was used. 
LOADING LUA SUCCESS
PlayerDeaths could not load morgue
loaded profile
bloom_enabled false
loaded saveindex
OnFilesLoaded()
OnUpdatePurchaseStateComplete
Load FE
Load FE: done
ModIndex: Load sequence finished successfully.
Reset() returning
[200] Account Communication Success (6)
[ACCOUNT_ACTION_TOKEN_PURPOSE] Received UserId from TokenPurpose: KU_zoCwnjcS
Starting Dedicated Server Game
Network tick rate: U=30(1), D=0
Setting up socket descriptors
Online Server Started on port: 10999
Collecting garbage...
lua_gc took 0.01 seconds
~NetworkLuaProxy()
~SimLuaProxy()
lua_close took 0.01 seconds
cGame::StartPlaying
LOADING LUA
DoLuaFile scripts/main.lua
DoLuaFile loading buffer scripts/main.lua
scripts/main.lua(167,1) running main.lua
 
loaded modindex
ModIndex: Beginning normal load sequence for dedicated server.
 
LOADING LUA SUCCESS
PlayerDeaths could not load morgue
loaded profile
bloom_enabled false
loaded saveindex
OnFilesLoaded()
OnUpdatePurchaseStateComplete
Unload FE
Unload FE done
LOAD BE
Could not preload undefined prefab 0x4058bc0 (molehat)
Could not preload undefined prefab 0x20e21d7a (puppet_wes)
Could not preload undefined prefab 0x20e21d7a (puppet_wes)
LOAD BE: done
Deserialize world session from session/FFFFFFFF97B3F392/0000000003
Save file is at version 1
Begin Session: FFFFFFFF97B3F392
saving to server_temp/server_save
MiniMapComponent::AddAtlas( minimap/minimap_data.xml )
Loading Nav Grid
setting summerlength 15
setting elapseddaysinseason 1
setting isfullmoon false
setting moisture 131.69613647461
setting springlength 20
setting moonphase new
setting precipitationrate 0
setting iswet false
setting winterlength 15
setting iswinter false
setting issummer false
setting moistureceil 584.04699707031
setting isday true
setting wetness 0
setting isnight false
setting isdusk false
setting isspring false
setting isautumn true
setting issnowing false
setting snowlevel 0
setting issnowcovered false
setting autumnlength 20
setting phase day
setting temperature 30.163509304532
setting pop 0.22548893690957
setting season autumn
setting israining false
setting remainingdaysinseason 19
setting time 0.09675235748291
setting cycles 1
setting precipitation none
setting timeinphase 0.19350471496582
Reconstructing topology
...Sorting points
...Sorting edges
...Connecting nodes
...Validating connections
...Housekeeping
...Done!
Truncating to snapshot #3...
 - session/FFFFFFFF97B3F392/KU_zoCwnjcS_/0000000004
   1 file(s) removed
Restoring user session from session/FFFFFFFF97B3F392/KU_zoCwnjcS_/0000000003
Serializing user session to session/FFFFFFFF97B3F392/KU_zoCwnjcS_/0000000004
1 uploads added to server. From server_temp
Telling Client our new session identifier: FFFFFFFF97B3F392
ModIndex: Load sequence finished successfully.
Reset() returning
SteamGameServer_Init Success
New incoming connection 85.246.82.122|60268
ValidateGameSessionToken token: /CzX9Hj48duk/No9o24Ctrra5g+jC87C for: 1008806322467287105
SendHandShakeServerListing
ReceiveAuthenticationBlob
ReceiveResumeRequest
Received request to resume from: session/FFFFFFFF97B3F392/KU_zoCwnjcS_/0000000004
OnResumeRequestLoadComplete - UserID KU_zoCwnjcS
[Load] SPAWNING PLAYER AT: (421.25, 0.00, 539.60)
ConsoleInput: "c_shutdown()"
c_shutdown
Shutdown: shutting up talker
Could not unload undefined prefab 0x4058bc0 (molehat)
Could not unload undefined prefab 0x20e21d7a (puppet_wes)
Could not unload undefined prefab 0x20e21d7a (puppet_wes)
Shutdown: shutting up talker
HttpClient::ClientThread::Main() complete
Collecting garbage...
lua_gc took 0.11 seconds
~NetworkLuaProxy()
~SimLuaProxy()
lua_close took 0.21 seconds
HttpClient::ClientThread::Main() complete
HttpClient::ClientThread::Main() complete
HttpClient::ClientThread::Main() complete
HttpClient::ClientThread::Main() complete
Shutting down

 

If i do c_save() on the server console while im still on the server it does save everything. It also saves when an autosave happens.

Link to comment
Share on other sites

@Maris

 

Well that does indeed work, thanks! Now i just have to figure out a way to do this automatically.. any ideas?

 

Edit: I managed to make it work. For anyone with this problem and wanting to start/stop the server automatically i use

 

to start:

sudo /usr/bin/screen -d -m -S "DST Server" /bin/sh -c './dontstarve_dedicated_server_nullrenderer -console'

 

to stop:

sudo screen -S DST -X stuff "c_shutdown(true)\n"

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...