Skip to content

Commit

Permalink
Merge branch 'develop' into feature/recall-on-disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
lL1l1 committed Dec 25, 2024
2 parents 72475a4 + 9142736 commit 778ea84
Show file tree
Hide file tree
Showing 58 changed files with 118 additions and 11 deletions.
1 change: 0 additions & 1 deletion changelog/snippets/other.6577.md

This file was deleted.

33 changes: 33 additions & 0 deletions docs/_posts/2024-12-25-3817.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
layout: post
title: Game version 3817
permalink: changelog/3817
---

# Game version 3817 (25th of December, 2024)

A small hotfix for the autolobby. This will be the final patch for the game in 2024.

I’d like to take this opportunity to express my sincere gratitude to everyone who has contributed to FAForever this past year, as well as those who have contributed in the past. The FAForever project is possible because of your time and effort!

If you're interested in contributing then I encourage you to visit the forums and review the first pinned post in the contribution section. It provides an extensive overview of the currently documented roles in the community. Whether you're an (aspiring) artist, developer, or simply interested in writing well-structured texts — you are welcome!

I wish you all the best in the new year.

With kind regards,
Jip

## Bug fixes

- (#6581) Fix divisions not being parsed by the matchmaker lobby.

- (#6581) Fix division image filenames not matching the division data in the scenario info.

## Other changes

- (#6577) Annotate `AddBlinkyBox`. This UI-side global engine function makes a unit's selection box blink for some time.

## Contributors

- Nomander
- Jip
24 changes: 22 additions & 2 deletions lua/ui/lobby/autolobby/AutolobbyController.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,33 @@ local AutolobbyEngineStrings = {
['LaunchRejected'] = "<LOC lob_0009>Some players are using an incompatible client version.",
}

-- associated textures are in `/textures/divisions/<division> <subdivision>.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

Expand Down
2 changes: 1 addition & 1 deletion lua/ui/lobby/autolobby/components/AutolobbyArguments.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ AutolobbyArgumentsComponent = ClassSimple {
["/mean"] = true,

-- related to divisions
["division"] = true,
["/division"] = true,
["/subdivision"] = true,

-- related to game settings
Expand Down
41 changes: 41 additions & 0 deletions lua/ui/lobby/changelogData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,47 @@ last_version = 3816

---@type PatchNotes[]
gamePatches = {
{
version = 3817,
name = "Hotfix",
hasPrettyGithubRelease = true,
hasPrettyPatchnotes = false,
description = {
"# Game version 3817 (25th of December, 2024)",
"",
"A small hotfix for the autolobby. This will be the final patch for the game in 2024.",
"",
"I’d like to take this opportunity to express my sincere gratitude to everyone who has contributed to FAForever this ",
"past year, as well as those who have contributed in the past. The FAForever project is possible ",
"because of your time and effort!",
"",
"If you're interested in contributing then I encourage you to visit the forums and review the first pinned post in ",
"the contribution section. It provides an extensive overview of the currently documented roles in the ",
"community. Whether you're an (aspiring) artist, developer, or simply interested in writing well-structured ",
"texts — you are welcome!",
"",
"I wish you all the best in the new year.",
"",
"With kind regards,",
"Jip",
"",
"## Bug fixes",
"",
"- (#6581) Fix divisions not being parsed by the matchmaker lobby.",
"",
"- (#6581) Fix division image filenames not matching the division data in the scenario info.",
"",
"## Other changes",
"",
"- (#6577) Annotate `AddBlinkyBox`. This UI-side global engine function makes a unit's selection box blink for some time.",
"",
"## Contributors",
"",
"- Nomander",
"- Jip",
"",
},
},
{
version = 3816,
name = "Hotfix",
Expand Down
6 changes: 3 additions & 3 deletions lua/version.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ local Commit = 'unknown' -- The use of `'` instead of `"` is **intentional**

--#endregion

local Version = "3816"
---@alias PATCH "3816"
---@alias VERSION "1.5.3816"
local Version = "3817"
---@alias PATCH "3817"
---@alias VERSION "1.5.3817"
---@return PATCH # Game release
function GetVersion()
LOG(string.format('Supreme Commander: Forged Alliance Lua version %s at %s (%s)', Version, GameType, Commit))
Expand Down
2 changes: 1 addition & 1 deletion mod_info.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
-- - https://github.com/FAForever/fa/blob/deploy/fafdevelop/lua/MODS.LUA

name = "Forged Alliance Forever"
version = 3816 -- needs to be an integer as it is parsed as a short (16 bit integer)
version = 3817 -- needs to be an integer as it is parsed as a short (16 bit integer)
_faf_modname='faf'
copyright = "Forged Alliance Forever Community"
description = "Forged Alliance Forever extends Forged Alliance, bringing new patches, game modes, units, ladder, and much more!"
Expand Down
20 changes: 17 additions & 3 deletions scripts/LaunchFAInstances.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ $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
Expand Down Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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
}
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit 778ea84

Please sign in to comment.