From decff8231895632e302e228648a93516c0c9399c Mon Sep 17 00:00:00 2001 From: CosminPerRam Date: Sun, 3 Dec 2023 20:51:43 +0200 Subject: [PATCH] feat: add Post Scriptum support (#163) * feat: add post scriptum support * Add/Update badge --------- Co-authored-by: GitHub Action --- .github/badges/node.svg | 8 ++++---- CHANGELOG.md | 1 + GAMES.md | 13 +++++++------ crates/lib/src/games/definitions.rs | 1 + crates/lib/src/games/valve.rs | 1 + 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/badges/node.svg b/.github/badges/node.svg index d968517..df3be38 100644 --- a/.github/badges/node.svg +++ b/.github/badges/node.svg @@ -1,5 +1,5 @@ - - Node game coverage: 14.06% + + Node game coverage: 14.02% @@ -13,8 +13,8 @@ \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index bf2050d..fb66ad9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Games: - [Valheim](https://store.steampowered.com/app/892970/Valheim/) support. - [The Front](https://store.steampowered.com/app/2285150/The_Front/) support. - [Conan Exiles](https://store.steampowered.com/app/440900/Conan_Exiles/) support. +- [Post Scriptum](https://store.steampowered.com/app/736220/Post_Scriptum/) support. - Added a valve protocol query example. Protocols: diff --git a/GAMES.md b/GAMES.md index 5d7bad6..59ab947 100644 --- a/GAMES.md +++ b/GAMES.md @@ -65,12 +65,13 @@ Beware of the `Notes` column, as it contains information about query port offset | 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). | | Conan Exiles | CONANEXILES | Valve | Does not respond to the players query. | -| Darkest Hour: Europe '44-'45 | DARKESTHOUR | Unreal2 | Query port offset: 1 | -| Devastation | DEVASTATION | Unreal2 | Query port offset: 1 | -| Killing Floor | KILLINGFLOOR | Unreal2 | Query port offset: 1 | -| Red Orchestra | REDORCHESTRA | Unreal2 | Query port offset: 1 | -| Unreal Tournament 2003 | UT2003 | Unreal2 | Query port offset: 1 | -| Unreal Tournament 2004 | UT2004 | Unreal2 | Query port offset: 1 | +| Darkest Hour: Europe '44-'45 | DARKESTHOUR | Unreal2 | Query port offset: 1 | +| Devastation | DEVASTATION | Unreal2 | Query port offset: 1 | +| Killing Floor | KILLINGFLOOR | Unreal2 | Query port offset: 1 | +| Red Orchestra | REDORCHESTRA | Unreal2 | Query port offset: 1 | +| Unreal Tournament 2003 | UT2003 | Unreal2 | Query port offset: 1 | +| Unreal Tournament 2004 | UT2004 | Unreal2 | Query port offset: 1 | +| Post Scriptum | POSTSCRIPTUM | Valve | | ## Planned to add support: _ diff --git a/crates/lib/src/games/definitions.rs b/crates/lib/src/games/definitions.rs index 7f55a65..8f4754b 100644 --- a/crates/lib/src/games/definitions.rs +++ b/crates/lib/src/games/definitions.rs @@ -81,6 +81,7 @@ pub static GAMES: Map<&'static str, Game> = phf_map! { "l4d2" => game!("Left 4 Dead 2", 27015, Protocol::Valve(Engine::new(550))), "ohd" => game!("Operation: Harsh Doorstop", 27005, Protocol::Valve(Engine::new_with_dedicated(736_590, 950_900))), "onset" => game!("Onset", 7776, Protocol::Valve(Engine::new(1_105_810))), + "postscriptum" => game!("Post Scriptum", 10037, Protocol::Valve(Engine::new(736220))), "projectzomboid" => game!("Project Zomboid", 16261, Protocol::Valve(Engine::new(108_600))), "quake1" => game!("Quake 1", 27500, Protocol::Quake(QuakeVersion::One)), "quake2" => game!("Quake 2", 27910, Protocol::Quake(QuakeVersion::Two)), diff --git a/crates/lib/src/games/valve.rs b/crates/lib/src/games/valve.rs index acd612c..bfb9728 100644 --- a/crates/lib/src/games/valve.rs +++ b/crates/lib/src/games/valve.rs @@ -100,6 +100,7 @@ game_query_mod!( 27005 ); game_query_mod!(onset, "Onset", Engine::new(1_105_810), 7776); +game_query_mod!(postscriptum, "Post Scriptum", Engine::new(736220), 10037); game_query_mod!( projectzomboid, "Project Zomboid",