question

apptester825 avatar image
apptester825 asked

How to parse/upload .CSV/MySQL db with external data into a demo leaderboard for setting up test database?

Hello everybody

We have for testing purposes often to populate the PlayerData and Leaderboard tables.

How to upload from an external prepopulated table data file (such as mySQL, or .csv/.xls) into the Playfab demo project?

Leaderboards and Statisticsdata
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Sorry, but that's not an option in our current model. Statistics, which are what are used to generate leaderboards, specifically belong to player accounts. So you would actually need to generate a player account, then update the statistics on it. We do plan to add more tools for setting up example data in titles like this in future, but your best bet right now would be to write a script which does a login for a player, then updates the stats for that player from your data. If you do this, please be sure that you make calls in serial fashion, always waiting on the response from the last request before issuing a new request. If it's a large number of calls (more than a few dozen), you may also want to add a short delay between calls, so that you don't wind up trying to make hundreds of calls over a short period from a single IP Address.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.