Unity-Technologies / com.unity.services.samples.use-cases

The collection of samples in this repo use Unity Gaming Services in a Unity project to demonstrate live gaming operations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

K

Mid-D-Man opened this issue · comments

hello so ive been trying to use the samples here but for some reason the battle pass sample dosent work properly, dont get me wrong it works but everytime i try to claim a reward that i set up it claims the reward but then it destroys all the Seasonal Rewards Tier prfabs and when i quit the game and return they are still distroyed and it keeps giving me ..... the error below now i set it up the way the documentation said the only diffrence is the rewards and i only made two seasons
indexOutOfRangeException: Index was outside the bounds of the array.
Unity.Services.Samples.BattlePass.TierView.RefreshTierRewards (System.Boolean battlePassIsOwned) (at Assets/AllScripts/AllCloudRelatedScripts/Battle Pass/Scripts/TierView.cs:84)
Unity.Services.Samples.BattlePass.TierView.Refresh (Unity.Services.Samples.BattlePass.BattlePassSceneManager battlePassSceneManager, System.Int32 tierIndex, Unity.Services.Samples.BattlePass.TierState tierState, System.Boolean battlePassIsOwned) (at Assets/AllScripts/AllCloudRelatedScripts/Battle Pass/Scripts/TierView.cs:78)
Unity.Services.Samples.BattlePass.BattlePassView.Refresh (Unity.Services.Samples.BattlePass.BattlePassState battlePassState) (at Assets/AllScripts/AllCloudRelatedScripts/Battle Pass/Scripts/BattlePassView.cs:56)
Unity.Services.Samples.BattlePass.BattlePassSceneManager.GetBattlePassProgress () (at Assets/AllScripts/AllCloudRelatedScripts/Battle Pass/Scripts/BattlePassSceneManager.cs:144)
Unity.Services.Samples.BattlePass.BattlePassSceneManager.UpdateEconomyAndBattlePassProgress () (at Assets/AllScripts/AllCloudRelatedScripts/Battle Pass/Scripts/BattlePassSceneManager.cs:119)
UnityEngine.Debug:LogException(Exception)
Unity.Services.Samples.BattlePass.d__21:MoveNext() (at Assets/AllScripts/AllCloudRelatedScripts/Battle Pass/Scripts/BattlePassSceneManager.cs:127)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetException(Exception)
Unity.Services.Samples.BattlePass.d__22:MoveNext() (at Assets/AllScripts/AllCloudRelatedScripts/Battle Pass/Scripts/BattlePassSceneManager.cs:144)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:SetResult(GetStateResult) Unity.Services.Samples.BattlePass.<CallGetProgressEndpoint>d__17:MoveNext() (at Assets/AllScripts/AllCloudRelatedScripts/Battle Pass/Scripts/CloudCodeManager.cs:81) System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:SetResult(GetStateResult)
Unity.Services.CloudCode.d__61:MoveNext() (at Library/PackageCache/com.unity.services.cloudcode@2.1.2/Runtime/CloudCode.cs:46) System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:SetResult(Response1) Unity.Services.CloudCode.<GetRunScriptResponse>d__8:MoveNext() (at Library/PackageCache/com.unity.services.cloudcode@2.1.2/Runtime/CloudCode.cs:101) System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:SetResult(Response1) Unity.Services.CloudCode.<GetResponseAsync>d__12:MoveNext() (at Library/PackageCache/com.unity.services.cloudcode@2.1.2/Runtime/CloudCode.cs:177) System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:SetResult(Response1) Unity.Services.CloudCode.Internal.Apis.CloudCode.<RunScriptAsync>d__7:MoveNext() (at Library/PackageCache/com.unity.services.cloudcode@2.1.2/Runtime/com.unity.services.cloudcode.internal/Apis/CloudCodeApi.cs:103) System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:SetResult(HttpClientResponse)
Unity.Services.CloudCode.Internal.Http.d__1:MoveNext() (at Library/PackageCache/com.unity.services.cloudcode@2.1.2/Runtime/com.unity.services.cloudcode.internal/Http/HttpClient.cs:39)
System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:SetResult(HttpClientResponse) Unity.Services.CloudCode.Internal.Http.<CreateWebRequestAsync>d__3:MoveNext() (at Library/PackageCache/com.unity.services.cloudcode@2.1.2/Runtime/com.unity.services.cloudcode.internal/Http/HttpClient.cs:77) System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:SetResult(HttpClientResponse)
Unity.Services.CloudCode.Internal.Http.<b__0>d:MoveNext() (at Library/PackageCache/com.unity.services.cloudcode@2.1.2/Runtime/com.unity.services.cloudcode.internal/Http/HttpClient.cs:74)
System.Threading.Tasks.TaskCompletionSource`1:SetResult(HttpClientResponse)
Unity.Services.CloudCode.Internal.Http.<>c__DisplayClass0_0:b__0(AsyncOperation) (at Library/PackageCache/com.unity.services.cloudcode@2.1.2/Runtime/com.unity.services.cloudcode.internal/Http/UnityWebRequestHelpers.cs:34)
UnityEngine.AsyncOperation:InvokeCompletionEvent() (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/AsyncOperation.cs:21)