- Copy
settings.json
tolocal.settings.json
- Fill out the required settings to connect to your PlayFab Title:
titleId
: Log in to PlayFab. You should see the titleId on your the front page after logging in, or in the URL of the browser when in teh Game Manager.devSecret
:- Got to the Game Manager of your Title
- Click on the cogwheel on top of the left menu (next to your Title's name). Click it
- Select "Title Settings"
- Select "Secret Keys" tab (have no one watch over your shoulder, these secret keys will be visible!)
- Click "New secret key"
- Give it a potential name (and optional: an expiry date)
- Click "Save secret key"
- Copy they key to your
local.settings.json
Commands related to players.
dotnet run -- players create <number of players>
WARNING: This will delete ALL Master Player Accounts from the Title, which have been previously created with PlayFabBuddy on this very machine!
dotnet run -- players delete --local <Local_Path>
Will delete all Master Player Accounts from a given segment, identified by segment name. If a Master Player Account is assigned to another Title as well, players will NOT be deleted!
dotnet run -- players delete --remote <PlayFab_Segment_Name>
As segment name
, you may use one of the pre-defined segment names:
All Players
- All playersLapsed Players
- Last login greater than 30 days agoPayers
- Total value to date in USD greater than $0.00Week Two Active Players
- First login less than 14 days ago AND First login greater than or equal to 7 days ago AND Last login less than 7 days ago
Please note: Due to the nature of how segments work, you may need to execute this action multiple times to make sure to really delete all players in the given segment.
Running this will connect to your PlayFab Advanced Analytics cluster and run some query's on it to give your a list with all players using a specific IP. Before you can run this query you need to setup your PlayFab to enable PlayFabBuddy to access the data.
-
Create a Azure Active Director Application Like: https://docs.microsoft.com/en-us/gaming/playfab/features/insights/connectivity/creating-aad-app-for-insights
-
Configure Client ID and Client Secret for PlayFab Buddy to use
-
Run the command
dotnet run -- players list <IP_ADDRESS>
Manages Matchmaking Queues
This will create a new simple matchmaking queue with a name and min / max number of players. Currently there are no additional rules supported.
dotnet run -- matchmaking create
You can apply predefined policies by PlayFabBuddy to your title.
This adds a new policy to your title, it makes sure to remove any conflicting policies that might be already in place. In the current iteration we are checking if the comment field in the policy as well in order to validate if a policy is already set. For now this is to make sure we are mainly managing policies created by PlayFabBuddy.
dotnet run -- policy add <NameOfPolicy>
Currently supported Policies:
- AllowCustomIdLogin
- DenyCustomIdLogin
These policies either block or allow login and creation of user accounts with customId.
This command has to option, if it's run without the remote parameter like:
dotnet run -- policy list
you will get a list of policies that PlayFabBuddy can manage for you.
If this command is used with the remote parameter like:
dotnet run -- policy list --remote
all policies that are currently assigned to your title are beeing fetched and printed to command line.