Jiggmin's Village
When server crashes, save parts and finish happy hour - Printable Version

+- Jiggmin's Village (https://jiggmin2.com/forums)
+-- Forum: Mt. Olympus (https://jiggmin2.com/forums/forumdisplay.php?fid=11)
+--- Forum: Bugs and Suggestions (https://jiggmin2.com/forums/forumdisplay.php?fid=37)
+---- Forum: PR2 Suggestions (https://jiggmin2.com/forums/forumdisplay.php?fid=45)
+---- Thread: When server crashes, save parts and finish happy hour (/showthread.php?tid=1799)



When server crashes, save parts and finish happy hour - Ashley766 - 30th May 2019

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?


RE: When server crashes, save parts and finish happy hour - Camer the Dragon - 31st May 2019

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)


RE: When server crashes, save parts and finish happy hour - bls1999 - 2nd June 2019

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.


RE: When server crashes, save parts and finish happy hour - bls1999 - 9th July 2019

The frequent crashes seem to be fixed (knock wood!). I'll look into saving happy hours on restart.


RE: When server crashes, save parts and finish happy hour - Ashley766 - 9th July 2019

(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!!


RE: When server crashes, save parts and finish happy hour - bls1999 - 10th July 2019

This should work! LMK if there are any problems.