From 04774df092e2ed093427255eba51e439e5a88d1b Mon Sep 17 00:00:00 2001 From: Byako Date: Tue, 17 Sep 2024 20:45:57 +0200 Subject: [PATCH] Update spawn detection in SceneList, because some maps were not considered as playable --- Alliance.Client/_Module/SubModule.xml | 2 +- Alliance.Common/CommonProps.props | 2 +- Alliance.Common/Utilities/SceneList.cs | 2 +- Alliance.Editor/_Module/SubModule.xml | 2 +- Alliance.Server/_Module/SubModule.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Alliance.Client/_Module/SubModule.xml b/Alliance.Client/_Module/SubModule.xml index 0bf5319b..726ae942 100644 --- a/Alliance.Client/_Module/SubModule.xml +++ b/Alliance.Client/_Module/SubModule.xml @@ -2,7 +2,7 @@ - + diff --git a/Alliance.Common/CommonProps.props b/Alliance.Common/CommonProps.props index 1215a337..970d7b6a 100644 --- a/Alliance.Common/CommonProps.props +++ b/Alliance.Common/CommonProps.props @@ -1,5 +1,5 @@ - 0.1.8.0 + 0.1.8.2 diff --git a/Alliance.Common/Utilities/SceneList.cs b/Alliance.Common/Utilities/SceneList.cs index 93301638..f4f4fab1 100644 --- a/Alliance.Common/Utilities/SceneList.cs +++ b/Alliance.Common/Utilities/SceneList.cs @@ -96,7 +96,7 @@ await Task.Run(() => Name = sceneNode.Attributes["name"].Value, HasSpawnForAttacker = xmlDoc.SelectNodes("//game_entity[.//tag[@name='attacker'] and @name='mp_spawnpoint' or .//tag[@name='attacker'] and .//tag[@name='spawnpoint'] or @prefab='mp_spawnpoint_attacker']").Count > 0, HasSpawnForDefender = xmlDoc.SelectNodes("//game_entity[.//tag[@name='defender'] and @name='mp_spawnpoint' or .//tag[@name='defender'] and .//tag[@name='spawnpoint'] or @prefab='mp_spawnpoint_defender' or @prefab='skirmish_start_spawn']").Count > 0, - HasGenericSpawn = xmlDoc.SelectNodes("//game_entity[@name='mp_spawnpoint' or @prefab='mp_spawnpoint'] | //tag[@name='spawnpoint']").Count > 0, + HasGenericSpawn = xmlDoc.SelectNodes("//game_entity[@name='mp_spawnpoint' or @name='mp_spawnpoint_attacker' or @name='mp_spawnpoint_defender' or @prefab='mp_spawnpoint' or @prefab='mp_spawnpoint_attacker' or @prefab='mp_spawnpoint_defender'] | //tag[@name='spawnpoint']").Count > 0, HasSpawnVisual = xmlDoc.SelectNodes("//game_entity[@name='spawn_visual'] | //game_entity[@prefab='spawn_visual']").Count > 0, HasNavmesh = File.Exists(Path.Combine(dir, "navmesh.bin")), HasSAEPos = xmlDoc.SelectNodes($"//game_entity[@prefab='{SaeCommonConstants.FDC_QUICK_PLACEMENT_POS_PREFAB_NAME}']").Count > 0 diff --git a/Alliance.Editor/_Module/SubModule.xml b/Alliance.Editor/_Module/SubModule.xml index d658bb78..6743690e 100644 --- a/Alliance.Editor/_Module/SubModule.xml +++ b/Alliance.Editor/_Module/SubModule.xml @@ -2,7 +2,7 @@ - + diff --git a/Alliance.Server/_Module/SubModule.xml b/Alliance.Server/_Module/SubModule.xml index 7fcacee4..44b64a0b 100644 --- a/Alliance.Server/_Module/SubModule.xml +++ b/Alliance.Server/_Module/SubModule.xml @@ -2,7 +2,7 @@ - +