Jiggmin's Village

Full Version: When server crashes, save parts and finish happy hour
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When you get parts on a server and then it crashes, the prizes that you earned don't save. It's as if you never won it. It would be nice if it could still save even though it crashes. Another thing is, is that if a Happy hour is active on a server and the server crashes, it should "restart" the happy hour and finish the remaining time left. Can this be possible? What do you guys think?
Yeah
When a HH is activated, the time and server should be noted somewhere, and then a check should happen "Does this server have a HH less than 3600 seconds old on it?"
(but if multiple HHs are bought there'd have to be a number to store that somewhere)
Most crashes happen after a certain number of database queries. Something about a packet limit shows up in the log...? I'll have to look into it more. Happy Hours would have to be restructured (again) to allow for server crashes... I'll think about this too.

For the crashes that aren't caused by the database freaking out, all player data (parts/exp) is saved appropriately on shutdown.
The frequent crashes seem to be fixed (knock wood!). I'll look into saving happy hours on restart.
(9th July 2019, 1:28 PM)bls1999 Wrote: [ -> ]The frequent crashes seem to be fixed (knock wood!). I'll look into saving happy hours on restart.

Great!!
This should work! LMK if there are any problems.