What title says if i close my game, and open it again the initial deposit is sent again.
So you can stack a lot of currency just by closing and opening the game multiple times. Any idea whats happening?
What title says if i close my game, and open it again the initial deposit is sent again.
So you can stack a lot of currency just by closing and opening the game multiple times. Any idea whats happening?
The initial deposit you mentioned is in the virtual currency edit page or did you implement it yourself? And is the problem with only one account? If so, can you provide your title id and the player account for us to research. Otherwise, can you provide the game start code snippet and the initial deposit function code snippet if it is your own implementation of the initial deposit logic for us to research.
- The initial deposit is from the virtual currency edit page.
- No, The problem is not restricted to one account only
- Title ID is: 8EF74
I've 2 codes for the initialization (it happens in both)
This one i use for loggin in platforms like unity (I use it mostly for internal testing)
var request = new LoginWithCustomIDRequest { CreateAccount = true, CustomId = SystemInfo.deviceUniqueIdentifier }; PlayFabClientAPI .LoginWithCustomID(request, OnLogginSuccess, OnError);
I will add a part 2 since i have char limit
Part 2:
This code is the one i use to sign in with play games. If the user sign in previously with that device use the LoginWithAndroidDeviceIDRequest which looks similar to the code from the part 1
public void SignInWithPlayGames() { PlayGamesPlatform.Instance.Authenticate((success) => { if (success == SignInStatus.Success) { string authCode; PlayGamesPlatform.Instance.RequestServerSideAccess(true, code => { authCode = code; var request = new LoginWithGooglePlayGamesServicesRequest { TitleId = PlayFabSettings.TitleId, ServerAuthCode = authCode, CreateAccount = true, InfoRequestParameters = new GetPlayerCombinedInfoRequestParams { GetPlayerProfile = true } }; PlayFabClientAPI.LoginWithGooglePlayGamesServices(request, OnFirstLoginAndroid, OnError); }); } }); }
Your login code appears to be correct. You can try to change the value of the initial deposit to confirm whether the change in the VC balance is caused by the initial deposit. And because the amount of the player's virtual currency balance changes, there will be corresponding events. You can view the "Player virtual currency balance changed" event on the PlayStream Monitor page or the Data->Data Explorer page to see if any other logic (like Rules or CloudScript) changes the VC.
19 People are following this question.