Suphi's DataStore Module

Pretty cool. I suggest using gitbook, since it makes the documentation look so much better than this.

4 Likes

Thanks for sharing this resource! :slightly_smiling_face: I wonder could its data loss prevention be used for global leaderboards? For example, could I create a global top 100 players by coins leaderboard by storing coins using this module and when the stored coins change also store them in an OrderedDataStore? Is that a good idea? :sweat_smile:

2 Likes

You can find documentation inside the discord channel that you might feel looks better

or if you like you can add the documentation to gitbook if you like

2 Likes

So you would save the coins inside the players data using Suphi’s DataStore Module

and when the coin amount changes you will also save the coins in a OrderedDataStore

then you can use the OrderedDataStore to get the top 100

if your coins values changes to quickly you might be setting the OrderedDataStore to quickly. If that’s the case you can use the saving event to set the OrderedDataStore

5 Likes

about that, not everyone have discord, and i feel like using gitbook is better like what @Bloxxy213_DVL said

2 Likes

I currently don’t have time to manage it but if you or @Bloxxy213_DVL want to do it and post the link feel free to

4 Likes

Here you go:

7 Likes

thx, I will make a pull request

2 Likes

Suphi’s DataStore Module 1.2 is now live

bug fix -- fixed small edge case when calling ds:Close() would return nil instead of "Success"

This is a drop in replacement when updating from version 1.0/1.1 to 1.2 you don’t need to change anything in your scripts

2 Likes

does it automatically update or no? because you put this:

This is a drop in replacement when updating from version x.x to y.y you don’t need to change anything in your scripts

2 Likes

In the 2 hours you took to explain everything your module can do, I already learned Datastore2, implemented Datastore2, learned ProfileService to know how good Datastore2 is, read all the documentation for Datastore2 and ProfileService, and had time to fix 5 bugs in my game, none releated to datastores. So why use yours?

3 Likes

you cant auto update it self module, except your doing require(asset_id) not for require(path.module)

4 Likes

Ill soon have a 2 hour video that explains how Datastore2, ProfileService and Suphi's DataStore Module work

Edit* its only 46 min long

21 Likes

Thanks so much for putting in the time and effort to make this module and tutorials! I really like how easy-to-use and elegant the APIs are. And about the videos, they’re awesome – I don’t think length is a problem at all. I watch them at 2x speed, and everything’s still clear. Keep up the great work.

7 Likes

Looks a lot more promising than ProfileService, definitely would be using this in my future projects over ProfileService :slight_smile:

3 Likes

Yo suphi just to notify you

3 Likes

SaveDelay is already set to 0 by default because I knew it was getting removed so this change has no effect for SDM

4 Likes

Nice work and creative implementation, thanks for the hard work. Your Youtube videos are also great for developers moving over to the platform who want to understand its quirks!

6 Likes

This seems to be a great DataStore module, so I’ve started using it (instead of ProfileService, which I never set up).

Is there a way to open another player’s profile for viewing only, even if they are in another server (therefore locking their store)? I heard of a way to do this with ProfileService, but I don’t know if there’s a way to do it other than the “queue” that I’ve heard of from your advanced tutorial video.

2 Likes

You can use ‘Read’ to view there last saved value but not the value that is cached on the other server

6 Likes