gamedig / rust-gamedig

Game Server Query Library.
https://crates.io/crates/gamedig
MIT License
38 stars 11 forks source link

[Protocol] Make gamespy1 parsing less likely to fail #107

Closed Douile closed 11 months ago

Douile commented 11 months ago

This fixes the "playername" field being filtered out, which would cause parsing to fail for some bf1942 servers which use that field instead of "player".

It also makes more fields on the Gamespy1 Player type optional, this is because in my testing I saw some servers (bf1942) not providing them so as a result the parse would fail if these were not optional.

This is taken from #92 but is just partial work on #88, it might not solve all issues, but they are the obvious fixes that should help us in narrowing down the other ones.