ModBuildingProductionDataInfo: Difference between revisions
Stlnegril9 (talk | contribs) No edit summary |
Stlnegril9 (talk | contribs) correct itemRequirements |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
= | =BuildingProduction Types= | ||
place holder, under construction. <br> | place holder, under construction. <br> | ||
List of all the | List of all the BuildingProductionDataInfo entries and example values. <br> | ||
==Mod Building.json - ageComponentsDict - BuildingProductionDataInfo == | ==Mod Building.json - ageComponentsDict - BuildingProductionDataInfo == | ||
| Line 27: | Line 27: | ||
| ?? | | ?? | ||
| 0.0 | | 0.0 | ||
| [[Bakery]], [[Fishing_Hut]], [[Forestry]], [[ | | [[Bakery]], [[Fishing_Hut]], [[Forestry]], Lumberjack Hut [[Lumberjack_Hut_L1|L1]], [[Lumberjack_Hut_L2|L2]], [[Lumberjack_Hut_L3|L3]], Surface Mine [[Surface_Mine_L1|L1]], [[Surface_Mine_L2|L2]], [[Surface_Mine_L3|L3]], Road Layer [[Road_Layer_L1|L1]], [[Road_Layer_L2|L2]], [[Vegetable Farm]], [[Wheat Farm]], | ||
|- | |- | ||
| itemStackGroupsProduced | | itemStackGroupsProduced | ||
| Line 34: | Line 34: | ||
| | | | ||
|- | |- | ||
| miscCatProduced | | [[MiscCatModIds|miscCatProduced]] | ||
| ID of icon for output panel | | ID of icon for output panel | ||
| 255 | | 255 | ||
| [[Forestry]], [[ | | [[Forestry]], Road Layer [[Road_Layer_L1|L1]], [[Road_Layer_L2|L2]], Shaft Mine [[Shaft_Mine_L1|L1]], [[Shaft_Mine_L2|L2]], Workshop [[Workshop _L1|L1]], [[Workshop_L2|L2]], [[Workshop_L3|L3]] | ||
|- | |- | ||
| itemRequirements | | itemRequirements | ||
| array of | | array of resource, resource category, and/or tile required | ||
| - | | - | ||
| | | | ||
| Line 57: | Line 57: | ||
| ?? | | ?? | ||
| -1.0 | | -1.0 | ||
| | | [[Blast_Furnace]], [[Brewery]], [[Brickyard]], [[Chocolate_Factory]], [[Cocoa_Farm]], [[Glassworks]], [[Blacksmith]], [[Orchard]], [[Paper_Mill]], [[Printing_Press]], [[Sawmill]], [[SteelWorks]], [[Tannery]], [[Weaponsmith]], [[Well]] | ||
|- | |- | ||
| workerProductionSpeedBoostFactor | | workerProductionSpeedBoostFactor | ||
| Line 67: | Line 67: | ||
| 0, unless animation called every frame, then=4 | | 0, unless animation called every frame, then=4 | ||
| 4 | | 4 | ||
| | | For any custom building with animation developed in Unity, the building_###.json file must have "activeDirtyType" set to 4. | ||
|- | |- | ||
| typeId | | typeId | ||
| Line 77: | Line 77: | ||
Other BuildingProduction Types may have additional entries:<br> | Other BuildingProduction Types may have additional entries:<br> | ||
==Mod Building.json - ageComponentsDict - BuildingProductionFishingHutDataInfo== | ==Mod Building.json - ageComponentsDict - BuildingProductionFishingHutDataInfo== | ||
Table of building.json -> ageComponentsDict -> BuildingProductionFishingHutDataInfoentries: | Table of building.json -> ageComponentsDict -> BuildingProductionFishingHutDataInfoentries: | ||
| Line 161: | Line 162: | ||
| externalTrackOffsets | | externalTrackOffsets | ||
| ? | | ? | ||
| 0 | | 0 | ||
|- | |- | ||
| Line 182: | Line 182: | ||
|- | |- | ||
| removeAmount | | removeAmount | ||
| ? | | # resources removed from pile? | ||
| | | 1 | ||
|- | |- | ||
| mineableNaturalResourceInfos | | mineableNaturalResourceInfos | ||
| | | array of natural resources surface mine can mine | ||
| | | - | ||
|- | |- | ||
|} | |} | ||
| Line 197: | Line 197: | ||
|- | |- | ||
| roadTypeId | | roadTypeId | ||
| | | ID of road | ||
| 5 | | 5 | ||
|- | |- | ||
| pathTypeId | | pathTypeId | ||
| | | ID of Path | ||
| 4 | | 4 | ||
|- | |- | ||
|} | |} | ||
==Mod Building.json - ageComponentsDict - BuildingProductionTreeFarmDataInfo== | ==Mod Building.json - ageComponentsDict - BuildingProductionTreeFarmDataInfo== | ||
Latest revision as of 19:25, 14 June 2023
BuildingProduction Types
place holder, under construction.
List of all the BuildingProductionDataInfo entries and example values.
Mod Building.json - ageComponentsDict - BuildingProductionDataInfo
Table of building.json -> ageComponentsDict -> BuildingProductionDataInfo entries:
| Entry | Description | Example | Non-Default Example |
|---|---|---|---|
| $type | "BuildingProductionDataInfo, Game" | default | |
| processTime | length of production cycle | 30.0 | |
| minProcessTime | Animal Field related | -1.0 | Sheep_Farm, Cow_Farm |
| additionalTime | ?? | 0.0 | Bakery, Fishing_Hut, Forestry, Lumberjack Hut L1, L2, L3, Surface Mine L1, L2, L3, Road Layer L1, L2, Vegetable Farm, Wheat Farm, |
| itemStackGroupsProduced | array of resource(s) produced | example | |
| miscCatProduced | ID of icon for output panel | 255 | Forestry, Road Layer L1, L2, Shaft Mine L1, L2, Workshop L1, L2, L3 |
| itemRequirements | array of resource, resource category, and/or tile required | - | |
| defaultProductionBalance | default split for multiple outputs | 50 | Sheep_Farm Obsolete reasons? |
| isClearanceModeAvailable | Destroy produced resource | false | Lumberjack Hut L3, Surface_Mine_L3 |
| displayProcessTime | ?? | -1.0 | Blast_Furnace, Brewery, Brickyard, Chocolate_Factory, Cocoa_Farm, Glassworks, Blacksmith, Orchard, Paper_Mill, Printing_Press, Sawmill, SteelWorks, Tannery, Weaponsmith, Well |
| workerProductionSpeedBoostFactor | yyy | 1.0 | |
| activeDirtyType | 0, unless animation called every frame, then=4 | 4 | For any custom building with animation developed in Unity, the building_###.json file must have "activeDirtyType" set to 4. |
| typeId | 21 = BuildingProductionDataInfo | 21 |
Other BuildingProduction Types may have additional entries:
Mod Building.json - ageComponentsDict - BuildingProductionFishingHutDataInfo
Table of building.json -> ageComponentsDict -> BuildingProductionFishingHutDataInfoentries:
| Entry | Description | Example |
|---|---|---|
| fishingTileOffset | tile location of fish tile | default |
| intoProcessTime | delay in? | 1.75 |
| outOfProcessTime | delay out? | 6.0 |
Mod Building.json - ageComponentsDict - BuildingProductionForestryDataInfo
Table of building.json -> ageComponentsDict -> BuildingProductionForestryDataInfo:
| Entry | Description | Example |
|---|---|---|
| plantableFloraSpecs | Array of type of trees | 2/null |
| radius | bot search radius? | 0 |
| totalRange | ?? | 0 |
Mod Building.json - ageComponentsDict - BuildingProductionLumberjackDataInfo
Table of building.json -> ageComponentsDict -> BuildingProductionLumberjackDataInfo:
| Entry | Description | Example |
|---|---|---|
| radius | bot search radius? | 0 |
Mod Building.json - ageComponentsDict - BuildingProductionMountainMineDataInfo
Table of building.json -> ageComponentsDict -> BuildingProductionMountainMineDataInfo:
| Entry | Description | Example |
|---|---|---|
| intoProcessTime | delay in? | 1.75 |
| outOfProcessTime | delay out? | 6.0 |
| radius | bot search radius? | 0 |
| removeAmount | ? | 0 |
| naturalResourceTypeProcessTimeMultiplier | ? | |
| mineableNaturalResourceTypesHash | ? | 0 |
| entranceTileOffset | ? | 0 |
| externalTrackOffsets | ? | 0 |
| mineableNaturalResourceInfos | ? | 0 |
Mod Building.json - ageComponentsDict - BuildingProductionPlantableFarmDataInfo
Mod Building.json - ageComponentsDict - BuildingProductionResourceCollectorDataInfo
Table of building.json -> ageComponentsDict -> BuildingProductionResourceCollectorDataInfo:
| Entry | Description | Example |
|---|---|---|
| radius | bot search radius? | 0 |
| removeAmount | # resources removed from pile? | 1 |
| mineableNaturalResourceInfos | array of natural resources surface mine can mine | - |
Mod Building.json - ageComponentsDict - BuildingProductionRoadImproverDataInfo
Table of building.json -> ageComponentsDict -> BuildingProductionRoadImproverDataInfo:
| Entry | Description | Example |
|---|---|---|
| roadTypeId | ID of road | 5 |
| pathTypeId | ID of Path | 4 |