I've recently downloaded the Club source and have been editing it to play with friends and eventually release to the public. Everything is going great except for the fact that sometimes, characters items don't save when switching environments. At first I thought it was just the server not updating fast enough, so I literally waited after getting drops in dungeons to see if they'd save and it didn't help. The characters save perfectly fine up until they get around 150-200 fame where it seems their inventories and stats or anything that changed while in a certain map revert back to before they ever first went in. I have no idea whats causing it and would love to find out. Please reply this is a serious issue that I need to address, thanks ahead of time for the help.
This isn't an error... It's as simple as adding player.Client.Save() or just Client.Save() to different places throughout the source in order to make sure the items / stats are saved.
- - - Updated - - -
For example the easy way to do this would be to go to Player.cs then look for the function Tick() and add this timed save in the function:
this will basically auto save people after 10 seconds (if I'm correct cause I haven't tested, just made it quickly :P)
I've added this to my server, reloaded everything worked no errors, yet my character with around 655 fame didn't save after around 4-6 mins in the realm. Heres the code where I added it. (Player.cs)