Page 1 of 1
Teams... (Nations)
Posted: 12 May 2011, 17:55
by w1lla
In the old days there was a way of getting team data out of a playerlogin but since united / united forever there is no more information to get if players are in a team and if that team was made.
Also dedimania has used that kind of type to get information or even show information about TeamID's.
Re: Teams... (Nations)
Posted: 12 May 2011, 18:22
by gouxim
Re: Teams... (Nations)
Posted: 12 May 2011, 18:25
by w1lla
In the old days of nations you could make your own team through a website.
With the team data you could let other people enter your team.
with united came groups which isn't really the same.
Accordingly on this site:
http://www.gamers.org/tmn/docs/ListMethods.html3
GetPlayerList
array GetPlayerList(int, int)
Returns the list of players on the server. This method take two parameters. The first parameter specifies the maximum number of infos to be returned, and the second one the starting index in the list. The list is an array of structures. Each structure contains the following field : Login, NickName, PlayerId, TeamId, IsSpectator, IsInOfficialMode and LadderRanking.
GetPlayerInfo
struct GetPlayerInfo(string)
Returns a struct containing the infos on the player with the specified login. The structure contains the following fields : Login, NickName, IPAddress, ConnectionType, PlayerId, IsSpectator, IsInOfficialMode, HasJoinMatch, a structure named Avatar, an array of structures named Skins and a structure named LadderStats. The structure Avatar and each structure of the array Skins contains two fields FileName and Checksum. The structure LadderStats contains the following fields : Ranking, Score, LastMatchScore, NbrMatchWins, NbrMatchDraws, NbrMatchLosses, NbrTotalPlayers, TeamName, TeamRanking, NbrTotalTeams.
there stands this and that was what dedimania used before.
Will this old structure again be used in the future so that developers or server admins can take use of it.
Re: Teams... (Nations)
Posted: 12 May 2011, 18:27
by gouxim
This is the documentation of the dedicated servers for when you play in Team Mode.
There's no notion of Teams in the data of TMF as you said. However I suppose that when the API will allow access to private data, you'll be able to get group information.
Re: Teams... (Nations)
Posted: 12 May 2011, 18:28
by w1lla
ah ok.
thanks for the explanation.
(will keep the post for beta/release candidate then.)