Is there a way to find the exact rank of a key in a OrderedDataStore? I was playing PLS DONATE and noticed you could get your exact position. For instance, I was rank #7,835,806
I know there is no built-in method but how do games do it?
Thanks
Is there a way to find the exact rank of a key in a OrderedDataStore? I was playing PLS DONATE and noticed you could get your exact position. For instance, I was rank #7,835,806
I know there is no built-in method but how do games do it?
Thanks
This should be what you’re looking for, has code samples too.
I already looked at that.
It just loops through the ordered pages and will only work if your game is very small (<10,000 lifetime players).
Did some more looking and it looks like most games use an external server. As you said, there is nothing built in, so unless you’re willing to have a slow purely internal solution you will likely have to store the ordered data in your own way.
Edit: linked the wrong thing, should be fixed now
Okay, thanks. That is what I thought.
I was just curious…
It costs money to have an external server for this, right?