opengsq.responses.jediknight package

Submodules

opengsq.responses.jediknight.info module

opengsq.responses.jediknight.info.translate_gametype(gametype_code: str) str

Translate Jedi Academy gametype codes to display names.

Parameters:

gametype_code – The gametype code from the server

Returns:

Display name for the gametype

class opengsq.responses.jediknight.info.Info(data: dict[str, str])

Bases: object

Represents the info response from a Star Wars Jedi Knight - Jedi Academy server.

fdisable: str = ''

Force powers disable flags.

wdisable: str = ''

Weapons disable flags.

truejedi: str = ''

True Jedi mode enabled.

needpass: str = ''

Password required.

gametype: str = ''

Game type.

sv_maxclients: str = ''

Maximum clients.

clients: str = ''

Current clients.

mapname: str = ''

Current map name.

hostname: str = ''

Server hostname.

protocol: str = ''

Protocol version.

challenge: str = ''

Challenge string.

property gametype_translated: str

Get the translated gametype name.

Returns:

Display name for the gametype

opengsq.responses.jediknight.jediknight_status module

class opengsq.responses.jediknight.jediknight_status.JediKnightStatus(info: Info, status: Status)

Bases: object

Represents the combined status information from a Star Wars Jedi Knight - Jedi Academy server. Contains both info and status responses.

info: Info

The server info response.

status: Status

The server status response.

opengsq.responses.jediknight.status module

opengsq.responses.jediknight.status.translate_gametype(gametype_code: str) str

Translate Jedi Academy gametype codes to display names.

Parameters:

gametype_code – The gametype code from the server

Returns:

Display name for the gametype

class opengsq.responses.jediknight.status.Player(score: int = 0, ping: int = 0, name: str = '')

Bases: object

Represents a player on a Jedi Academy server.

score: int = 0

Player score.

ping: int = 0

Player ping.

name: str = ''

Player name.

class opengsq.responses.jediknight.status.Status(data: dict[str, str], players: List[Player] = None)

Bases: object

Represents the status response from a Star Wars Jedi Knight - Jedi Academy server.

challenge: str = ''

Challenge string.

capturelimit: str = ''

Capture limit for CTF.

sv_hostname: str = ''

Server hostname.

sv_maxRate: str = ''

Maximum rate.

sv_minPing: str = ''

Minimum ping.

sv_maxPing: str = ''

Maximum ping.

sv_floodProtect: str = ''

Flood protection.

g_siegeTeamSwitch: str = ''

Siege team switch.

version: str = ''

Server version.

dmflags: str = ''

Deathmatch flags.

fraglimit: str = ''

Frag limit.

timelimit: str = ''

Time limit.

g_maxHolocronCarry: str = ''

Maximum holocrons to carry.

g_privateDuel: str = ''

Private duel enabled.

g_saberLocking: str = ''

Saber locking enabled.

g_maxForceRank: str = ''

Maximum force rank.

duel_fraglimit: str = ''

Duel frag limit.

g_forceBasedTeams: str = ''

Force based teams.

g_duelWeaponDisable: str = ''

Duel weapon disable.

g_gametype: str = ''

Game type.

g_needpass: str = ''

Password required.

protocol: str = ''

Protocol version.

mapname: str = ''

Current map name.

sv_privateClients: str = ''

Private clients.

sv_maxclients: str = ''

Maximum clients.

sv_allowDownload: str = ''

Allow downloads.

bot_minplayers: str = ''

Minimum bot players.

g_debugMelee: str = ''

Debug melee.

g_stepSlideFix: str = ''

Step slide fix.

g_noSpecMove: str = ''

No spectator movement.

gamename: str = ''

Game name (basejka for base game).

g_maxGameClients: str = ''

Maximum game clients.

g_jediVmerc: str = ''

Jedi vs Merc mode.

g_allowNPC: str = ''

Allow NPCs.

g_forceRegenTime: str = ''

Force regeneration time.

g_forcePowerDisable: str = ''

Force power disable flags.

g_weaponDisable: str = ''

Weapon disable flags.

g_siegeRespawn: str = ''

Siege respawn time.

