TheOtherWong Posted October 14, 2014 Share Posted October 14, 2014 Bug Submission: Category: Client Crash Issue Title: Host's Game crashed while I died, weird side effects Issue Description: During the night time of day 17 I died in the swamp, seconds later my host's game crashed. We restarted the game and we were in the morning of day 17. I saw myself die when I entered the game automatically and did not see any of my items that I dropped, I later found all my items far away from where I died randomly lying in a patch of grass. So even though the game did not save up until the evening, the game still knew I died eventually, my items that I dropped after death warped somewhere else on the map. The host said the game crashed right when the hellhounds started attacking a herd of Beefalos. Steps to Reproduce: 1. Die in someone else's game. 2. Have the game crash from the host's side and have all the players dc from the server before the day ends. 3. Rejoin the server. Link to comment Share on other sites More sharing options...
Monkey_BBZ Posted October 14, 2014 Share Posted October 14, 2014 Maybe in the future when crashes are less common, this won't happen, but good find. Link to comment Share on other sites More sharing options...
rezecib Posted October 15, 2014 Share Posted October 15, 2014 I think the real bug/situation here is that when a server crashes, it rolls back to the last time it saved. I think death causes the server to save your character's current state without also saving the world, allowing for a loophole where your inventory essentially gets deleted if you died between the last save and the crash. An easier way to replicate this is as follows:Host a server, and acquire any inventory item. Exit out of the server (this saves it). Resume the server. Die ( c_sethealth(0) ). Alt+F4. Start up the game and server again, and find yourself dead with no skeleton or inventory items on the ground. (clients will see themselves die and drop a skeleton again)Edit: I didn't get your scenario where my inventory ended up somewhere else on the map (I spawned myself a dragonpie in a fresh world and c_gonext('dragonpie') came up blank upon restarting). But it seems similar otherwise. A potential fix would be to have it also save your pre-death inventory when you die, along with a game-time-stamp (e.g. died on World Day 4, 30 seconds in). If the server tries to load a character (upon that character connecting) that is logged as dying later than the time that the server's current session started at, it drops the inventory again upon redoing the death. Link to comment Share on other sites More sharing options...
Developer MarkL Posted October 15, 2014 Developer Share Posted October 15, 2014 Hey, Thank you for finding this one, and for the suggestions for fixing it. This is definitely not how we intended it to work, I'll take a look at the options and let you know what we go forward with. 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.