From dbb77d64508e05562bd16fbe6113fae7c6a835cc Mon Sep 17 00:00:00 2001 From: lL1l1 <82986251+lL1l1@users.noreply.github.com> Date: Wed, 11 Dec 2024 19:25:53 -0800 Subject: [PATCH 1/5] Add a space between division and subdivision in image filenames --- textures/divisions/{bronzeI.png => bronze I.png} | Bin textures/divisions/{bronzeII.png => bronze II.png} | Bin .../divisions/{bronzeIII.png => bronze III.png} | Bin .../{bronzeIII_medium.png => bronze III_medium.png} | Bin .../{bronzeII_medium.png => bronze II_medium.png} | Bin textures/divisions/{bronzeIV.png => bronze IV.png} | Bin .../{bronzeIV_medium.png => bronze IV_medium.png} | Bin .../{bronzeI_medium.png => bronze I_medium.png} | Bin textures/divisions/{bronzeV.png => bronze V.png} | Bin .../{bronzeV_medium.png => bronze V_medium.png} | Bin textures/divisions/{diamondI.png => diamond I.png} | Bin .../divisions/{diamondII.png => diamond II.png} | Bin .../divisions/{diamondIII.png => diamond III.png} | Bin ...diamondIII_medium.png => diamond III_medium.png} | Bin .../{diamondII_medium.png => diamond II_medium.png} | Bin .../divisions/{diamondIV.png => diamond IV.png} | Bin .../{diamondIV_medium.png => diamond IV_medium.png} | Bin .../{diamondI_medium.png => diamond I_medium.png} | Bin textures/divisions/{diamondV.png => diamond V.png} | Bin .../{diamondV_medium.png => diamond V_medium.png} | Bin textures/divisions/{goldI.png => gold I.png} | Bin textures/divisions/{goldII.png => gold II.png} | Bin textures/divisions/{goldIII.png => gold III.png} | Bin .../{goldIII_medium.png => gold III_medium.png} | Bin .../{goldII_medium.png => gold II_medium.png} | Bin textures/divisions/{goldIV.png => gold IV.png} | Bin .../{goldIV_medium.png => gold IV_medium.png} | Bin .../{goldI_medium.png => gold I_medium.png} | Bin textures/divisions/{goldV.png => gold V.png} | Bin .../{goldV_medium.png => gold V_medium.png} | Bin textures/divisions/{masterI.png => master I.png} | Bin textures/divisions/{masterII.png => master II.png} | Bin .../divisions/{masterIII.png => master III.png} | Bin .../{masterIII_medium.png => master III_medium.png} | Bin .../{masterII_medium.png => master II_medium.png} | Bin textures/divisions/{masterIV.png => master IV.png} | Bin .../{masterIV_medium.png => master IV_medium.png} | Bin .../{masterI_medium.png => master I_medium.png} | Bin textures/divisions/{masterV.png => master V.png} | Bin .../{masterV_medium.png => master V_medium.png} | Bin textures/divisions/{silverI.png => silver I.png} | Bin textures/divisions/{silverII.png => silver II.png} | Bin .../divisions/{silverIII.png => silver III.png} | Bin .../{silverIII_medium.png => silver III_medium.png} | Bin .../{silverII_medium.png => silver II_medium.png} | Bin textures/divisions/{silverIV.png => silver IV.png} | Bin .../{silverIV_medium.png => silver IV_medium.png} | Bin .../{silverI_medium.png => silver I_medium.png} | Bin textures/divisions/{silverV.png => silver V.png} | Bin .../{silverV_medium.png => silver V_medium.png} | Bin 50 files changed, 0 insertions(+), 0 deletions(-) rename textures/divisions/{bronzeI.png => bronze I.png} (100%) rename textures/divisions/{bronzeII.png => bronze II.png} (100%) rename textures/divisions/{bronzeIII.png => bronze III.png} (100%) rename textures/divisions/{bronzeIII_medium.png => bronze III_medium.png} (100%) rename textures/divisions/{bronzeII_medium.png => bronze II_medium.png} (100%) rename textures/divisions/{bronzeIV.png => bronze IV.png} (100%) rename textures/divisions/{bronzeIV_medium.png => bronze IV_medium.png} (100%) rename textures/divisions/{bronzeI_medium.png => bronze I_medium.png} (100%) rename textures/divisions/{bronzeV.png => bronze V.png} (100%) rename textures/divisions/{bronzeV_medium.png => bronze V_medium.png} (100%) rename textures/divisions/{diamondI.png => diamond I.png} (100%) rename textures/divisions/{diamondII.png => diamond II.png} (100%) rename textures/divisions/{diamondIII.png => diamond III.png} (100%) rename textures/divisions/{diamondIII_medium.png => diamond III_medium.png} (100%) rename textures/divisions/{diamondII_medium.png => diamond II_medium.png} (100%) rename textures/divisions/{diamondIV.png => diamond IV.png} (100%) rename textures/divisions/{diamondIV_medium.png => diamond IV_medium.png} (100%) rename textures/divisions/{diamondI_medium.png => diamond I_medium.png} (100%) rename textures/divisions/{diamondV.png => diamond V.png} (100%) rename textures/divisions/{diamondV_medium.png => diamond V_medium.png} (100%) rename textures/divisions/{goldI.png => gold I.png} (100%) rename textures/divisions/{goldII.png => gold II.png} (100%) rename textures/divisions/{goldIII.png => gold III.png} (100%) rename textures/divisions/{goldIII_medium.png => gold III_medium.png} (100%) rename textures/divisions/{goldII_medium.png => gold II_medium.png} (100%) rename textures/divisions/{goldIV.png => gold IV.png} (100%) rename textures/divisions/{goldIV_medium.png => gold IV_medium.png} (100%) rename textures/divisions/{goldI_medium.png => gold I_medium.png} (100%) rename textures/divisions/{goldV.png => gold V.png} (100%) rename textures/divisions/{goldV_medium.png => gold V_medium.png} (100%) rename textures/divisions/{masterI.png => master I.png} (100%) rename textures/divisions/{masterII.png => master II.png} (100%) rename textures/divisions/{masterIII.png => master III.png} (100%) rename textures/divisions/{masterIII_medium.png => master III_medium.png} (100%) rename textures/divisions/{masterII_medium.png => master II_medium.png} (100%) rename textures/divisions/{masterIV.png => master IV.png} (100%) rename textures/divisions/{masterIV_medium.png => master IV_medium.png} (100%) rename textures/divisions/{masterI_medium.png => master I_medium.png} (100%) rename textures/divisions/{masterV.png => master V.png} (100%) rename textures/divisions/{masterV_medium.png => master V_medium.png} (100%) rename textures/divisions/{silverI.png => silver I.png} (100%) rename textures/divisions/{silverII.png => silver II.png} (100%) rename textures/divisions/{silverIII.png => silver III.png} (100%) rename textures/divisions/{silverIII_medium.png => silver III_medium.png} (100%) rename textures/divisions/{silverII_medium.png => silver II_medium.png} (100%) rename textures/divisions/{silverIV.png => silver IV.png} (100%) rename textures/divisions/{silverIV_medium.png => silver IV_medium.png} (100%) rename textures/divisions/{silverI_medium.png => silver I_medium.png} (100%) rename textures/divisions/{silverV.png => silver V.png} (100%) rename textures/divisions/{silverV_medium.png => silver V_medium.png} (100%) diff --git a/textures/divisions/bronzeI.png b/textures/divisions/bronze I.png similarity index 100% rename from textures/divisions/bronzeI.png rename to textures/divisions/bronze I.png diff --git a/textures/divisions/bronzeII.png b/textures/divisions/bronze II.png similarity index 100% rename from textures/divisions/bronzeII.png rename to textures/divisions/bronze II.png diff --git a/textures/divisions/bronzeIII.png b/textures/divisions/bronze III.png similarity index 100% rename from textures/divisions/bronzeIII.png rename to textures/divisions/bronze III.png diff --git a/textures/divisions/bronzeIII_medium.png b/textures/divisions/bronze III_medium.png similarity index 100% rename from textures/divisions/bronzeIII_medium.png rename to textures/divisions/bronze III_medium.png diff --git a/textures/divisions/bronzeII_medium.png b/textures/divisions/bronze II_medium.png similarity index 100% rename from textures/divisions/bronzeII_medium.png rename to textures/divisions/bronze II_medium.png diff --git a/textures/divisions/bronzeIV.png b/textures/divisions/bronze IV.png similarity index 100% rename from textures/divisions/bronzeIV.png rename to textures/divisions/bronze IV.png diff --git a/textures/divisions/bronzeIV_medium.png b/textures/divisions/bronze IV_medium.png similarity index 100% rename from textures/divisions/bronzeIV_medium.png rename to textures/divisions/bronze IV_medium.png diff --git a/textures/divisions/bronzeI_medium.png b/textures/divisions/bronze I_medium.png similarity index 100% rename from textures/divisions/bronzeI_medium.png rename to textures/divisions/bronze I_medium.png diff --git a/textures/divisions/bronzeV.png b/textures/divisions/bronze V.png similarity index 100% rename from textures/divisions/bronzeV.png rename to textures/divisions/bronze V.png diff --git a/textures/divisions/bronzeV_medium.png b/textures/divisions/bronze V_medium.png similarity index 100% rename from textures/divisions/bronzeV_medium.png rename to textures/divisions/bronze V_medium.png diff --git a/textures/divisions/diamondI.png b/textures/divisions/diamond I.png similarity index 100% rename from textures/divisions/diamondI.png rename to textures/divisions/diamond I.png diff --git a/textures/divisions/diamondII.png b/textures/divisions/diamond II.png similarity index 100% rename from textures/divisions/diamondII.png rename to textures/divisions/diamond II.png diff --git a/textures/divisions/diamondIII.png b/textures/divisions/diamond III.png similarity index 100% rename from textures/divisions/diamondIII.png rename to textures/divisions/diamond III.png diff --git a/textures/divisions/diamondIII_medium.png b/textures/divisions/diamond III_medium.png similarity index 100% rename from textures/divisions/diamondIII_medium.png rename to textures/divisions/diamond III_medium.png diff --git a/textures/divisions/diamondII_medium.png b/textures/divisions/diamond II_medium.png similarity index 100% rename from textures/divisions/diamondII_medium.png rename to textures/divisions/diamond II_medium.png diff --git a/textures/divisions/diamondIV.png b/textures/divisions/diamond IV.png similarity index 100% rename from textures/divisions/diamondIV.png rename to textures/divisions/diamond IV.png diff --git a/textures/divisions/diamondIV_medium.png b/textures/divisions/diamond IV_medium.png similarity index 100% rename from textures/divisions/diamondIV_medium.png rename to textures/divisions/diamond IV_medium.png diff --git a/textures/divisions/diamondI_medium.png b/textures/divisions/diamond I_medium.png similarity index 100% rename from textures/divisions/diamondI_medium.png rename to textures/divisions/diamond I_medium.png diff --git a/textures/divisions/diamondV.png b/textures/divisions/diamond V.png similarity index 100% rename from textures/divisions/diamondV.png rename to textures/divisions/diamond V.png diff --git a/textures/divisions/diamondV_medium.png b/textures/divisions/diamond V_medium.png similarity index 100% rename from textures/divisions/diamondV_medium.png rename to textures/divisions/diamond V_medium.png diff --git a/textures/divisions/goldI.png b/textures/divisions/gold I.png similarity index 100% rename from textures/divisions/goldI.png rename to textures/divisions/gold I.png diff --git a/textures/divisions/goldII.png b/textures/divisions/gold II.png similarity index 100% rename from textures/divisions/goldII.png rename to textures/divisions/gold II.png diff --git a/textures/divisions/goldIII.png b/textures/divisions/gold III.png similarity index 100% rename from textures/divisions/goldIII.png rename to textures/divisions/gold III.png diff --git a/textures/divisions/goldIII_medium.png b/textures/divisions/gold III_medium.png similarity index 100% rename from textures/divisions/goldIII_medium.png rename to textures/divisions/gold III_medium.png diff --git a/textures/divisions/goldII_medium.png b/textures/divisions/gold II_medium.png similarity index 100% rename from textures/divisions/goldII_medium.png rename to textures/divisions/gold II_medium.png diff --git a/textures/divisions/goldIV.png b/textures/divisions/gold IV.png similarity index 100% rename from textures/divisions/goldIV.png rename to textures/divisions/gold IV.png diff --git a/textures/divisions/goldIV_medium.png b/textures/divisions/gold IV_medium.png similarity index 100% rename from textures/divisions/goldIV_medium.png rename to textures/divisions/gold IV_medium.png diff --git a/textures/divisions/goldI_medium.png b/textures/divisions/gold I_medium.png similarity index 100% rename from textures/divisions/goldI_medium.png rename to textures/divisions/gold I_medium.png diff --git a/textures/divisions/goldV.png b/textures/divisions/gold V.png similarity index 100% rename from textures/divisions/goldV.png rename to textures/divisions/gold V.png diff --git a/textures/divisions/goldV_medium.png b/textures/divisions/gold V_medium.png similarity index 100% rename from textures/divisions/goldV_medium.png rename to textures/divisions/gold V_medium.png diff --git a/textures/divisions/masterI.png b/textures/divisions/master I.png similarity index 100% rename from textures/divisions/masterI.png rename to textures/divisions/master I.png diff --git a/textures/divisions/masterII.png b/textures/divisions/master II.png similarity index 100% rename from textures/divisions/masterII.png rename to textures/divisions/master II.png diff --git a/textures/divisions/masterIII.png b/textures/divisions/master III.png similarity index 100% rename from textures/divisions/masterIII.png rename to textures/divisions/master III.png diff --git a/textures/divisions/masterIII_medium.png b/textures/divisions/master III_medium.png similarity index 100% rename from textures/divisions/masterIII_medium.png rename to textures/divisions/master III_medium.png diff --git a/textures/divisions/masterII_medium.png b/textures/divisions/master II_medium.png similarity index 100% rename from textures/divisions/masterII_medium.png rename to textures/divisions/master II_medium.png diff --git a/textures/divisions/masterIV.png b/textures/divisions/master IV.png similarity index 100% rename from textures/divisions/masterIV.png rename to textures/divisions/master IV.png diff --git a/textures/divisions/masterIV_medium.png b/textures/divisions/master IV_medium.png similarity index 100% rename from textures/divisions/masterIV_medium.png rename to textures/divisions/master IV_medium.png diff --git a/textures/divisions/masterI_medium.png b/textures/divisions/master I_medium.png similarity index 100% rename from textures/divisions/masterI_medium.png rename to textures/divisions/master I_medium.png diff --git a/textures/divisions/masterV.png b/textures/divisions/master V.png similarity index 100% rename from textures/divisions/masterV.png rename to textures/divisions/master V.png diff --git a/textures/divisions/masterV_medium.png b/textures/divisions/master V_medium.png similarity index 100% rename from textures/divisions/masterV_medium.png rename to textures/divisions/master V_medium.png diff --git a/textures/divisions/silverI.png b/textures/divisions/silver I.png similarity index 100% rename from textures/divisions/silverI.png rename to textures/divisions/silver I.png diff --git a/textures/divisions/silverII.png b/textures/divisions/silver II.png similarity index 100% rename from textures/divisions/silverII.png rename to textures/divisions/silver II.png diff --git a/textures/divisions/silverIII.png b/textures/divisions/silver III.png similarity index 100% rename from textures/divisions/silverIII.png rename to textures/divisions/silver III.png diff --git a/textures/divisions/silverIII_medium.png b/textures/divisions/silver III_medium.png similarity index 100% rename from textures/divisions/silverIII_medium.png rename to textures/divisions/silver III_medium.png diff --git a/textures/divisions/silverII_medium.png b/textures/divisions/silver II_medium.png similarity index 100% rename from textures/divisions/silverII_medium.png rename to textures/divisions/silver II_medium.png diff --git a/textures/divisions/silverIV.png b/textures/divisions/silver IV.png similarity index 100% rename from textures/divisions/silverIV.png rename to textures/divisions/silver IV.png diff --git a/textures/divisions/silverIV_medium.png b/textures/divisions/silver IV_medium.png similarity index 100% rename from textures/divisions/silverIV_medium.png rename to textures/divisions/silver IV_medium.png diff --git a/textures/divisions/silverI_medium.png b/textures/divisions/silver I_medium.png similarity index 100% rename from textures/divisions/silverI_medium.png rename to textures/divisions/silver I_medium.png diff --git a/textures/divisions/silverV.png b/textures/divisions/silver V.png similarity index 100% rename from textures/divisions/silverV.png rename to textures/divisions/silver V.png diff --git a/textures/divisions/silverV_medium.png b/textures/divisions/silver V_medium.png similarity index 100% rename from textures/divisions/silverV_medium.png rename to textures/divisions/silver V_medium.png From d9f2fa56f43ed7170759429799465ff0e6ee9cca Mon Sep 17 00:00:00 2001 From: lL1l1 <82986251+lL1l1@users.noreply.github.com> Date: Wed, 11 Dec 2024 19:45:08 -0800 Subject: [PATCH 2/5] Fix `/division` being an invalid cmdline arg --- lua/ui/lobby/autolobby/components/AutolobbyArguments.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/ui/lobby/autolobby/components/AutolobbyArguments.lua b/lua/ui/lobby/autolobby/components/AutolobbyArguments.lua index c17f4fa4bd..19aff423ca 100644 --- a/lua/ui/lobby/autolobby/components/AutolobbyArguments.lua +++ b/lua/ui/lobby/autolobby/components/AutolobbyArguments.lua @@ -48,7 +48,7 @@ AutolobbyArgumentsComponent = ClassSimple { ["/mean"] = true, -- related to divisions - ["division"] = true, + ["/division"] = true, ["/subdivision"] = true, -- related to game settings From 6dea6ef004559ad54094f46e50c131d55b182e5e Mon Sep 17 00:00:00 2001 From: lL1l1 <82986251+lL1l1@users.noreply.github.com> Date: Wed, 11 Dec 2024 20:23:56 -0800 Subject: [PATCH 3/5] Assign divisions correctly in launch script Roman numerals for subdivs no subdiv for unlisted/grandmaster remove fake HostDivision --- scripts/LaunchFAInstances.ps1 | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/scripts/LaunchFAInstances.ps1 b/scripts/LaunchFAInstances.ps1 index 123faab0e1..3fabbda68e 100644 --- a/scripts/LaunchFAInstances.ps1 +++ b/scripts/LaunchFAInstances.ps1 @@ -25,16 +25,18 @@ if (Test-Path $debuggerExecutable) { } # Command-line arguments common for all instances -$baseArguments = '/init "init_dev.lua" /EnableDiskWatch /nomovie /RunWithTheWind /gameoptions CheatsEnabled:true GameSpeed:adjustable ' +$baseArguments = '/init "init_dev.lua" /EnableDiskWatch /nomovie /RunWithTheWind /gameoptions CheatsEnabled:true GameSpeed:adjustable' # Game-specific settings $hostProtocol = "udp" $hostPlayerName = "HostPlayer_1" $gameName = "MyGame" -# Array of factions to choose from +# Array of player data to choose from $factions = @("UEF", "Seraphim", "Cybran", "Aeon") $clans = @("Yps", "Nom", "Cly", "Mad", "Gol", "Kur", "Row", "Jip", "Bal", "She") +$divisions = @("bronze", "silver", "gold", "diamond", "master", "grandmaster", "unlisted") +$subdivisions = @("I", "II", "III", "IV", "V") # Get the screen resolution (for placing and resizing the windows) Add-Type -AssemblyName System.Windows.Forms @@ -84,6 +86,15 @@ function Get-TeamArgument { return "/team $((($instanceNumber % $teams) + 1 + 1))" } +function Get-DivisionArgText { + $division = $($divisions | Get-Random) + $argText = "/division $division" + if ($division -ne "unlisted" -and $division -ne "grandmaster") { + $argText += " /subdivision $($subdivisions | Get-Random)" + } + return $argText +} + # Prepare arguments and launch instances if ($players -eq 1) { $logFile = "dev.log" @@ -92,7 +103,9 @@ if ($players -eq 1) { $hostLogFile = "host_dev_1.log" $hostFaction = $factions | Get-Random $hostTeamArgument = Get-TeamArgument -instanceNumber 0 - $hostArguments = "/log $hostLogFile /showlog /hostgame $hostProtocol $port $hostPlayerName $gameName $map /startspot 1 /players $players /$hostFaction $hostTeamArgument $baseArguments /division HostDivision /subdivision 1 /clan $($clans | Get-Random)" + + $divisionArgText = Get-DivisionArgText + $hostArguments = "/log $hostLogFile /showlog /hostgame $hostProtocol $port $hostPlayerName $gameName $map /startspot 1 /players $players /$hostFaction $hostTeamArgument $baseArguments $divisionArgText /clan $($clans | Get-Random)" # Launch host game instance Launch-GameInstance -instanceNumber 1 -xPos 0 -yPos 0 -arguments $hostArguments @@ -108,7 +121,8 @@ if ($players -eq 1) { $clientPlayerName = "ClientPlayer_$($i + 1)" $clientFaction = $factions | Get-Random $clientTeamArgument = Get-TeamArgument -instanceNumber $i - $clientArguments = "/log $clientLogFile /joingame $hostProtocol localhost:$port $clientPlayerName /startspot $($i + 1) /players $players /$clientFaction $clientTeamArgument $baseArguments /division Diamond /subdivision $($i + 1) /clan $($clans | Get-Random)" + $divisionArgText = Get-DivisionArgText + $clientArguments = "/log $clientLogFile /joingame $hostProtocol localhost:$port $clientPlayerName /startspot $($i + 1) /players $players /$clientFaction $clientTeamArgument $baseArguments $divisionArgText /clan $($clans | Get-Random)" Launch-GameInstance -instanceNumber ($i + 1) -xPos $xPos -yPos $yPos -arguments $clientArguments } From 8eba8d243122c4b746a85db0bcf7df3bb50b7b7a Mon Sep 17 00:00:00 2001 From: lL1l1 <82986251+lL1l1@users.noreply.github.com> Date: Wed, 11 Dec 2024 20:34:59 -0800 Subject: [PATCH 4/5] Annotate divisions/subdivisions --- .../lobby/autolobby/AutolobbyController.lua | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/lua/ui/lobby/autolobby/AutolobbyController.lua b/lua/ui/lobby/autolobby/AutolobbyController.lua index 180d2b652f..a992e5d727 100644 --- a/lua/ui/lobby/autolobby/AutolobbyController.lua +++ b/lua/ui/lobby/autolobby/AutolobbyController.lua @@ -56,13 +56,33 @@ local AutolobbyEngineStrings = { ['LaunchRejected'] = "Some players are using an incompatible client version.", } +-- associated textures are in `/textures/divisions/ .png` +-- Make note of the space, which isn't there for "grandmaster" and "unlisted" divisions + +---@alias Division +---| "bronze" +---| "silver" +---| "gold" +---| "diamond" +---| "master" +---| "grandmaster" +---| "unlisted" + +---@alias Subdivision +---| "I" +---| "II" +---| "III" +---| "IV" +---| "V" +---| "" # when Division is grandmaster or unlisted + ---@class UIAutolobbyPlayer: UILobbyLaunchPlayerConfiguration ---@field StartSpot number ---@field DEV number # Related to rating/divisions ---@field MEAN number # Related to rating/divisions ---@field NG number # Related to rating/divisions ----@field DIV string # Related to rating/divisions ----@field SUBDIV string # Related to rating/divisions +---@field DIV Division # Related to rating/divisions +---@field SUBDIV Subdivision # Related to rating/divisions ---@field PL number # Related to rating/divisions ---@field PlayerClan string From 717e359826f435664232e8df374761289beabdaf Mon Sep 17 00:00:00 2001 From: lL1l1 <82986251+lL1l1@users.noreply.github.com> Date: Wed, 11 Dec 2024 20:39:13 -0800 Subject: [PATCH 5/5] Create fix.6581.md --- changelog/snippets/fix.6581.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelog/snippets/fix.6581.md diff --git a/changelog/snippets/fix.6581.md b/changelog/snippets/fix.6581.md new file mode 100644 index 0000000000..35a2e38ed2 --- /dev/null +++ b/changelog/snippets/fix.6581.md @@ -0,0 +1,3 @@ +- (#6581) Fix divisions not being parsed by the matchmaker lobby. + +- (#6581) Fix division image filenames not matching the division data in the scenario info.