ModPlayer: Difference between revisions

From The Colonists
Jump to navigation Jump to search
initial creation
 
No edit summary
Line 44: Line 44:
|-
|-
|}
|}
* note itemCategory is used when itemTypeId=254 to refer to a [[Resource_Categories|category]] (e.g. "Food", "Luxury Food", "Fuel"), otherwise itemCategory=0.


=Example JSON=
=Example JSON=
<pre>
<pre>
{
{
   "constructionGridBuildingIds": [
   "defaultSourceDemandPriorities": [
    5,
    11,
    13,
    12
  ],
  "defaultBuildingSourceDemandPriorities": [
    3,
    4
  ],
  "defaultBuildingConstructionPriorities": [
    3,
     41,
     41,
     19,
     5
     38
  ],
  "defaultResourceTransportPriorities": [
    2,
    43,
     0
   ],
   ],
   "resourceCategoriesDict": {
   "buildingProductionRecordsPerDay": 16,
    "0": [
  "playerItemQuantityRecordsPerDay": 16,
      {
  "playerItemRateRecordsPerDay": 16,
        "id": 0,
  "defaultNotificationLength": 30.0,
        "itemTypeId": 43,
  "customNotificationLengths": {}
        "itemCategory": 0
      },
      {
        "id": 1,
        "itemTypeId": 45,
        "itemCategory": 0
      },
      {
        "id": 2,
        "itemTypeId": 46,
        "itemCategory": 0
      }
    ],
    "1": [
      {
        "id": 9,
        "itemTypeId": 6,
        "itemCategory": 0
      },
      {
        "id": 10,
        "itemTypeId": 2,
        "itemCategory": 0
      }
    ],
    "2": [
      {
        "id": 20,
        "itemTypeId": 12,
        "itemCategory": 0
      },
      {
        "id": 21,
        "itemTypeId": 254, // 254 for item category
        "itemCategory": 2 // item category 2 = simple food
      },
      {
        "id": 24,
        "itemTypeId": 254, // 254 for item category
        "itemCategory": 4 // item category 4 = alcohol
      }
    ]
  }
  "techCategoryOrderIds": [
    0,
    6,
    4,
  ]
}
}
</pre>
</pre>

Revision as of 16:54, 6 January 2023

The player.json file may be used to change the sourcing priorities and notification settings.

JSON fields

Name Entry Description
defaultSourceDemandPriorities 201 Array of Resource Sourcing Priority
defaultBuildingSourceDemandPriorities 202 Array of Resource Sourcing Priority
defaultBuildingConstructionPriorities 203 Array of Building Construction Sourcing Priority (2nd menu upper left)
defaultResourceTransportPriorities 204 Array of Resource Transport Priority (1st menu upper left)
buildingProductionRecordsPerDay 16 Number of ??? per day
playerItemQuantityRecordsPerDay 16 Number of ??? per day
playerItemRateRecordsPerDay 16 Number of ??? per day
defaultNotificationLength 30.0 Duration of notifications (messages in top middle)
customNotificationLengths array? ???

Example JSON

{
  "defaultSourceDemandPriorities": [
    5,
    11,
    13,
    12
  ],
  "defaultBuildingSourceDemandPriorities": [
    3,
    4
  ],
  "defaultBuildingConstructionPriorities": [
    3,
    41,
    5
  ],
  "defaultResourceTransportPriorities": [
    2,
    43,
    0
  ],
  "buildingProductionRecordsPerDay": 16,
  "playerItemQuantityRecordsPerDay": 16,
  "playerItemRateRecordsPerDay": 16,
  "defaultNotificationLength": 30.0,
  "customNotificationLengths": {}
}