Class Gameinfo

Documentation of includes/core/gameinfo.class.php

Provides information to the current game which is running.

Methods

getModeId

Returns the ID from the current running Modescript or given Modescript name.

Description

int = getModeId ( [ $name ] )

Parameters

  • $name

    If passed, then this Method returns the ID of the given Modescript name, instead of the current running Modescript.

Example

$name = 'time_attack';
$id = $aseco->server->gameinfo->getModeId($name);

Return Values

2

getModeName

Returns the shorten Scriptname from the current running Modescript or given Modescript ID.

Description

string = getModeName ( [ $id ] )

Parameters

  • $id

    If passed, then this Method returns the name of the given Modescript ID, instead of the current running Modescript.

Example

$id = 8;
$name = $aseco->server->gameinfo->getModeName($id);

Return Values

Laps

getModeScriptName

Returns the ScriptName from the current running Modescript.

Description

string = getModeScriptName ( [ $id ] )

Parameters

  • $id

    If passed, then this Method returns the Scriptname of the given Modescript, instead of the current running Modescript.

Example

$scriptname = $aseco->server->gameinfo->getModeScriptName();

Return Values

TimeAttack.Script.txt

getModeVersion

Returns the version from the current running Modescript.

Description

string = getModeVersion ( void )

Example

$version = $aseco->server->gameinfo->getModeVersion();

Return Values

2014-07-02

getNextModeId

Returns the Modescript ID from the next running Modescript.

Description

string = getNextModeId ( void )

Example

$id = $aseco->server->gameinfo->getNextModeId();

Return Values

2

getNextModeName

Returns the shorten Scriptname from the next running Modescript.

Description

string = getNextModeName ( void )

Example

$name = $aseco->server->gameinfo->getNextModeName();

Return Values

Laps

Class Gameinfo

Documentation of includes/core/gameinfo.class.php

Provides information to the current game which is running.

Properties

Members Example data or description
$aseco->server->gameinfo->mode The Gamemode ID e.g. 2
$aseco->server->gameinfo->script array() with values from GetModeScriptInfo
$aseco->server->gameinfo->matchmaking array() with ModeMatchmaking settings from GetModeScriptSettings
$aseco->server->gameinfo->modebase array() with ModeBase settings from GetModeScriptSettings
$aseco->server->gameinfo->rounds array() with Rounds and RoundsBase settings from GetModeScriptSettings
$aseco->server->gameinfo->time_attack array() with TimeAttack settings from GetModeScriptSettings
$aseco->server->gameinfo->team array() with Team and RoundsBase settings from GetModeScriptSettings
$aseco->server->gameinfo->laps array() with Laps settings from GetModeScriptSettings
$aseco->server->gameinfo->cup array() with Cup and RoundsBase settings from GetModeScriptSettings
$aseco->server->gameinfo->team_attack array() with TeamAttack settings from GetModeScriptSettings
$aseco->server->gameinfo->chase array() with Chase settings from GetModeScriptSettings
$aseco->server->gameinfo->knockout array() with Knockout (supported) settings from GetModeScriptSettings
$aseco->server->gameinfo->doppler array() with Doppler settings from GetModeScriptSettings

The names in a array (e.g. $aseco->server->gameinfo->rounds) are named as they are returned from GetModeScriptSettings, but the prefix S_ is removed. Example: S_UseAlternateRules is accessible as $aseco->server->gameinfo->rounds['UseAlternateRules'].

See the full list of supported Modescript Settings in the Modescript Settings documentation.

Class Gameinfo

Documentation of includes/core/gameinfo.class.php

Provides information to the current game which is running.

Constants

Constants Values
Gameinfo::ROUNDS 1
Gameinfo::TIME_ATTACK 2
Gameinfo::TEAM 3
Gameinfo::LAPS 4
Gameinfo::CUP 5
Gameinfo::TEAM_ATTACK 6
Gameinfo::CHASE 7
Gameinfo::KNOCKOUT 101
Gameinfo::DOPPLER 102

Do NOT use the Values (e.g. 2 for Gameinfo::TIME_ATTACK) directly, because these may be changed if an new Gamemode is added!

This is a private enthusiast Website. Maniaplanet, Trackmania, Shootmania, Nadeo are trademarks of Ubisoft Entertainment.
Windows is a registered trademark of Microsoft Corporation.

Last modified: Wed, 17 Apr 2019 22:18:23 +0200