Skip to content

Commit b34071f

Browse files
Merge pull request #42 from Hornochs/fix-flatout2
Removing HeaderCheck on Flatout 2 to improve multiple version handling
2 parents 6eb3b95 + d90ba2a commit b34071f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

opengsq/protocols/flatout2.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,8 @@ def _verify_packet(self, data: bytes) -> bool:
8484
print(f"Packet too short: {len(data)} bytes")
8585
return False
8686

87-
# Check response header
88-
header_matches = data.startswith(self.RESPONSE_HEADER)
89-
if not header_matches:
90-
print(f"Header mismatch: got {data[:2].hex()}, expected {self.RESPONSE_HEADER.hex()}")
91-
return False
92-
9387
# Check game identifier (position 10-14, after session ID and padding)
88+
# This is the most reliable indicator for Flatout 2 servers
9489
game_id = data[10:14]
9590
game_id_matches = game_id == self.GAME_IDENTIFIER
9691
if not game_id_matches:

0 commit comments

Comments
 (0)