raiser Posted June 1, 2015 Share Posted June 1, 2015 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 More sharing options...
ToNiO55 Posted June 2, 2015 Share Posted June 2, 2015 Hi @raiser, do you have "autosaver"? enable_autosaver = true in your settings.ini? ~/.klei/DoNotStarveTogether/settings.ini Link to comment Share on other sites More sharing options...
raiser Posted June 3, 2015 Author Share Posted June 3, 2015 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 More sharing options...
raiser Posted June 4, 2015 Author Share Posted June 4, 2015 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 UpVersion: 138494Current time: Thu Jun 4 16:37:14 2015 Don't Starve Together: 138494 LINUXNNN Build Date: 2015-06-03_16-29-15Parsing command lineCommand Line Arguments: -console THREAD - started 'GAClient' (4135512896)HttpClient::ClientThread::Main()ProfileIndex:4.57Network tick rate: U=15(2), D=0Network tick rate: U=30(1), D=0THREAD - 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.txtcGame::InitializeOnMainThreadRenderer initialize: OkayAnimManager initialize: OkayBuffers initialize: OkaycDontStarveGame::DoGameSpecificInitialize()FMOD Error: An invalid object handle was used. GameSpecific initialize: OkaycGame::StartPlayingTHREAD - started 'GAClient' (4112501568)HttpClient::ClientThread::Main()THREAD - started 'GAClient' (4119849792)HttpClient::ClientThread::Main()THREAD - started 'ConsoleInput' (4121951040)LOADING LUADoLuaFile scripts/main.luaDoLuaFile loading buffer scripts/main.luascripts/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 SUCCESSPlayerDeaths 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_zoCwnjcSStarting Dedicated Server Game Network tick rate: U=30(1), D=0Setting up socket descriptorsOnline Server Started on port: 10999Collecting garbage...lua_gc took 0.01 seconds~NetworkLuaProxy()~SimLuaProxy()lua_close took 0.01 secondscGame::StartPlayingLOADING LUADoLuaFile scripts/main.luaDoLuaFile loading buffer scripts/main.luascripts/main.lua(167,1) running main.lua loaded modindex ModIndex: Beginning normal load sequence for dedicated server. LOADING LUA SUCCESSPlayerDeaths 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: FFFFFFFF97B3F392saving 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) removedRestoring user session from session/FFFFFFFF97B3F392/KU_zoCwnjcS_/0000000003 Serializing user session to session/FFFFFFFF97B3F392/KU_zoCwnjcS_/00000000041 uploads added to server. From server_tempTelling Client our new session identifier: FFFFFFFF97B3F392ModIndex: Load sequence finished successfully. Reset() returningSteamGameServer_Init SuccessNew incoming connection 85.246.82.122|60268ValidateGameSessionToken token: /CzX9Hj48duk/No9o24Ctrra5g+jC87C for: 1008806322467287105SendHandShakeServerListingReceiveAuthenticationBlobReceiveResumeRequestReceived request to resume from: session/FFFFFFFF97B3F392/KU_zoCwnjcS_/0000000004OnResumeRequestLoadComplete - 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() completeCollecting garbage...lua_gc took 0.11 seconds~NetworkLuaProxy()~SimLuaProxy()lua_close took 0.21 secondsHttpClient::ClientThread::Main() completeHttpClient::ClientThread::Main() completeHttpClient::ClientThread::Main() completeHttpClient::ClientThread::Main() completeShutting 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 More sharing options...
Maris Posted June 4, 2015 Share Posted June 4, 2015 Use c_shutdown(true) Link to comment Share on other sites More sharing options...
raiser Posted June 5, 2015 Author Share Posted June 5, 2015 @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 More sharing options...
Recommended Posts
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.