g_saberWallDamageScale: str = ''

Saber wall damage scale.

bg_fighterAltControl: str = ''

Fighter alt control.

g_siegeTeam1: str = ''

Siege team 1.

g_siegeTeam2: str = ''

Siege team 2.

g_showDuelHealths: str = ''

Show duel healths.

players: List[Player]

List of players on the server.

property g_gametype_translated: str

Get the translated gametype name.

Returns:

Display name for the gametype

Module contents

class opengsq.responses.jediknight.Info(data: dict[str, str])

Bases: object

Represents the info response from a Star Wars Jedi Knight - Jedi Academy server.

challenge: str = ''

Challenge string.

clients: str = ''

Current clients.

fdisable: str = ''

Force powers disable flags.

gametype: str = ''

Game type.

property gametype_translated: str

Get the translated gametype name.

Returns:

Display name for the gametype

hostname: str = ''

Server hostname.

mapname: str = ''

Current map name.

needpass: str = ''

Password required.

protocol: str = ''

Protocol version.

sv_maxclients: str = ''

Maximum clients.

truejedi: str = ''

True Jedi mode enabled.

wdisable: str = ''

Weapons disable flags.

class opengsq.responses.jediknight.Status(data: dict[str, str], players: List[Player] = None)

Bases: object

Represents the status response from a Star Wars Jedi Knight - Jedi Academy server.

bg_fighterAltControl: str = ''

Fighter alt control.

bot_minplayers: str = ''

Minimum bot players.

capturelimit: str = ''

Capture limit for CTF.

challenge: str = ''

Challenge string.

dmflags: str = ''

Deathmatch flags.

duel_fraglimit: str = ''

Duel frag limit.

fraglimit: str = ''

Frag limit.

g_allowNPC: str = ''

Allow NPCs.

g_debugMelee: str = ''

Debug melee.

g_duelWeaponDisable: str = ''

Duel weapon disable.

g_forceBasedTeams: str = ''

Force based teams.

g_forcePowerDisable: str = ''

Force power disable flags.

g_forceRegenTime: str = ''

Force regeneration time.

g_gametype: str = ''

Game type.

property g_gametype_translated: str

Get the translated gametype name.

Returns:

Display name for the gametype

g_jediVmerc: str = ''

Jedi vs Merc mode.

g_maxForceRank: str = ''

Maximum force rank.

g_maxGameClients: str = ''

Maximum game clients.

g_maxHolocronCarry: str = ''

Maximum holocrons to carry.

g_needpass: str = ''

Password required.

g_noSpecMove: str = ''

No spectator movement.

g_privateDuel: str = ''

Private duel enabled.

g_saberLocking: str = ''

Saber locking enabled.

g_saberWallDamageScale: str = ''

Saber wall damage scale.

g_showDuelHealths: str = ''

Show duel healths.

g_siegeRespawn: str = ''

Siege respawn time.

g_siegeTeam1: str = ''

Siege team 1.

g_siegeTeam2: str = ''

Siege team 2.

g_siegeTeamSwitch: str = ''

Siege team switch.

g_stepSlideFix: str = ''

Step slide fix.

g_weaponDisable: str = ''

Weapon disable flags.

gamename: str = ''

Game name (basejka for base game).

mapname: str = ''

Current map name.

protocol: str = ''

Protocol version.

sv_allowDownload: str = ''

Allow downloads.

sv_floodProtect: str = ''

Flood protection.

sv_hostname: str = ''

Server hostname.

sv_maxPing: str = ''

Maximum ping.

sv_maxRate: str = ''

Maximum rate.

sv_maxclients: str = ''

Maximum clients.

sv_minPing: str = ''

Minimum ping.

sv_privateClients: str = ''

Private clients.

timelimit: str = ''

Time limit.

version: str = ''

Server version.

players: List[Player]

List of players on the server.

class opengsq.responses.jediknight.JediKnightStatus(info: Info, status: Status)

Bases: object

Represents the combined status information from a Star Wars Jedi Knight - Jedi Academy server. Contains both info and status responses.

info: Info

The server info response.

status: Status

The server status response.