From 1145a064a90b1ef6d0ab4df94182e32d450c233d Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Sun, 29 Oct 2023 00:00:48 +0300 Subject: [PATCH] feat: Add The Front support. --- CHANGELOG.md | 1 + GAMES.md | 1 + src/games/definitions.rs | 1 + src/games/valve.rs | 1 + 4 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c4878e..48ae948 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Who knows what the future holds... # 0.X.Y - DD/MM/YYYY ### Changes: - Added [Valheim](https://store.steampowered.com/app/892970/Valheim/) support. +- Added [The Front](https://store.steampowered.com/app/2285150/The_Front/) support. ### Breaking: Game: diff --git a/GAMES.md b/GAMES.md index ad1dcdf..621f860 100644 --- a/GAMES.md +++ b/GAMES.md @@ -63,6 +63,7 @@ Beware of the `Notes` column, as it contains information about query port offset | Garry's Mod | GARRYSMOD | Valve | | | Barotrauma | BAROTRAUMA | Valve | Query Port offset: 1. | | Valheim | VALHEIM | Valve | Query Port offset: 1. Does not respond to the A2S rules. | +| The Front | THEFRONT | Valve | Responds with wrong values on `name` (gives out a SteamID instead of the server name) and `players_maximum` (always 200). | ## Planned to add support: _ diff --git a/src/games/definitions.rs b/src/games/definitions.rs index 869287c..553d1c0 100644 --- a/src/games/definitions.rs +++ b/src/games/definitions.rs @@ -92,6 +92,7 @@ pub static GAMES: Map<&'static str, Game> = phf_map! { "sof2" => game!("Soldier of Fortune 2", 20100, Protocol::Quake(QuakeVersion::Three)), "serioussam" => game!("Serious Sam", 25601, Protocol::Gamespy(GameSpyVersion::One)), "theforest" => game!("The Forest", 27016, Protocol::Valve(Engine::new(556_450))), + "thefront" => game!("The Front", 27015, Protocol::Valve(Engine::new(2_285_150))), "teamfortress2" => game!("Team Fortress 2", 27015, Protocol::Valve(Engine::new(440))), "tfc" => game!("Team Fortress Classic", 27015, Protocol::Valve(Engine::new_gold_src(false))), "theship" => game!("The Ship", 27015, Protocol::PROPRIETARY(ProprietaryProtocol::TheShip)), diff --git a/src/games/valve.rs b/src/games/valve.rs index 5b841bc..4be1add 100644 --- a/src/games/valve.rs +++ b/src/games/valve.rs @@ -107,6 +107,7 @@ game_query_mod!( 27015 ); game_query_mod!(theforest, "The Forest", Engine::new(556_450), 27016); +game_query_mod!(thefront, "The Front", Engine::new(2_285_150), 27015); game_query_mod!(unturned, "Unturned", Engine::new(304_930), 27015); game_query_mod!( valheim,