lithin9 / Unturned-Custom-Plugin

Other
0 stars 0 forks source link

URGENT: possible credit save failure #172

Closed jcvl92 closed 9 years ago

jcvl92 commented 9 years ago

People said that they lost credits when the server was restarted. The amount of credits apparently lost lines up with the roll-out of auto-save. So make sure auto-save works and that it works at scale(10,000 entries).

prestonvanloon commented 9 years ago

Do you have any logging? There's no catch block on your save function, maybe there was an exception thrown?

https://github.com/lithin9/DingusGaming/blob/master/DingusGaming/DingusGaming.cs#L303

Is the server shutdown/restart safe? If the program is writing to the file and you restart it, does it finish or just exit?

jcvl92 commented 9 years ago

The save function is definitely failing. No idea the reason, let's just move to a DB because writing 10,000 XML entries to a file is literally the worst thing ever.