From d90ba2a533566aee0cacb02286143de64dd8f2c9 Mon Sep 17 00:00:00 2001 From: Hornochs Date: Wed, 4 Jun 2025 14:41:01 +0200 Subject: [PATCH] Removing HeaderCheck on Flatout 2 to improve multiple version handling --- opengsq/protocols/flatout2.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/opengsq/protocols/flatout2.py b/opengsq/protocols/flatout2.py index e3081d1..875a78a 100644 --- a/opengsq/protocols/flatout2.py +++ b/opengsq/protocols/flatout2.py @@ -84,13 +84,8 @@ def _verify_packet(self, data: bytes) -> bool: print(f"Packet too short: {len(data)} bytes") return False - # Check response header - header_matches = data.startswith(self.RESPONSE_HEADER) - if not header_matches: - print(f"Header mismatch: got {data[:2].hex()}, expected {self.RESPONSE_HEADER.hex()}") - return False - # Check game identifier (position 10-14, after session ID and padding) + # This is the most reliable indicator for Flatout 2 servers game_id = data[10:14] game_id_matches = game_id == self.GAME_IDENTIFIER if not game_id_matches: