Skip to content

Commit

Permalink
feat: Add The Front support.
Browse files Browse the repository at this point in the history
  • Loading branch information
CosminPerRam committed Oct 28, 2023
1 parent e3dd7cd commit 1145a06
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions GAMES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
_
1 change: 1 addition & 0 deletions src/games/definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down
1 change: 1 addition & 0 deletions src/games/valve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1145a06

Please sign in to comment.