Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BeforeInitialGet() seems to only update the datastore sometimes. #112

Open
1624252 opened this issue Sep 16, 2020 · 0 comments
Open

BeforeInitialGet() seems to only update the datastore sometimes. #112

1624252 opened this issue Sep 16, 2020 · 0 comments

Comments

@1624252
Copy link

1624252 commented Sep 16, 2020

I was deserializing with BeforeInitialGet() and serializing with BeforeSave(). BeforeInitialGet() runs every time I run the server, and BeforeSave() runs every time I disconnect from the server. I deserialize the table in BeforeInitialGet(). However, sometimes, the deserialized table from BeforeSave(deserialized) is serialized instead. At times like that, Update(), OnUpdate(), and other functions also have the serialized table. This only happens sometimes. Other times, it works fine. I know BeforeInitialGet() runs every time because I have print statements there, and they run as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant