-
Notifications
You must be signed in to change notification settings - Fork 68
Ranking Protocol
Yannik Marchand edited this page Oct 13, 2023
·
27 revisions
NEX Protocols > Ranking (112)
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.
Method ID | Method Name |
---|---|
1 | UploadScore |
2 | DeleteScore |
3 | DeleteAllScores |
4 | UploadCommonData |
5 | DeleteCommonData |
6 | GetCommonData |
7 | ChangeAttributes |
8 | ChangeAllAttributes |
9 | GetRanking |
10 | GetApproxOrder |
11 | GetStats |
12 | GetRankingByPIDList |
13 | GetRankingByUniqueIdList |
14 | GetCachedTopXRanking |
15 | GetCachedTopXRankings |
Type | Name |
---|---|
RankingScoreData | scoreData |
Uint64 | uniqueId |
This method does not return anything.
Type | Name |
---|---|
Uint32 | category |
Uint64 | uniqueId |
This method does not return anything.
Type | Name |
---|---|
Uint64 | uniqueId |
This method does not return anything.
Type | Name |
---|---|
Buffer | commonData |
Uint64 | uniqueId |
This method does not return anything.
Type | Name |
---|---|
Uint64 | uniqueId |
This method does not return anything.
Type | Name |
---|---|
Uint64 | uniqueId |
Type | Name |
---|---|
Buffer | commonData |
Type | Name |
---|---|
Uint32 | category |
RankingChangeAttributesParam | changeParam |
Uint64 | uniqueId |
This method does not return anything.
Type | Name |
---|---|
RankingChangeAttributesParam | changeParam |
Uint64 | uniqueId |
This method does not return anything.
Type | Name | Description |
---|---|---|
Uint8 | rankingMode | Ranking mode |
Uint32 | category | Category (game-specific) |
RankingOrderParam | orderParam | A bunch of parameters |
Uint64 | uniqueId | |
PID | principalId |
Type | Name |
---|---|
RankingResult | pResult |
Type | Name |
---|---|
Uint32 | category |
RankingOrderParam | orderParam |
Uint32 | score |
Uint64 | uniqueId |
PID | principalId |
Type | Name |
---|---|
Uint32 | pOrder |
Type | Name | Description |
---|---|---|
Uint32 | category | |
RankingOrderParam | orderParam | |
Uint32 | flags | Specifies the kind of stats returned |
Value | Description |
---|---|
0x1 | Number of ranking entries |
0x2 | Sum of all scores |
0x4 | Lowest score |
0x8 | Highest score |
0x10 | Average score |
Type | Name |
---|---|
RankingStats | pStats |
Type | Name | Description |
---|---|---|
List<PID> | principalIdList | User ids |
Uint8 | rankingMode | Ranking mode |
Uint32 | category | |
RankingOrderParam | orderParam | |
Uint64 | uniqueId |
Type | Name |
---|---|
RankingResult | pResult |
Type | Name | Description |
---|---|---|
List<Uint64> | nexUniqueIdList | |
Uint8 | rankingMode | Ranking mode |
Uint32 | category | |
RankingOrderParam | orderParam | |
Uint64 | uniqueId |
Type | Name |
---|---|
RankingResult | pResult |
Type | Name |
---|---|
Uint32 | category |
RankingOrderParam | orderParam |
Type | Name |
---|---|
RankingCachedResult | pResult |
Type | Name |
---|---|
List<Uint32> | categories |
List<RankingOrderParam> | orderParams |
Type | Name |
---|---|
List<RankingCachedResult> | pResults |
RankingOrderParam (Structure)
Type | Name | Description |
---|---|---|
Uint8 | orderCalculation | Rank calculation |
Uint8 | groupIndex | Filter index |
Uint8 | groupNum | Filter number |
Uint8 | timeScope | Time scope |
Uint32 | offset | Base rank (0 is world record) |
Uint8 | length | Desired number of rankings |
Value | Description |
---|---|
0 | Standard ranking (1224) |
1 | Ordinal ranking (1234) |
RankingRankData (Structure)
Type | Name | Description |
---|---|---|
PID | principalId | User id |
Uint64 | uniqueId | |
Uint32 | order | Rank |
Uint32 | category | Category |
Uint32 | score | Score |
List<byte> | groups | Filters |
Uint64 | param | Additional info |
Buffer | commonData | Additional data |
RankingResult (Structure)
Type | Name | Description |
---|---|---|
List<RankingRankData> | rankDataList | Rankings |
Uint32 | totalCount | Total number of ranking entries on the server |
DateTime | sinceTime |
RankingCachedResult (Inherits RankingResult)
Type | Name |
---|---|
DateTime | createdTime |
DateTime | expiredTime |
Uint8 | maxLength |
RankingStats (Structure)
The statsList always has 5 entries. Depending on the flags given to GetStats, some entries may be 0.
Type | Name |
---|---|
List<Double> | statsList |
RankingScoreData (Structure)
Type | Name |
---|---|
Uint32 | category |
Uint32 | score |
Uint8 | orderBy |
Uint8 | updateMode |
List<Uint8> | groups |
Uint64 | param |
RankingChangeAttributesParam (Structure)
Type | Name |
---|---|
Uint8 | modificationFlag |
List<Uint8> | groups |
Uint64 | param |
Value | Description |
---|---|
0 | Global, only the top 1000 entries can be downloaded |
1 | Global rankings around own entry |
4 | Own ranking only |
- Home
-
NEX
- PRUDP Protocol
- RMC Protocol
-
NEX Services
- Common
- Nintendo
- Kerberos Authentication
- Hpp Server
- NPLN
- Pia
- Switch Servers
- Other Pages