opengsq.responses.trackmania_nations package

Submodules

opengsq.responses.trackmania_nations.server_info module

class opengsq.responses.trackmania_nations.server_info.ServerInfo(name: str, map: str, players: int, max_players: int, game_mode: str, password_protected: bool = False, version: str | None = None, environment: str = 'Unknown', comment: str = '', server_login: str = '', pc_guid: str = '', time_limit: int = 0, nb_laps: int = 0, spectator_slots: int = 0, build_number: int = 0, private_server: bool = False, ladder_server: bool = False, status_flags: int = 0, challenge_crc: int = 0, public_ip: str = '', local_ip: str = '', raw_data: str | None = None)

Bases: object

Trackmania Nations Server Information Erweitert basierend auf Reverse-Engineering der #SRV# Server-Announcement-Payloads

name: str

Name of the server.

map: str

Current map being played.

players: int

Current number of players on the server.

max_players: int

Maximum number of players the server can hold.

game_mode: str

Current game mode (e.g., Time Attack, Rounds, Cup, etc.).

password_protected: bool = False

Whether the server requires a password.

version: str | None = None

Server/game version.

environment: str = 'Unknown'

Map environment (Stadium, Canyon, Valley, etc.).

comment: str = ''

Server comment/description.

server_login: str = ''

Server login name.

pc_guid: str = ''

PC GUID identifier.

time_limit: int = 0

Time limit in milliseconds.

nb_laps: int = 0

Number of laps for lap-based modes.

spectator_slots: int = 0

Maximum number of spectator slots.

build_number: int = 0

Game build number.

private_server: bool = False

Whether the server is private.

ladder_server: bool = False

Whether the server is a ladder server.

status_flags: int = 0

Server status flags bitfield.

challenge_crc: int = 0

Challenge/Map CRC checksum.

public_ip: str = ''

Public IP address of the server.

local_ip: str = ''

Local IP address of the server.

raw_data: str | None = None

Raw response data from the server as hex string.

to_dict() dict

Convert to dictionary for JSON serialization, excluding raw_data.

Module contents

class opengsq.responses.trackmania_nations.ServerInfo(name: str, map: str, players: int, max_players: int, game_mode: str, password_protected: bool = False, version: str | None = None, environment: str = 'Unknown', comment: str = '', server_login: str = '', pc_guid: str = '', time_limit: int = 0, nb_laps: int = 0, spectator_slots: int = 0, build_number: int = 0, private_server: bool = False, ladder_server: bool = False, status_flags: int = 0, challenge_crc: int = 0, public_ip: str = '', local_ip: str = '', raw_data: str | None = None)

Bases: object

Trackmania Nations Server Information Erweitert basierend auf Reverse-Engineering der #SRV# Server-Announcement-Payloads

build_number: int = 0

Game build number.

challenge_crc: int = 0

Challenge/Map CRC checksum.

comment: str = ''

Server comment/description.

environment: str = 'Unknown'

Map environment (Stadium, Canyon, Valley, etc.).

ladder_server: bool = False

Whether the server is a ladder server.

local_ip: str = ''

Local IP address of the server.

nb_laps: int = 0

Number of laps for lap-based modes.

password_protected: bool = False

Whether the server requires a password.

pc_guid: str = ''

PC GUID identifier.

private_server: bool = False

Whether the server is private.

public_ip: str = ''

Public IP address of the server.

raw_data: str | None = None

Raw response data from the server as hex string.

server_login: str = ''

Server login name.

spectator_slots: int = 0

Maximum number of spectator slots.

status_flags: int = 0

Server status flags bitfield.

time_limit: int = 0

Time limit in milliseconds.

to_dict() dict

Convert to dictionary for JSON serialization, excluding raw_data.

version: str | None = None

Server/game version.

name: str

Name of the server.

map: str

Current map being played.

players: int

Current number of players on the server.

max_players: int

Maximum number of players the server can hold.

game_mode: str

Current game mode (e.g., Time Attack, Rounds, Cup, etc.).