Page 1 of 1
List of Titlepack servers
Posted: 19 Aug 2017, 14:45
by maxi031
Is there any way to get list of titlepack servers from maniascript?
I have tried to read them from TitleFlow.LocalServers_CurrentTitle but this list is always empty.
Re: List of Titlepack servers
Posted: 19 Aug 2017, 17:58
by zocka
Re: List of Titlepack servers
Posted: 19 Aug 2017, 18:03
by maxi031
Thanks zocka i had no idea that this exist.
Re: List of Titlepack servers
Posted: 20 Aug 2017, 03:48
by maxi031
Looks like i was celebrating too soon, now i get the list of servers but titleUids filter does not work, it never sorts titles by uid i specified.
For example this:
https://www.maniaplanet.com/webservices ... &length=10 should give me servers sorted by playerCount and titleUids=RPG@tmrpg but it returns servers with all kind titleUids.
Re: List of Titlepack servers
Posted: 20 Aug 2017, 07:55
by zocka
Swagger seems to build wrong query strings:
to use these array-arguments you have to use <argument>[]=... for each value, so e.g.
https://www.maniaplanet.com/webservices ... =RPG@tmrpg
To request for multiple values you would have multiple <argument>[] parameters in your query string like
?titleUids[]=RPG@tmrpg&titleUids[]=TMCanyon@nadeo.
You can have a look at how the stations display the server list:
https://www.maniaplanet.com/maniascript ... Script.txt
line 209 ff.
Re: List of Titlepack servers
Posted: 20 Aug 2017, 09:11
by maxi031
Now it works great, that is just what i needed thanks you saved me a lot of troubles.
Oh btw you need to register your manialink in mp4 since old mp3 manialink register don't work in mp4.
I tried to visit it from your signature but it says it doesn't exist.