From 2f3c213c972d955eee689ea978a0da9561df61e5 Mon Sep 17 00:00:00 2001 From: Shannon Greenwood Date: Sun, 29 Aug 2021 12:26:45 -0700 Subject: [PATCH 1/2] remove out of date package registry upgrade entities package to avoid crash --- StressTesting/Packages/manifest.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/StressTesting/Packages/manifest.json b/StressTesting/Packages/manifest.json index 476471d..79bea66 100755 --- a/StressTesting/Packages/manifest.json +++ b/StressTesting/Packages/manifest.json @@ -1,6 +1,6 @@ { "dependencies": { - "com.unity.entities": "0.0.12-preview.15", + "com.unity.entities": "0.0.12-preview.21", "com.unity.package-manager-ui": "1.9.11", "com.unity.modules.ai": "1.0.0", "com.unity.modules.animation": "1.0.0", @@ -32,6 +32,5 @@ "com.unity.modules.vr": "1.0.0", "com.unity.modules.wind": "1.0.0", "com.unity.modules.xr": "1.0.0" - }, - "registry": "https://staging-packages.unity.com" + } } From 43bbcdb850a2239b1ada0a86bd631ff3612d017e Mon Sep 17 00:00:00 2001 From: Shannon Greenwood Date: Sun, 29 Aug 2021 12:54:23 -0700 Subject: [PATCH 2/2] fix so that path information is propagated through the system and units move again --- StressTesting/Assets/Scripts/Navigation/PathQueryQueueECS.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/StressTesting/Assets/Scripts/Navigation/PathQueryQueueECS.cs b/StressTesting/Assets/Scripts/Navigation/PathQueryQueueECS.cs index b634988..31f66f4 100755 --- a/StressTesting/Assets/Scripts/Navigation/PathQueryQueueECS.cs +++ b/StressTesting/Assets/Scripts/Navigation/PathQueryQueueECS.cs @@ -138,14 +138,14 @@ public void CopyResultsTo(ref BufferArray agentPaths, ref Comp var resultNodes = new NativeSlice(m_ResultNodes, resultPathInfo.begin, resultPathInfo.size); var agentPathBuffer = agentPaths[index]; - var pathLength = math.min(resultNodes.Length, agentPathBuffer.Length); + var pathLength = resultNodes.Length; for (var j = 0; j < pathLength; j++) { var id = new PolygonIdElement { Value = resultNodes[j] }; if (j < agentPathBuffer.Length) agentPathBuffer[j] = id; else - agentPathBuffer.Add(id); + agentPathBuffer.Add(id); //agent path buffer will be set to the largest size ever used... does it make sense to resize to what we're currently using? } var navigator = agentNavigators[index];