question

hapygames avatar image
hapygames asked

I can not upgrade to the latest PlayFab SDK

When I try to Upgrade to the latest PlayFab SDK (2.015.210315), I am getting this error..

How can I fix it?

I never changed anything in the PlayFab Scripts.

IndexOutOfRangeException: Index was outside the bounds of the array. PlayFab.PlayFabSettings.GetSharedSettingsObjectPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:62) PlayFab.PlayFabSettings.get_PlayFabSharedPrivate () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:35) PlayFab.PlayFabSettings+<>c.<.cctor>b__0_0 () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:40) PlayFab.PlayFabSettingsRedirect.get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabApiSettings.cs:73) PlayFab.PlayFabSettings.get_TitleId () (at Assets/PlayFabSDK/Shared/Public/PlayFabSettings.cs:88) System.Reflection.MonoProperty.StaticGetterAdapterFrame[R] (System.Reflection.MonoProperty+StaticGetter`1[R] getter, System.Object obj) (at <eae584ce26bc40229c1b1aa476bfa589>:0) System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) (at <eae584ce26bc40229c1b1aa476bfa589>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) (at <eae584ce26bc40229c1b1aa476bfa589>:0) PlayFab.PfEditor.PlayFabEditorDataService+PlayFab_SharedSettingsProxy.Get[T] (System.String name) (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:56) PlayFab.PfEditor.PlayFabEditorDataService+PlayFab_SharedSettingsProxy.get_TitleId () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Utils/PlayFabEditorDataService.cs:19) PlayFab.PfEditor.PlayFabEditorSDKTools.ShowSdkInstalledMenu () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:163) PlayFab.PfEditor.PlayFabEditorSDKTools.DrawSdkPanel () (at Assets/PlayFabEditorExtensions/Editor/Scripts/Panels/PlayFabEditorSDKTools.cs:42) PlayFab.PfEditor.PlayFabEditor.OnGuiInternal () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:125) PlayFab.PfEditor.PlayFabEditor.HideRepaintErrors (System.Action action) (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:177) PlayFab.PfEditor.PlayFabEditor.OnGUI () (at Assets/PlayFabEditorExtensions/Editor/PlayFabEditor.cs:104) System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <eae584ce26bc40229c1b1aa476bfa589>:0) Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation. System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <eae584ce26bc40229c1b1aa476bfa589>:0) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <eae584ce26bc40229c1b1aa476bfa589>:0) UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at <fc4e84dee5004858ad88e6706bb25889>:0) UnityEditor.HostView.Invoke (System.String methodName) (at <fc4e84dee5004858ad88e6706bb25889>:0) UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <fc4e84dee5004858ad88e6706bb25889>:0) UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <fc4e84dee5004858ad88e6706bb25889>:0) UnityEditor.DockArea.OldOnGUI () (at <fc4e84dee5004858ad88e6706bb25889>:0) UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <945577022a524653b365dec2d6094114>:0) UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <945577022a524653b365dec2d6094114>:0) UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <945577022a524653b365dec2d6094114>:0) UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Boolean straightY, System.Single pixelsPerPoint, System.Exception& immediateException) (at <945577022a524653b365dec2d6094114>:0) Rethrow as ImmediateModeException UnityEngine.UIElements.UIR.RenderChain.Render (UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection, UnityEngine.UIElements.PanelClearFlags clearFlags) (at <945577022a524653b365dec2d6094114>:0) UnityEngine.UIElements.UIRRepaintUpdater.DrawChain (UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection) (at <945577022a524653b365dec2d6094114>:0) UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <945577022a524653b365dec2d6094114>:0) UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <945577022a524653b365dec2d6094114>:0) UnityEngine.UIElements.Panel.UpdateForRepaint () (at <945577022a524653b365dec2d6094114>:0) UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <945577022a524653b365dec2d6094114>:0) UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <945577022a524653b365dec2d6094114>:0) UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <945577022a524653b365dec2d6094114>:0) UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <d7a7ba0654354637944bd8709c6f8668>:0)

sdks
10 |1200

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

Seth Du avatar image
Seth Du answered

Hi, @HapyGames, @Steve Lobdell, according to the feedback from the team, this issue has been fixed. Please upgrade to the latest 2.106.210406 Unity SDK. Thanks.

2 comments
10 |1200

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

hapygames avatar image hapygames commented ·

It worked! The like button worked! And that because the upgrade did! :D

0 Likes 0 ·
hapygames avatar image hapygames commented ·

Thanks to the whole PlayFab Team for your service! :) You guys make game development a whole lot easier!

0 Likes 0 ·
Steve Lobdell avatar image
Steve Lobdell answered

Me too, I'm new to playfab and couldn't update since day 1

10 |1200

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

Seth Du avatar image
Seth Du answered

Do you mean the Unity SDK 2.105.210315? Currently it does have some issues and we have informed the team to dig into it.

@HapyGames, @Steve Lobdell, compared with version 2.104, the only fixed issue is the "UpdatePolicy" API updates. If you are about to implement this API in your project, please let me know. Otherwise, it will be fine to continue to use 2.104.

1 comment
10 |1200

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

hapygames avatar image hapygames commented ·

I will not implement this API in my priject if it has issues because my project is broken enough already, in my opinion.

But thank you a lot for your help in my cases.

I really appreciate it! :)

0 Likes 0 ·
Mohsen Jamali avatar image
Mohsen Jamali answered

I'm having the same issue. updating the sdk manually with github didn't help. Problem still persists

1 comment
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.