Impostor 1.10.8 introduced PacketSize as a category, which was added in
front of "Other". This caused the value of "Other" to shift, which is a
problem for AC checks. Let's prevent making this mistake again in 1.10.9
Previous commit already moved the Other category back, this commit puts in the note for future developers
* Deserialize gamecode as packed in PackedGameDataTo
Most packets use a normal 32 bit int but not PackedGameDataTo. Instead,
Innersloth decided to waste a byte by using WritePacked. As v2 game
codes are always negative, this is less efficient, but alas.
It was documented in the pseudocode and I didn't spot the difference
when reviewing the implementation, so I made this mistake when
deduplicating this code.
Test plan:
- Start EHR on at least 2 clients
- Use the game mode "Natural Disasters"
- Observe that pixelated blobs are visible for all players, not just the host
* uopt: stop parsing code to string
* Address review comments
* Add GameFilters interface
* Add Newtonsoft.Json
Used by InnerSloth
* Port 2025.3.25 Data
* Generate OptionNames
* Fix missing CategorizedOptionNames
* Remove Newtonsoft.Json
* Add missing GameFilterList
* Basic support for new filters
* Add FiltersController
Server need to tell clients its filters
* Add Tag filter in filtergames
* Add GameTags in legacy game options
* Correctly deserialize Filters
* Minor text fixes
---------
Co-authored-by: miniduikboot <mini@duikbo.at>
* Added an RPC packet size anti-cheat
* Support PackedGameDataTo
* Move packet size check to HazelConnection
* Update PacketSizeLimit to 1153 and add anti-cheat docs
* Change default to value determined on officials
Thanks Niko for doing the research
---------
Co-authored-by: miniduikboot <mini@duikbo.at>
Co-authored-by: NikoCat233 <139348239+NikoCat233@users.noreply.github.com>
On January 21 Innersloth released a document that details a few new
features. One of these are host chat commands: any chat message that
starts with "/cmd" is forwarded to the host and to the host only.
Implement this feature in Impostor too for implementation parity.
For more info, see their GitHub page:
https://github.com/Innersloth-LLC/AmongUsModdingInformation