How to get a list of players and there names, using Verse?

Trying to figure out a way to save data for each individual player. So that when they load into the game they will recieve the items and progress that they previously achieved. I don’t see a direct way to do this using verse. Maybe it will come in the future.

But, for now I was wondering if you could get a list of players that load into the game. And save the names into a database and when they achieve things save id codes of the things they achieve into the database next to their name. Next, time they load into the game simply loop through the id codes for each name and spawn each item based on the reference id codes. Then each player will get everything they had in the last lession.

So, I would like to know how to get a list of players and there names, useing Verse?

If there is easier way to achieve save data using verse that would be even more helpful. Because I don’t even know if they database solution would even work based on how uefn and verse code works with active game sessions.

2 Likes

We currently don’t support any saved persistence between sessions so what you are describing is not possible. Although this is something we want to support in the future.

To get a list of players in the game at a particular time you can use GetPlayspace().GetPlayers() inside your creative_device. But you can not directly access the player’s name at the moment.

1 Like

It’s limitations are ridiculously simple and usual.

1 Like

Is this still the case? Can we still not get display names? How can I display a player’s name on the leaderboard and such, surely the data MUST exist in there if we can do that, I don’t fully understand how difficult it is to make a method that just returns the name in text, how could it possibly not be a feature still? Did they lay off the entire Verse team? Also is there a way to get a unique player ID that remains the same if they leave and re-join? If not - you know what would solve that? Being able to get their epic account name in Verse.

no you can grab the player name now check this thread