diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c9478e..c41da20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ Games: - [Rising World](https://store.steampowered.com/app/324080/Rising_World/) support. - [ATLAS](https://store.steampowered.com/app/834910/ATLAS/) support. - [America's Army: Proving Grounds](https://store.steampowered.com/app/203290/Americas_Army_Proving_Grounds/) support. +- [Base Defense](https://store.steampowered.com/app/632730/Base_Defense/) support. - Added a valve protocol query example. - Made all of Just Cause 2: Multiplayer Response and Player fields public. diff --git a/GAMES.md b/GAMES.md index 7c43258..5331c8d 100644 --- a/GAMES.md +++ b/GAMES.md @@ -77,6 +77,7 @@ Beware of the `Notes` column, as it contains information about query port offset | Rising World | RISINGWORLD | Valve | Query port offset: -1 | | ATLAS | ATLAS | Valve | Query port offset: 51800 | | America's Army: Proving Grounds | AAPG | Valve | Query port: 27020. Does not respond to the rules query. | +| Base Defense | BASEDEFENSE | Valve | Query port: 27015. Does not respond to the rules query. | ## Planned to add support: _ diff --git a/crates/lib/src/games/definitions.rs b/crates/lib/src/games/definitions.rs index 6272e81..284cb5d 100644 --- a/crates/lib/src/games/definitions.rs +++ b/crates/lib/src/games/definitions.rs @@ -52,6 +52,11 @@ pub static GAMES: Map<&'static str, Game> = phf_map! { "atlas" => game!("ATLAS", 57561, Protocol::Valve(Engine::new(834_910))), "avorion" => game!("Avorion", 27020, Protocol::Valve(Engine::new(445_220))), "barotrauma" => game!("Barotrauma", 27016, Protocol::Valve(Engine::new(602_960))), + "basedefense" => game!("Base Defense", 27015, Protocol::Valve(Engine::new(632_730)), GatheringSettings { + players: true, + rules: false, + check_app_id: true, + }.into_extra()), "battalion1944" => game!("Battalion 1944", 7780, Protocol::Valve(Engine::new(489_940))), "brainbread2" => game!("BrainBread 2", 27015, Protocol::Valve(Engine::new(346_330))), "battlefield1942" => game!("Battlefield 1942", 23000, Protocol::Gamespy(GameSpyVersion::One)), diff --git a/crates/lib/src/games/valve.rs b/crates/lib/src/games/valve.rs index d6ac1e0..18c718c 100644 --- a/crates/lib/src/games/valve.rs +++ b/crates/lib/src/games/valve.rs @@ -8,6 +8,7 @@ game_query_mod!( Engine::new(33930), 2304 ); +game_query_mod!(basedefense, "Base Defense", Engine::new(632_730), 27015); game_query_mod!(alienswarm, "Alien Swarm", Engine::new(630), 27015); game_query_mod!(aoc, "Age of Chivalry", Engine::new(17510), 27015); game_query_mod!(