nVault not save -solved-
So....i'm using nVault, and when the server is restarted, it doesn't keep the data. Anyone know why this is? Or does nVault just not do that....
Because you guys love reading code so much....this is how i initialize it etc etc Code:
Those log messages you see are shown as such: Quote:
|
Re: nVault not save
You haven't shown us how your saving or loading your data?
Also nVault should be closed on plugin_end() |
Re: nVault not save
Quote:
|
Re: nVault not save
Sorry I didn't see you say that. When you say restart, I'll assume you mean restart from server control panel - Doing so will not tell your plugin to close, its the same as a crash. You need to save your data earlier.
|
Re: nVault not save
Quote:
|
Re: nVault not save
No, it shouldn't lose the data. Save your player's data individually on client_disconnect() and that should solve your problem.
|
Re: nVault not save
Quote:
Quote:
|
Re: nVault not save
I tested your exact code after removing the cvar checks and saved data on disconnect and had no issues with it.
|
Re: nVault not save
It looses data after restart. THAT is my problem. Between maps and connections isn't an issue.
|
Re: nVault not save
Actually, come to think of it, it makes sense with the way nVault uses it's journal file. You'll just have to not restart your server during play. The alternative is to make a command to close your nVault before you restart your server. You could also close and re-open your nVault each time you save, however I'm not sure how efficient that'd be.
|
| All times are GMT -4. The time now is 06:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.