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.
Other
443 stars 103 forks source link

K #7

Closed Mid-D-Man closed 1 year ago

Mid-D-Man commented 1 year ago

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.d21:MoveNext() (at Assets/AllScripts/AllCloudRelatedScripts/Battle Pass/Scripts/BattlePassSceneManager.cs:127) System.Runtime.CompilerServices.AsyncTaskMethodBuilder:SetException(Exception) Unity.Services.Samples.BattlePass.d22: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.d61:MoveNext() (at Library/PackageCache/com.unity.services.cloudcode@2.1.2/Runtime/CloudCode.cs:46) System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:SetResult(Response`1) Unity.Services.CloudCode.d8:MoveNext() (at Library/PackageCache/com.unity.services.cloudcode@2.1.2/Runtime/CloudCode.cs:101) System.Runtime.CompilerServices.AsyncTaskMethodBuilder1:SetResult(Response1) Unity.Services.CloudCode.d12: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.d7: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.<MakeRequestAsync>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.d3:MoveNext() (at Library/PackageCache/com.unity.services.cloudcode@2.1.2/Runtime/com.unity.services.cloudcode.internal/Http/HttpClient.cs:77) System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:SetResult(HttpClientResponse) Unity.Services.CloudCode.Internal.Http.<b0>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)