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"
}
]
}
]
}| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| version | string | ✓ | 2023-07-18 | Format version of master data | ||
| balanceParameterModels | List<BalanceParameterModel> | ~ 10000 items | Balance parameter model Defines the drawing conditions for balance parameters. | |||
| rarityParameterModels | List<RarityParameterModel> | ~ 10000 items | Rarity parameter model Defines the drawing conditions for rarity parameters. |
Model
BalanceParameterModel
Balance parameter model
Defines the drawing conditions for balance parameters.
| Type | Condition | Required | Default | Value Limits | Description | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| balanceParameterModelId | string | ✓* | ~ 1024 chars | Balance Parameter Model GRN * Automatically configured on the server | ||||||||
| name | string | ✓ | ~ 128 chars | Balance parameter model name Balance parameter model-specific name. Specified using alphanumeric characters, hyphen (-), underscore (_), and period (.). | ||||||||
| metadata | string | ~ 2048 chars | Metadata 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. | |||||||||
| totalValue | long | ✓ | 0 ~ 9223372036854775805 | Total value | ||||||||
| initialValueStrategy | String Enum enum { “average”, “lottery” } | ✓ | “average” | Initial value setting policy
| ||||||||
| parameters | List<BalanceParameterValueModel> | ✓ | 1 ~ 10 items | Balance parameter value model list |
BalanceParameterValueModel
Balance Parameter Value Model
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| name | string | ✓ | ~ 64 chars | Name | ||
| metadata | string | ~ 512 chars | Metadata 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.
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| rarityParameterModelId | string | ✓* | ~ 1024 chars | Rarity Parameter Model GRN * Automatically configured on the server | ||
| name | string | ✓ | ~ 128 chars | Rarity parameter model name Rarity parameter model-specific name. Specified using alphanumeric characters, hyphen (-), underscore (_), and period (.). | ||
| metadata | string | ~ 2048 chars | Metadata 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. | |||
| maximumParameterCount | int | ✓ | 1 ~ 10 | Maximum number of parameters to be given | ||
| parameterCounts | List<RarityParameterCountModel> | ✓ | 1 ~ 10 items | Rarity parameter count model list | ||
| parameters | List<RarityParameterValueModel> | ✓ | 1 ~ 1000 items | Rarity parameter value model list |
RarityParameterCountModel
Model of the number of rarity parameters granted
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| count | int | ✓ | 0 ~ 10 | Value | ||
| weight | int | ✓ | 1 ~ 2147483646 | Weight |
RarityParameterValueModel
Rarity Parameter Value Model
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| name | string | ✓ | ~ 64 chars | Name | ||
| metadata | string | ~ 512 chars | Metadata 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. | |||
| resourceName | string | ✓ | ~ 64 chars | Parameter Resource Name for Game(Not used for GS2) | ||
| resourceValue | long | ✓ | 0 ~ 9223372036854775805 | Parameter Resource Value for Game(Not used for GS2) | ||
| weight | int | ✓ | 1 ~ 2147483646 | Weight |