mirror of
https://github.com/tribufu/rust-gamedig
synced 2026-06-01 09:42:41 +00:00
feat: Add the unreal2 protocol (#124)
* WIP: Add unreal2 protocol * Add/Update badge * protocols/unreal2: Update doc comments and TODOs * protocols/unreal2: Don't pre-allocate as many bot players * protocols/unreal2: Use "encoding-rs" for decoding unreal2 strings * Add/Update badge * protocols/unreal2: Add constants for player pre-allocation. Also improve some doc comments and update PACKET_SIZE. * protocols/unreal2: Early break when enough players have been parsed Add a fast-path to avoid waiting for packet timeout when we have parsed as many players as specified in the server info packet. * protocols/unreal2: Use HashSet to store mutators * protocols/unreal2: Handle server sending multiple values for a rule * protocols/unreal2: Add GatheringSettings to control what to query GatheringSettings allows skipping querying rules and/or players which can make the query return much faster. This also required moving each individual query into its own helper. * protocols/unreal2: Add more derives to types * protocols/unreal2: Simplify ServerInfo::parse() Co-Authored-By: CosminPerRam <cosmin.p@live.com> * Docs: Add unreal2 protocol documentation I used a website to generate the markdown RESPONSES table, the save file from this website is included to make updating the table easier in the future. https://www.tablesgenerator.com/markdown_tables * Add/Update badge * protocols/unreal2: Use the correct encoding for UCS2 strings * Docs: Remove unnecessary TGN file --------- Co-authored-by: GitHub Action <action@github.com> Co-authored-by: CosminPerRam <cosmin.p@live.com>
This commit is contained in:
parent
5c1568251a
commit
529abe9d76
14 changed files with 708 additions and 52 deletions
6
GAMES.md
6
GAMES.md
|
|
@ -65,6 +65,12 @@ 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 |
|
||||
|
||||
## Planned to add support:
|
||||
_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue