From d7c70af748fd073f10db6b95c568ddb21da99cfd Mon Sep 17 00:00:00 2001 From: Andras Belicza Date: Wed, 6 Nov 2024 14:43:42 +0100 Subject: [PATCH] Add more maps to random UMS AI team detection --- cmd/screp/screp.go | 2 +- rep/replay.go | 6 ++++-- repparser/repparser.go | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/screp/screp.go b/cmd/screp/screp.go index 2341a80..bd38b9d 100644 --- a/cmd/screp/screp.go +++ b/cmd/screp/screp.go @@ -24,7 +24,7 @@ import ( const ( appName = "screp" - appVersion = "v1.12.3" + appVersion = "v1.12.4" appAuthor = "Andras Belicza" appHome = "https://github.com/icza/screp" ) diff --git a/rep/replay.go b/rep/replay.go index f0ad213..9bc5bee 100644 --- a/rep/replay.go +++ b/rep/replay.go @@ -158,8 +158,10 @@ func (r *Replay) Compute() { mapName = strings.ToLower(stringsx.Clean(mapName)) // "[ai]" maps are special, we can do better than in general: switch { - case mapName == " hunters kespa soulclan ai" || mapName == ":da hunters ai" || - mapName == "(xb2) big game hunters" || strings.HasPrefix(mapName, "王牌猎人") || + case mapName == " hunters kespa soulclan ai" || mapName == ":da hunters ai" || mapName == "(xb2) big game hunters" || + mapName == "big game hunters" || // Multiple BGH versions have random team assignment, always try if UMS + strings.HasPrefix(mapName, "王牌猎人") || strings.HasPrefix(mapName, "j_big game hunters") || + strings.Contains(mapName, "随机分组") || // "random grouping" strings.Contains(mapName, "[ai]") || strings.Contains(mapName, "ai hunters") || strings.Contains(mapName, "bgh random teams"): r.detectObservers(pidBuilds, obsProfileUMSAI) r.computeUMSTeamsAI() diff --git a/repparser/repparser.go b/repparser/repparser.go index dcdae07..4d9bdb6 100644 --- a/repparser/repparser.go +++ b/repparser/repparser.go @@ -60,7 +60,7 @@ import ( const ( // Version is a Semver2 compatible version of the parser. - Version = "v1.12.3" + Version = "v1.12.4" ) var (