Master Data Reference of GS2-Enchant

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

Master Data Format

{
  "version": "2023-07-18",
  "balanceParameterModels": [
    {
      "name": "[string]Balance parameter model name",
      "metadata": "[string?]Metadata",
      "totalValue": "[long]Total value",
      "initialValueStrategy": "[string enum]Initial value setting policy",
      "parameters": [
        {
          "name": "[string]Name",
          "metadata": "[string?]Metadata"
        }
      ]
    }
  ],
  "rarityParameterModels": [
    {
      "name": "[string]Rarity parameter model name",
      "metadata": "[string?]Metadata",
      "maximumParameterCount": "[int]Maximum number of parameters to be given",
      "parameterCounts": [
        {
          "count": "[int]Value",
          "weight": "[int]Weight"
        }
      ],
      "parameters": [
        {
          "name": "[string]Name",
          "metadata": "[string?]Metadata",
          "resourceName": "[string]Parameter Resource Name for Game(Not used for GS2)",
          "resourceValue": "[long]Parameter Resource Value for Game(Not used for GS2)",
          "weight": "[int]Weight"
        }
      ]
    }
  ]
}
TypeConditionRequiredDefaultValue LimitsDescription
versionstring
2023-07-18Format version of master data
balanceParameterModelsList<BalanceParameterModel>~ 10000 itemsBalance parameter model
Defines the drawing conditions for balance parameters.
rarityParameterModelsList<RarityParameterModel>~ 10000 itemsRarity parameter model
Defines the drawing conditions for rarity parameters.

Model

BalanceParameterModel

Balance parameter model

Defines the drawing conditions for balance parameters.

TypeConditionRequiredDefaultValue LimitsDescription
balanceParameterModelIdstring
✓*
~ 1024 charsBalance Parameter Model GRN
* Automatically configured on the server
namestring
~ 128 charsBalance parameter model name
Balance parameter model-specific name. Specified using alphanumeric characters, hyphen (-), underscore (_), and period (.).
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.
totalValuelong
0 ~ 9223372036854775805Total value
initialValueStrategyString Enum
enum {
  “average”,
  “lottery”
}
“average”Initial value setting policy
Enumerator String DefinitionDescription
“average”Average
“lottery”Lottery
parametersList<BalanceParameterValueModel>
1 ~ 10 itemsBalance parameter value model list

BalanceParameterValueModel

Balance Parameter Value Model

TypeConditionRequiredDefaultValue LimitsDescription
namestring
~ 64 charsName
metadatastring~ 512 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.

RarityParameterModel

Rarity parameter model

Defines the drawing conditions for rarity parameters.

TypeConditionRequiredDefaultValue LimitsDescription
rarityParameterModelIdstring
✓*
~ 1024 charsRarity Parameter Model GRN
* Automatically configured on the server
namestring
~ 128 charsRarity parameter model name
Rarity parameter model-specific name. Specified using alphanumeric characters, hyphen (-), underscore (_), and period (.).
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.
maximumParameterCountint
1 ~ 10Maximum number of parameters to be given
parameterCountsList<RarityParameterCountModel>
1 ~ 10 itemsRarity parameter count model list
parametersList<RarityParameterValueModel>
1 ~ 1000 itemsRarity parameter value model list

RarityParameterCountModel

Model of the number of rarity parameters granted

TypeConditionRequiredDefaultValue LimitsDescription
countint
0 ~ 10Value
weightint
1 ~ 2147483646Weight

RarityParameterValueModel

Rarity Parameter Value Model

TypeConditionRequiredDefaultValue LimitsDescription
namestring
~ 64 charsName
metadatastring~ 512 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.
resourceNamestring
~ 64 charsParameter Resource Name for Game(Not used for GS2)
resourceValuelong
0 ~ 9223372036854775805Parameter Resource Value for Game(Not used for GS2)
weightint
1 ~ 2147483646Weight