Master Data Reference of GS2-Experience

Reference of the format of master data and various models to be imported

Master Data Format

{
  "version": "2019-01-11",
  "experienceModels": [
    {
      "name": "[string]Experience Model Name",
      "metadata": "[string?]Metadata",
      "defaultExperience": "[long]Initial Experience Value",
      "defaultRankCap": "[long]Initial value of rank cap",
      "maxRankCap": "[long]Maximum rank cap",
      "rankThreshold": {
        "metadata": "[string?]Metadata",
        "values": [
          "[long]Rank Up Experience Threshold"
        ]
      },
      "acquireActionRates": [
        {
          "name": "[string]Remuneration addition table name",
          "mode": "[string]Remuneration addition table type",
          "rates": [
            "[double]Addition amount (multiplier)"
          ],
          "bigRates": [
            "[string]Addition amount (multiplier)"
          ]
        }
      ]
    }
  ]
}
TypeConditionRequiredDefaultValue LimitsDescription
versionstring
2019-01-11Format version of master data
experienceModelsList<ExperienceModel>~ 100 itemsExperience Model
An experience model is an entity that sets the threshold of experience required for rank advancement and for each default and maximum rank cap.

Model

ExperienceModel

Experience Model

An experience model is an entity that sets the threshold of experience required for rank advancement and for each default and maximum rank cap.

TypeConditionRequiredDefaultValue LimitsDescription
experienceModelIdstring
✓*
~ 1024 charsExperience Model GRN
* Automatically configured on the server
namestring
~ 128 charsExperience Model Name
Experience model-specific name. Specified using alphanumeric characters, hyphens (-), underscores (_), and periods (.).
metadatastring~ 2048 charsMetadata
Arbitrary values can be set in the metadata.
Since they do not affect GS2’s behavior, they can be used to store information used in the game.
defaultExperiencelong
00 ~ 9223372036854775805Initial Experience Value
defaultRankCaplong
0 ~ 9223372036854775805Initial value of rank cap
maxRankCaplong
0 ~ 9223372036854775805Maximum rank cap
rankThresholdThreshold
rank-up threshold
acquireActionRatesList<AcquireActionRate>0 ~ 100 itemsList of Remuneration addition table

Threshold

Rank Up Threshold

The rank-up threshold is a sequence of numbers needed to determine rank (level) from experience. If the value [10, 20] is set, experience values between 1 and 9 are rank 1, experience values between 10 and 19 are rank 2, experience values at 20 are rank 3, and no more experience values can be obtained.

TypeConditionRequiredDefaultValue LimitsDescription
metadatastring~ 2048 charsMetadata
Arbitrary values can be set in the metadata.
Since they do not affect GS2’s behavior, they can be used to store information used in the game.
valuesList<long>
1 ~ 10000 itemsList of Rank Up Experience Threshold

AcquireActionRate

Remuneration addition table master

You can adjust the amount of rewards according to the rank.

TypeConditionRequiredDefaultValue LimitsDescription
namestring
~ 128 charsRemuneration addition table name
modeString Enum
enum {
  “double”,
  “big”
}
“double”Remuneration addition table type
Enumerator String DefinitionDescription
“double”Floating point number less than 2^48
“big”Floating point number less than 1024 digits
ratesList<double>{mode} == “double”
✓*
1 ~ 10000 itemsAmount added per rank (multiplier)
* Required if mode is “double”
bigRatesList<string>{mode} == “big”
✓*
1 ~ 10000 itemsAmount added per rank (multiplier)
* Required if mode is “big”