Console

class valveexe.RconConsole(ip, port, passwd)[source]

Bases: VConsole

Issues commands by leveraging RCON. This is supported by most multiplayer games.

__init__(ip, port, passwd)[source]
Parameters:
  • ip (str) – The IP the game client is listening on (usually “127.0.0.1”).

  • port (int) – The port the game client is listening on (usually 27015).

  • passwd (str) – The Rcon password to be used to issue commands.

run(command, *params)[source]

Runs a specified command with it’s parameters

Parameters:
  • command (str) – A Source Engine console command.

  • *params (str) – The values to be included with the command.

class valveexe.ExecConsole(gameExe, gameDir, uuid)[source]

Bases: VConsole

Issues commands by using the -hijack launch parameters alongside a +exec statement. This is supported by games that support -hijack (not csgo).

__init__(gameExe, gameDir, uuid)[source]
Parameters:
  • gameExe (path, str) – The path to the game executable.

  • gameDir (path, str) – The path to the mod folder.

  • uuid (str) – A unique identifier for the config name.

run(command, *params)[source]

Runs a specified command with it’s parameters

Parameters:
  • command (str) –

    A Source Engine console command.

  • *params (str) – The values to be included with the command.

class valveexe.VConsole[source]

An abstract definition for the different types of console implementations. All implementation are intended to receive commands via the run function

run(command, *params)[source]

Runs a specified command with it’s parameters

Parameters:
  • command (str) –

    A Source Engine console command.

  • *params (str) – The values to be included with the command.