Hi, in Steamworks dashboard I have generated a WebAPI Key for default "Everyone" group, imported PlayFab SDK and Steamworks.NET plugins into my Unity project, and set up Steam under "Add-ons" by providing both the Steam App ID and Steam WebAPI key.
When I trigger "LoginWithSteam" function it triggers the resultCallback so everything works as expected. However, since I cannot get Steam overlay to show up, even though I get resultCallback success when I trigger both StartPurchase and PayForPurchase I decided to created an empty Unity project to test Steam IAPs and see if it's gonna work if I start from scratch.
So in an empty Unity project and I have installed SDKs, and used the same code like before but now I cannot login to Steam as I keep getting: "Failed PlayFabClientAPI.LoginWithSteam: /Client/LoginWithSteam: Steam WebAPI error: 102 (Ticket for other app)".
This is the code I use:
//login with steam PlayFabClientAPI.LoginWithSteam(new LoginWithSteamRequest { CreateAccount = true, SteamTicket = GetSteamAuthTicket() }, OnComplete, OnFailed); //get auth ticket public string GetSteamAuthTicket() { byte[] ticketBlob = new byte[1024]; uint ticketSize; // Retrieve ticket; hTicket should be a field in the class so you can use it to cancel the ticket later // When you pass an object, the object can be modified by the callee. This function modifies the byte array you've passed to it. HAuthTicket hTicket = SteamUser.GetAuthSessionTicket(ticketBlob, ticketBlob.Length, out ticketSize); // Resize the buffer to actual length Array.Resize(ref ticketBlob, (int)ticketSize); // Convert bytes to string StringBuilder sb = new StringBuilder(); foreach (byte b in ticketBlob) { sb.AppendFormat("{0:x2}", b); } return sb.ToString(); }
I have tried creating a new group on Steamworks and generating a new WebAPI key, but LoginWithSteam throws the same error. I have also tried creating a new PlayFab account and getting a new title id but still no luck. What am I doing wrong here? Thanks!