-
Notifications
You must be signed in to change notification settings - Fork 78
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
DataStore2.Combine by default in 2.0.0 (with settings for existing users) #38
Comments
Is there a migration guide somewhere? |
Not yet, though I should write one before starting work on this. If you're making a new game/making new data, all you should need to do is write at the top: So if you were adding coins to your game, at the top (ideally soon after requiring DataStore2), you'd write: For existing games, I do want to write a way to transfer uncombined data to combined data stores. |
Idea for migration: introduce a
This is what users have to do already to migrate their data from an uncombined store to a combined one, so it helps for it to be native. Explicit opt in because we don't want to give this overhead to anyone who already have combined data stores set up correctly. |
Sorry for posting this here, but I have no other way of contacting you. For some godforsaken reason the roblox devform won't make me a new user even after like a week of browsing the forums and doing everything I can, including emailing support. So I can't post there at all. ): I digress. Since Combine is not yet automatic, I was wanting to make it automatic for my personal uses so as to not have to call Combine a trillion times. I'm a veteran programmer, but very new to lua and it's quirks and metatables, so my plan is to simply create a wrapper function that calls DataStore2() then DataStore2.Combine() on the key just created, then return DS2() as normal. But I was wondering how I could elegantly check if a "key" exists, so I don't run Combine each time a player joins and a new DS2() is called for that player of the same "key". Any help or solution? Thank you and sorry again for posting this here, you can feel free to remove this. |
It's fine to call Combine as much as you want. It doesn't do anything other than say "If you see this key, you're going to be doing it a different way". Not sure what the question is. |
This is something that wasn't born until after it was seen to be an issue without, but new developers won't realize how necessary this is and not do it. Perhaps introduce
DataStore2.Uncombine
for the opposite, or just tell developers that were using DataStore2 before to just disable the settings. Also introduce a setting for a master key.The text was updated successfully, but these errors were encountered: