]> git.deb.at Git - rhonda/impostor.git/commit
Improve CompatMgr behaviour for unknown versions
authorminiduikboot <mini@duikbo.at>
Fri, 14 Jun 2024 19:49:12 +0000 (21:49 +0200)
committerminiduikboot <mini@duikbo.at>
Fri, 14 Jun 2024 19:49:12 +0000 (21:49 +0200)
commita61524842f80baa28882171d533b359ab05bbf72
tree06c0cb694e13f94bf4e8772d06af4a4d6c1d2382
parent468a71d01e6adea224d30843a995c0dcf0fc5e8c
Improve CompatMgr behaviour for unknown versions

Currently, Impostor will show an "Client is in an invalid state."
message if a player tries to join a match where the host or the joining
player is using a version unknown to Impostor.

This message confused a *lot* of people, so this PR changes the API such
that if the version is not registered, the version itself is put in a
compatibility group and compared, assuming no other game versions are
compatible with it. This works fine in most cases, as Among Us network
versions generally increase over time.

Failure on 2222.2.2 (which is ancient at this point, so likely no longer
used) and future cases where Innersloth messes up (which is unlikely) is
an acceptable consequence to me.
src/Impostor.Server/Net/Manager/CompatibilityManager.cs
src/Impostor.Tests/CompatibilityManagerTests.cs