Skip to content

Commit

Permalink
feat: Add Conan Exiles support.
Browse files Browse the repository at this point in the history
  • Loading branch information
CosminPerRam committed Oct 28, 2023
1 parent 1145a06 commit f11a50a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ 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.
- [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.

### Breaking:
Game:
Expand Down
1 change: 1 addition & 0 deletions GAMES.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Beware of the `Notes` column, as it contains information about query port offset
| 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). |
| Conan Exiles | CONANEXILES | Valve | Does not respond to the players query. |

## Planned to add support:
_
5 changes: 5 additions & 0 deletions src/games/definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ pub static GAMES: Map<&'static str, Game> = phf_map! {
"ballisticoverkill" => game!("Ballistic Overkill", 27016, Protocol::Valve(Engine::new(296_300))),
"codenamecure" => game!("Codename CURE", 27015, Protocol::Valve(Engine::new(355_180))),
"colonysurvival" => game!("Colony Survival", 27004, Protocol::Valve(Engine::new(366_090))),
"conanexiles" => game!("Conan Exiles", 27015, Protocol::Valve(Engine::new(440_900)), GatheringSettings {
players: false,
rules: true,
check_app_id: true,
}.into_extra()),
"counterstrike" => game!("Counter-Strike", 27015, Protocol::Valve(Engine::new_gold_src(false))),
"cscz" => game!("Counter Strike: Condition Zero", 27015, Protocol::Valve(Engine::new_gold_src(false))),
"csgo" => game!("Counter-Strike: Global Offensive", 27015, Protocol::Valve(Engine::new(730))),
Expand Down
11 changes: 11 additions & 0 deletions src/games/valve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ game_query_mod!(
Engine::new(366_090),
27004
);
game_query_mod!(
conanexiles,
"Conan Exiles",
Engine::new(440_900),
27015,
GatheringSettings {
players: false,
rules: true,
check_app_id: true,
}
);
game_query_mod!(
counterstrike,
"Counter-Strike",
Expand Down

0 comments on commit f11a50a

Please sign in to comment.