Create your own server list

Maniaplanet public API, ManiaConnect system and the open source PHP SDK.

Moderator: NADEO

User avatar
magnetik
Nadeo
Nadeo
Posts: 1678
Joined: 01 Feb 2012, 19:13
Location: Bordeaux
Contact:

Re: Create your own server list

Post by magnetik »

It should be working now :thumbsup:
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
User avatar
steeffeen
Translator
Translator
Posts: 2472
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: Create your own server list

Post by steeffeen »

hm, i notice a strange behavior and can't really understand what's happening

please see these two lists
1.

Code: Select all

$list = $servers->getFilteredList(array("title"=>"SMStorm", "mode"=>"-3", "length"=>$length, "offset"=>$offset));
http://www.team-devota.com/steeffeen/ma ... /index.php

2.

Code: Select all

$list = $servers->getFilteredList(array("environment"=>"Storm", "mode"=>"-3", "length"=>$length, "offset"=>$offset));
http://www.team-devota.com/steeffeen/ma ... index2.php

the second list has only very few items while the whole code is the same (only the one paramater changed)
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    magnetik
    Nadeo
    Nadeo
    Posts: 1678
    Joined: 01 Feb 2012, 19:13
    Location: Bordeaux
    Contact:

    Re: Create your own server list

    Post by magnetik »

    Try not using the mode filter?
    ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2472
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: Create your own server list

    Post by steeffeen »

    magnetik wrote:Try not using the mode filter?
    same result, no matter whether "mode" is specified or not
    is the "mode" parameter ignored when using the environment parameter?
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      User avatar
      jonthekiller
      Translator
      Translator
      Posts: 4702
      Joined: 15 Jun 2010, 11:07
      Location: In Maniaplanet Alpha
      Contact:

      Re: Create your own server list

      Post by jonthekiller »

      It's normal for Combo, the value $server->title->environment is empty? I haven't this problem for others.
      Image
      User avatar
      steeffeen
      Translator
      Translator
      Posts: 2472
      Joined: 14 Oct 2012, 16:22
      Location: Germany

      Re: Create your own server list

      Post by steeffeen »

      jonthekiller wrote:It's normal for Combo, the value $server->title->environment is empty? I haven't this problem for others.
      i've noticed that for every custom (community) title pack and for Platform but at least on our end it's not empty for Combo
        Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

        ManiaControl, FancyManiaLinks
        User avatar
        jonthekiller
        Translator
        Translator
        Posts: 4702
        Joined: 15 Jun 2010, 11:07
        Location: In Maniaplanet Alpha
        Contact:

        Re: Create your own server list

        Post by jonthekiller »

        Maybe we need to report the bug in the title pack creation or it's only for the Web Services, I don't know. The ingame browser know the environment of the title but not us.

        And the title->cost is always 0 for custom titles and it's not the prize in Planets of the title. It's a bug or another thing?

        EDIT : Is it possible to separate players and spectators? If I want to hide full servers, I can't because some players can be in spectator mode and I can't see it.
        Image
        User avatar
        steeffeen
        Translator
        Translator
        Posts: 2472
        Joined: 14 Oct 2012, 16:22
        Location: Germany

        Re: Create your own server list

        Post by steeffeen »

        the filter "mode" is definitely ignored when using the filter "environment" as well
        additionally environment="Storm" returns only a few server while title="SMStorm" is returning the correct list
          Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

          ManiaControl, FancyManiaLinks
          User avatar
          steeffeen
          Translator
          Translator
          Posts: 2472
          Joined: 14 Oct 2012, 16:22
          Location: Germany

          Re: Create your own server list

          Post by steeffeen »

          steeffeen wrote:the filter "mode" is definitely ignored when using the filter "environment" as well
          is that intended?
            Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

            ManiaControl, FancyManiaLinks
            Post Reply

            Return to “Maniaplanet Web Services”

            Who is online

            Users browsing this forum: No registered users and 0 guests