ModPlayer: Difference between revisions

From The Colonists
Jump to navigation Jump to search
initial creation
 
 
(5 intermediate revisions by the same user not shown)
Line 9: Line 9:
| defaultSourceDemandPriorities
| defaultSourceDemandPriorities
| 201
| 201
| Array of Resource Sourcing Priority
| Default priority order for the buildings in each resource's demand panel
|-
|-
| defaultBuildingSourceDemandPriorities
| defaultBuildingSourceDemandPriorities
| 202
| 202
| Array of Resource Sourcing Priority
| Sourcing Priority in Resource Demand Panel??
|-
|-
| defaultBuildingConstructionPriorities
| defaultBuildingConstructionPriorities
| 203
| 203
| Array of Building Construction Sourcing Priority (2nd menu upper left)
| Building Construction Sourcing Priority (2nd menu upper left)
|-
|-
| defaultResourceTransportPriorities
| defaultResourceTransportPriorities
| 204
| 204
| Array of Resource Transport Priority  (1st menu upper left)
| Resource Transport Priority  (1st menu upper left)
|-
|-
| buildingProductionRecordsPerDay
| buildingProductionRecordsPerDay
| 16
| 16
| Number of ??? per day
| Number of ??? per day in a building's Production Statistics Panel?
|-
|-
| playerItemQuantityRecordsPerDay
| playerItemQuantityRecordsPerDay
| 16
| 16
| Number of ??? per day
| Number of ??? per day in a building's Resource Statistics Panel?
|-
|-
| playerItemRateRecordsPerDay
| playerItemRateRecordsPerDay
| 16
| 16
| Number of ??? per day
| Number of ??? per day in a building's Resource Statistics Panel?
|-
|-
| defaultNotificationLength
| defaultNotificationLength
Line 39: Line 39:
| Duration of notifications (messages in top middle)
| Duration of notifications (messages in top middle)
|-
|-
| customNotificationLengths
| customNotificationLengths <sup> a </sup>
| array?
| array?
| ???
| ???
|-
|-
|}
|}
* note itemCategory is used when itemTypeId=254 to refer to a [[Resource_Categories|category]] (e.g. "Food", "Luxury Food", "Fuel"), otherwise itemCategory=0.
<sup> a </sup> obsolete after Jan. 2023.<br>


=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>

Latest revision as of 17:52, 28 September 2023

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

JSON fields

Name Entry Description
defaultSourceDemandPriorities 201 Default priority order for the buildings in each resource's demand panel
defaultBuildingSourceDemandPriorities 202 Sourcing Priority in Resource Demand Panel??
defaultBuildingConstructionPriorities 203 Building Construction Sourcing Priority (2nd menu upper left)
defaultResourceTransportPriorities 204 Resource Transport Priority (1st menu upper left)
buildingProductionRecordsPerDay 16 Number of ??? per day in a building's Production Statistics Panel?
playerItemQuantityRecordsPerDay 16 Number of ??? per day in a building's Resource Statistics Panel?
playerItemRateRecordsPerDay 16 Number of ??? per day in a building's Resource Statistics Panel?
defaultNotificationLength 30.0 Duration of notifications (messages in top middle)
customNotificationLengths a array? ???

a obsolete after Jan. 2023.

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": {}
}