Page 1 of 1

Requesting ManiaLive documentation for Player properties

Posted: 23 Feb 2013, 10:31
by TatharNuar
I need some documentation for the properties in the DedicatedApi\Structures\Player structure. I don't know what some of the properties represent, and I'm working on a plugin that will make heavy use of the structure.

Re: Requesting ManiaLive documentation for Player properties

Posted: 23 Feb 2013, 11:36
by farfa
Can you give us the name of the property you don't understand ?

Re: Requesting ManiaLive documentation for Player properties

Posted: 23 Feb 2013, 20:19
by TatharNuar
farfa wrote:Can you give us the name of the property you don't understand ?
I can give some examples, but I'd prefer a data type and some short documentation for each of the properties. I don't know what $playerId, $teamId, $path, or $ladderStats are for. Also, does $ladderRanking give the player's worldwide ladder ranking, or the continent-wide ladder ranking? Is $ladderScore an int or a float? What data type is $bestTime, and is it the player's best time during the current challenge, or the player's best time across every challenge for the current map? Is it affected by a server restart or a ManiaLive restart?

Right now I'm working on a plugin that can replace "magic words" in other plugins' config options with dynamic data, and I'd like it to use as much data as I can gather so the plugin would be more useful for other plugin developers, instead of it just being used by my plugins. I could probably figure out most of the Player properties with some var_dump() testing, but I'd rather not waste hours reverse engineering the Player structure.