[1.0] Missing Ranking information on getMultiplayerRanking()

Trackmania Forever public API and its open source PHP SDK.

Moderator: NADEO

Post Reply
User avatar
m4rcel
Posts: 653
Joined: 15 Jun 2010, 11:12
Contact:

[1.0] Missing Ranking information on getMultiplayerRanking()

Post by m4rcel » 14 Jun 2011, 15:03

Some minutes ago, the user Blade from the German Mania-Community.de pointed me on a strange behavior of the TMWS. As this seems to be not the intended behavior, I want to name it here ;)

If you request the Multiplayer-Rankings of a Player, the ranking-array always is empty.

Example code:

Code: Select all

$players = new TrackMania_Players(TMWS_USER, TMWS_PASS);
$multi = $tmPlayers->getMultiplayerRanking('m4rcel');
var_dump($multi);
Example output:

Code: Select all

object(stdClass)#20 (4) {
  ["environment"]=>
  string(5) "Merge"
  ["unit"]=>
  string(13) "Ladder Points"
  ["points"]=>
  string(8) "72112.01"
  ["ranks"]=>
  array(0) {
  }
}
Whereas the entries "environment", "unit", and "points" are correct, the entry "ranks" always seems to have an empty array, not giving the expected Multiplayer Rank of the requested player. (In this case, it should be sth. around 6000).

Please have a look on this ;)
Marcel
ImageImage
Image

User avatar
gouxim
Nadeo
Nadeo
Posts: 1154
Joined: 14 Jun 2010, 17:20

Re: [1.0] Missing Ranking information on getMultiplayerRanki

Post by gouxim » 14 Jun 2011, 15:16

Thanks for the report.
There's a little glitch in the Database at the moment: the data is just not in the table :lol:
Hopefully it'll be fixed soon enough.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)

User avatar
m4rcel
Posts: 653
Joined: 15 Jun 2010, 11:12
Contact:

Re: [1.0] Missing Ranking information on getMultiplayerRanki

Post by m4rcel » 14 Jun 2011, 15:30

Thank you for your fast response :)

If have another question, which is not directly related to the problem before, but I want not to open a new thread for it.

As the "ranks" element is given as array, is it planned to provide the ranks of all zones within this array?
For example, when requesting the ->getSoloRanking(), I get for my account the world rank (Zone #1). Will I also be able to get the rank in Germany, in Thuringia and in Erfurt in near future?
(Otherwise specifying the ranks as array would make no sense ^^ )
ImageImage
Image

User avatar
gouxim
Nadeo
Nadeo
Posts: 1154
Joined: 14 Jun 2010, 17:20

Re: [1.0] Missing Ranking information on getMultiplayerRanki

Post by gouxim » 14 Jun 2011, 15:56

The rank is indeed an array for the ranks in each zones of the path of the player.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)

User avatar
gouxim
Nadeo
Nadeo
Posts: 1154
Joined: 14 Jun 2010, 17:20

Re: [1.0] Missing Ranking information on getMultiplayerRanki

Post by gouxim » 15 Jun 2011, 15:17

Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)

User avatar
m4rcel
Posts: 653
Joined: 15 Jun 2010, 11:12
Contact:

Re: [1.0] Missing Ranking information on getMultiplayerRanki

Post by m4rcel » 21 Jun 2011, 12:51

(A late) thank you for fiing this ;)

I am currently creating an overview about the return values and their structure of the SDK, and I noticed the following things. Please have a look on those, too ;)
(This overview will be posted as soon as I know more about the second point ;))
  • TrackMania_Players::getSoloRanking($login)
    This method only returns the ranking of the World zone. Why is it not returning, like getMultiplayerRanking() all zones down to that one, the player is in?
  • TrackMania_Servers::get($login)
    I tried to use this method, but it always returned an "Object not found" message. In detail, I tried to request data from https://ws.trackmania.com/tmf/servers/hide_and_seek/ , which is currently running. Is there any restriction on the Servers supported by this method, or why do I get the "Object not found" message?
ImageImage
Image

User avatar
gouxim
Nadeo
Nadeo
Posts: 1154
Joined: 14 Jun 2010, 17:20

Re: [1.0] Missing Ranking information on getMultiplayerRanki

Post by gouxim » 21 Jun 2011, 15:25

m4rcel wrote:
  • TrackMania_Players::getSoloRanking($login)
    This method only returns the ranking of the World zone. Why is it not returning, like getMultiplayerRanking() all zones down to that one, the player is in?
Because the granularity of the data is not the same. The Multiplayer rankings are much more detailed than the solo rankings.
m4rcel wrote: [*]TrackMania_Servers::get($login)
I tried to use this method, but it always returned an "Object not found" message. In detail, I tried to request data from https://ws.trackmania.com/tmf/servers/hide_and_seek/ , which is currently running. Is there any restriction on the Servers supported by this method, or why do I get the "Object not found" message? [/list]
This methods only returns a server if it's online. I might add that in the doc :)

Edit: it is actually in the doc: http://trackmania-ws-sdk.googlecode.com ... rvers.html (see the login parameter)

eg. https://ws.trackmania.com/tmf/servers/freezone001/
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)

User avatar
m4rcel
Posts: 653
Joined: 15 Jun 2010, 11:12
Contact:

Re: [1.0] Missing Ranking information on getMultiplayerRanki

Post by m4rcel » 21 Jun 2011, 16:18

Thanks for your answer :)

I already guessed that point with the Solo-Ranking, but I wanted to be sure that it is intended to only give the world zone ^^

To the servers: Okay, I tried some other servers where I know the login from, and they seem to work. But what I do not understand now: Why is https://ws.trackmania.com/tmf/servers/hide_and_seek/ returning the not-found-message? This server is up and running, currently more than 10 players on them, so why do I not get its information?


As said in the previous post, I finished the overview about the return values. See: All return values and their structures ;)
ImageImage
Image

User avatar
gouxim
Nadeo
Nadeo
Posts: 1154
Joined: 14 Jun 2010, 17:20

Re: [1.0] Missing Ranking information on getMultiplayerRanki

Post by gouxim » 21 Jun 2011, 17:11

m4rcel wrote:Okay, I tried some other servers where I know the login from, and they seem to work. But what I do not understand now: Why is https://ws.trackmania.com/tmf/servers/hide_and_seek/ returning the not-found-message? This server is up and running, currently more than 10 players on them, so why do I not get its information?
The database from which the requests are done is a replicate of a database which is an aggregate of all the databases :ugeek: You server is indeed not in my database. It may be a aggregation lag or a replication lag.

Has it been up and running for a long time?
If not, you should try again in like 2h.
If it has been up and running for a long time, then it may be a bug and I'll look into it.
Please do not PM for support. Instead, create a thread so that everyone can contribute or benefit from the answer! 8-)

User avatar
m4rcel
Posts: 653
Joined: 15 Jun 2010, 11:12
Contact:

Re: [1.0] Missing Ranking information on getMultiplayerRanki

Post by m4rcel » 21 Jun 2011, 18:25

I asked the server administrator (it's not mine at all ^^), and he said that the server was last down around 3 months ago.

I will keep trying to request these data in the next hours, until now, the TMWS always returned the not-found-message.

EDIT @ 2011-06-22, 08:17
Still "object not found" on requesting the Hide'n'seek-Server...
ImageImage
Image

Post Reply

Return to “Trackmania Forever Web Services”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest