Infixo / CS2-RealEco

Real Economy - Cities Skylines II mod
4 stars 0 forks source link

Trade costs NaN issue #5

Closed Infixo closed 4 months ago

Infixo commented 4 months ago

Reported by kakalite.

[object Object] AssertionException: Assertion failure. Value was False Expected: True at UnityEngine.Assertions.Assert.Fail (System.String message, System.String userMessage) [0x00043] in :0 at UnityEngine.Assertions.Assert.IsTrue (System.Boolean condition, System.String message) [0x0000f] in :0 at UnityEngine.Assertions.Assert.IsTrue (System.Boolean condition) [0x00009] in :0 at Unity.Assertions.Assert.IsTrue (System.Boolean condition) [0x00004] in <42dd0aeaaef34ed8acb4b4fe5f093234>:0 at Game.Economy.EconomyUtils.SetTradeCost (Game.Economy.Resource resource, Game.Companies.TradeCost newcost, Unity.Entities.DynamicBuffer1[T] costs, System.Boolean keepLastTime, System.Single buyLerp, System.Single sellLerp) [0x0001e] in <feff44428bf3435d97abac1bad09fa9d>:0 at RealEco.Systems.ResourceBuyerSystem+BuyJob.Execute () [0x00208] in C:\Repos\CS2-Mods\CS2-RealEco\Systems\ResourceBuyerSystem.cs:191 at Unity.Jobs.IJobExtensions+JobStruct1[T].Execute (T& data, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) [0x00001] in :0 at (wrapper delegate-invoke) Unity.Jobs.IJobExtensions+JobStruct`1+ExecuteJobFunction[RealEco.Systems.ResourceBuyerSystem+BuyJob].invoke_void_T&_intptr_intptr_JobRanges&_int(RealEco.Systems.ResourceBuyerSystem/BuyJob&,intptr,intptr,Unity.Jobs.LowLevel.Unsafe.JobRanges&,int) Colossal.Logging.CustomLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

Infixo commented 4 months ago

Solved in 688514170f1979d2890fe83a27064b65d5067bf7.