Home docs nex protocols Ranking (112)
Post

Ranking (112)

To view the old version of the Ranking protocol, check Ranking Legacy.

Extended Protocols

The following games have additional methods in the ranking protocol:

This remainder of this page describes the methods that are not specific to any game.

Methods

(1) UploadScore

Request

TypeName
RankingScoreDatascoreData
Uint64uniqueId

Response

This method does not return anything.

(2) DeleteScore

Request

TypeName
Uint32category
Uint64uniqueId

Response

This method does not return anything.

(3) DeleteAllScores

Request

TypeName
Uint64uniqueId

Response

This method does not return anything.

(4) UploadCommonData

Request

TypeName
BuffercommonData
Uint64uniqueId

Response

This method does not return anything.

(5) DeleteCommonData

Request

TypeName
Uint64uniqueId

Response

This method does not return anything.

(6) GetCommonData

Request

TypeName
Uint64uniqueId

Response

TypeName
BuffercommonData

(7) ChangeAttributes

Request

TypeName
Uint32category
RankingChangeAttributesParamchangeParam
Uint64uniqueId

Response

This method does not return anything.

(8) ChangeAllAttributes

Request

TypeName
RankingChangeAttributesParamchangeParam
Uint64uniqueId

Response

This method does not return anything.

(9) GetRanking

Request

TypeNameDescription
Uint8rankingModeRanking mode
Uint32categoryCategory (game-specific)
RankingOrderParamorderParamA bunch of parameters
Uint64uniqueId 
PIDprincipalId 

Response

TypeName
RankingResultpResult

(10) GetApproxOrder

Request

TypeName
Uint32category
RankingOrderParamorderParam
Uint32score
Uint64uniqueId
PIDprincipalId

Response

TypeName
Uint32pOrder

(11) GetStats

Request

TypeNameDescription
Uint32category 
RankingOrderParamorderParam 
Uint32flagsSpecifies the kind of stats returned

Response

TypeName
RankingStatspStats

(12) GetRankingByPIDList

Request

TypeNameDescription
List<PID>principalIdListUser ids
Uint8rankingModeRanking mode
Uint32category 
RankingOrderParamorderParam 
Uint64uniqueId 

Response

TypeName
RankingResultpResult

(13) GetRankingByUniqueIdList

Request

TypeNameDescription
List<Uint64>nexUniqueIdList 
Uint8rankingModeRanking mode
Uint32category 
RankingOrderParamorderParam 
Uint64uniqueId 

Response

TypeName
RankingResultpResult

(14) GetCachedTopXRanking

Request

TypeName
Uint32category
RankingOrderParamorderParam

Response

TypeName
RankingCachedResultpResult

(15) GetCachedTopXRankings

Request

TypeName
List<Uint32>categories
List<RankingOrderParam>orderParams

Response

TypeName
List<RankingCachedResult>pResults

Types

RankingOrderParam (Structure)

TypeNameDescription
Uint8orderCalculationRank calculation
Uint8groupIndexFilter index
Uint8groupNumFilter number
Uint8timeScopeTime scope
Uint32offsetBase rank (0 is world record)
Uint8lengthDesired number of rankings

RankingRankData (Structure)

TypeNameDescription
PIDprincipalIdUser id
Uint64uniqueId 
Uint32orderRank
Uint32categoryCategory
Uint32scoreScore
List<byte>groupsFilters
Uint64paramAdditional info
BuffercommonDataAdditional data

Revision 1:

TypeNameDescription
DateTimeupdateTimeNEX 3.6.0+

RankingResult (Structure)

TypeNameDescription
List<RankingRankData>rankDataListRankings
Uint32totalCountTotal number of ranking entries on the server
DateTimesinceTime 

RankingCachedResult (Structure)

This structure inherits from RankingResult

TypeName
DateTimecreatedTime
DateTimeexpiredTime
Uint8maxLength

RankingStats (Structure)

The statsList always has 5 entries. Depending on the flags given to GetStats, some entries may be 0.

TypeName
List<Double>statsList

RankingScoreData (Structure)

TypeName
Uint32category
Uint32score
Uint8orderBy
Uint8updateMode
List<Uint8>groups
Uint64param

RankingChangeAttributesParam (Structure)

TypeName
Uint8modificationFlag
List<Uint8>groups
Uint64param

Ranking Mode

ValueDescription
0Global, only the top 1000 entries can be downloaded
1Global rankings around own entry
2Friends rankings around own entry
4Own ranking only

Flags

ValueDescription
0x1Number of ranking entries
0x2Sum of all scores
0x4Lowest score
0x8Highest score
0x10Average score

Rank Calculation

ValueDescription
0Standard ranking (1224)
1Ordinal ranking (1234)
Contents