ModTechs: Difference between revisions
Stlnegril9 (talk | contribs) No edit summary |
Stlnegril9 (talk | contribs) Add Tech disable and Pre-researched |
||
| (16 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
[[ModTranslation.Csv#List_of_fields_used_for_Tech |Techs Translation]]<br> | [[ModTranslation.Csv#List_of_fields_used_for_Tech |Techs Translation]]<br> | ||
'''Mod Techs ''' | |||
=JSON= | |||
<pre> | |||
"techs": [ | |||
{ | |||
"$type": "SteamEngineTechInfo, Game", // tech type - see table below | |||
"category": 3, // [[ResearchCatModIds| Tech category]] (used to specify tab in Tech Panel) | |||
"researchBuildingAges": [ | |||
{ | |||
"buildingTypeId": 39, // workshop | |||
"age": 2 // level 0, 1, or 2 workshop | |||
} | |||
], | |||
"requirements": [], // other techs needing research to unlock this tech | |||
"costs": [], // input resource(s) and quantity for researching this tech | |||
"researchTime": 450.0, // time (in gameticks??) | |||
"isAvailable": true, | |||
"isPreResearched": false, | |||
"gridPos": { // position within the researchBuildingAges-related panel for the tech within the Tech Panel | |||
// 0,0 is center of panel with each panel ranging from X=-6 to 6 and Y=-10 to 9 | |||
"x": 0, | |||
"y": -5 | |||
}, | |||
"gridLines": [ // lines to/from this tech. "lines" are actually rectangles, width=0 in 1 dimension renders as a line | |||
{ | |||
"x": -6, // starting X | |||
"y": -5, // starting Y | |||
"width": 5, // Ending X, =0 for vertical line | |||
"height": 0 // Ending Y, =0 for horizontal line | |||
} | |||
], | |||
"typeId": 201 // Mod Tech ID | |||
} | |||
] | |||
</pre> | |||
=Icon= | |||
image file naming convention: ''tech_200.png''<br> | |||
placeholder on size and info - image used for the Tech in Research Panel.<br> | |||
Example file: [[File:Tech_Scaffolding_1.png|64px|Scaffolding I]] | |||
=3D Models= | |||
None <br> | |||
=Notes= | |||
= | Note that a research can be enabled at game '''start''' by including the Tech ID in ''"preresearchedTechIds": [],''<br> | ||
Note that a research can be enabled at game start by using the flag "isPreResearched": true, <br> | The legacy method to accomplish the same was by using the flag ''"isPreResearched": true,'' <br> | ||
The full definition of | Note that a research can be disabled at game '''start''' by including the Tech ID in ''"disabledTechIds": []''<br> | ||
The full definition of an existing research must be included or it will be overwritten. <br> | |||
<br> | |||
The order of Tech Categories in the Research Panel can be changed in ui.json per [[ModUI]]<br> | |||
Note that for each new Tech Category in a mod, if no entry is in ui.json, a corresponding panel will be placed after the last entry in ui.json<br> | |||
<br> | <br> | ||
Techs can unlock other Tech and/or Buildings. Some also have unique fields.<br> | Techs can unlock other Tech and/or Buildings. Some also have unique fields.<br> | ||
Unique fields in techs.json | =Unique fields in techs.json= | ||
{| class="wikitable sortable" style="text-align: center" | {| class="wikitable sortable" style="text-align: center" | ||
|- | |- | ||
| Line 60: | Line 103: | ||
| damageMultiplier | | damageMultiplier | ||
| increase projectile damage | | increase projectile damage | ||
| Arrows [[Arrows I| I]], [[Arrows II| II]], [[Arrows III| III]], | | Arrows [[Arrows I| I]], [[Arrows II| II]], [[Arrows III| III]], Cannons [[Cannons I| I]], [[Cannons II| II]], [[Cannons III| III]] | ||
| | | | ||
|- | |- | ||
| Line 82: | Line 125: | ||
= $Type values = | ==$Type values== | ||
Tech by $Type in techs.json | Tech by $Type in techs.json | ||
{| class="wikitable sortable" style="text-align: center" | {| class="wikitable sortable" style="text-align: center" | ||
|- | |- | ||
! ID!! $type !! Category !! Tech !! Notes | ! ID!! $type !! Category !! Tech !! subEntry !! Notes | ||
|- | |- | ||
| 116 | | 116 | ||
| SteamEngineTechInfo | | SteamEngineTechInfo | ||
| 3 | | 3 | ||
| | | [[Steam Engines II]] | ||
| | | speedIncreaseMultiplier | ||
| | |||
|- | |- | ||
| 115 | | 115 | ||
| SteamEngineTechInfo | | SteamEngineTechInfo | ||
| 3 | | 3 | ||
| | | [[Steam Engines I]] | ||
| | | speedIncreaseMultiplier | ||
| | |||
|- | |- | ||
| 66 | | 66 | ||
| ?? | | ?? | ||
| 3 | | 3 | ||
| | | [[Boat Building II]] | ||
| | |||
| unlock building only | | unlock building only | ||
|- | |- | ||
| Line 109: | Line 155: | ||
| ?? | | ?? | ||
| 3 | | 3 | ||
| | | [[Boat Building I]] | ||
| | |||
| unlock boat type only | | unlock boat type only | ||
|- | |- | ||
| Line 116: | Line 163: | ||
| 8 | | 8 | ||
| [[Science III]] | | [[Science III]] | ||
| processReductionFactor | |||
| | | | ||
|- | |- | ||
| Line 122: | Line 170: | ||
| 8 | | 8 | ||
| [[Science II]] | | [[Science II]] | ||
| processReductionFactor | |||
| | | | ||
|- | |- | ||
| Line 128: | Line 177: | ||
| 8 | | 8 | ||
| [[Science I]] | | [[Science I]] | ||
| processReductionFactor | |||
| | | | ||
|- | |- | ||
| Line 134: | Line 184: | ||
| 6 | | 6 | ||
| [[Mining II]] | | [[Mining II]] | ||
| | | processReductionFactor | ||
| is = 0 | |||
|- | |- | ||
| 40 | | 40 | ||
| Line 140: | Line 191: | ||
| 6 | | 6 | ||
| [[Mining I]] | | [[Mining I]] | ||
| | | processReductionFactor | ||
| is = 0 | |||
|- | |- | ||
| 45 | | 45 | ||
| Line 146: | Line 198: | ||
| 6 | | 6 | ||
| [[Mining Speed III]] | | [[Mining Speed III]] | ||
| processReductionFactor | |||
| | | | ||
|- | |- | ||
| Line 152: | Line 205: | ||
| 6 | | 6 | ||
| [[Mining Speed II]] | | [[Mining Speed II]] | ||
| processReductionFactor | |||
| | | | ||
|- | |- | ||
| Line 158: | Line 212: | ||
| 6 | | 6 | ||
| [[Mining Speed I]] | | [[Mining Speed I]] | ||
| processReductionFactor | |||
| | | | ||
|- | |- | ||
| Line 164: | Line 219: | ||
| 1 | | 1 | ||
| [[Repair III]] | | [[Repair III]] | ||
| multiplier | |||
| | | | ||
|- | |- | ||
| Line 170: | Line 226: | ||
| 1 | | 1 | ||
| [[Repair II]] | | [[Repair II]] | ||
| multiplier | |||
| | | | ||
|- | |- | ||
| Line 176: | Line 233: | ||
| 1 | | 1 | ||
| [[Repair I]] | | [[Repair I]] | ||
| multiplier | |||
| | | | ||
|- | |- | ||
| Line 181: | Line 239: | ||
| ? | | ? | ||
| 3 | | 3 | ||
| | | [[Brick Roads]] | ||
| | |||
| unlock building only | | unlock building only | ||
|- | |- | ||
| Line 187: | Line 246: | ||
| ? | | ? | ||
| 3 | | 3 | ||
| | | [[Cobbled Roads]] | ||
| | |||
| unlock building only | | unlock building only | ||
|- | |- | ||
| Line 194: | Line 254: | ||
| 8 | | 8 | ||
| [[Engineering II]] | | [[Engineering II]] | ||
| vehicleSpeedIncreaseMultiplier | |||
| | | | ||
|- | |- | ||
| Line 200: | Line 261: | ||
| 8 | | 8 | ||
| [[Engineering I]] | | [[Engineering I]] | ||
| vehicleSpeedIncreaseMultiplier | |||
| | | | ||
|- | |- | ||
| Line 206: | Line 268: | ||
| 4 | | 4 | ||
| [[Coppicing I]] | | [[Coppicing I]] | ||
| CoppicingTechInfo | |||
| | | | ||
|- | |- | ||
| Line 212: | Line 275: | ||
| 4 | | 4 | ||
| [[Coppicing II]] | | [[Coppicing II]] | ||
| CoppicingTechInfo | |||
| | | | ||
|- | |- | ||
| Line 218: | Line 282: | ||
| 4 | | 4 | ||
| [[Coppicing III]] | | [[Coppicing III]] | ||
| CoppicingTechInfo | |||
| | | | ||
|- | |- | ||
| Line 224: | Line 289: | ||
| 0 | | 0 | ||
| [[Construction III]] | | [[Construction III]] | ||
| | |||
| | | | ||
|- | |- | ||
| Line 230: | Line 296: | ||
| 0 | | 0 | ||
| [[Scaffolding III]] | | [[Scaffolding III]] | ||
| | |||
| | | | ||
|- | |- | ||
| Line 236: | Line 303: | ||
| 0 | | 0 | ||
| [[Glassmaking]] | | [[Glassmaking]] | ||
| | |||
| | | | ||
|- | |- | ||
| Line 242: | Line 310: | ||
| 0 | | 0 | ||
| [[Construction II]] | | [[Construction II]] | ||
| | |||
| | | | ||
|- | |- | ||
| Line 248: | Line 317: | ||
| 0 | | 0 | ||
| [[Brickmaking ]] | | [[Brickmaking ]] | ||
| | |||
| | | | ||
|- | |- | ||
| Line 254: | Line 324: | ||
| 0 | | 0 | ||
| [[Scaffolding II]] | | [[Scaffolding II]] | ||
| | |||
| | | | ||
|- | |- | ||
| Line 260: | Line 331: | ||
| 0 | | 0 | ||
| [[Construction I]] | | [[Construction I]] | ||
| | |||
| | | | ||
|- | |- | ||
| Line 266: | Line 338: | ||
| 0 | | 0 | ||
| [[Stonemasonry]] | | [[Stonemasonry]] | ||
| | |||
| | | | ||
|- | |- | ||
| Line 273: | Line 346: | ||
| 0 | | 0 | ||
| [[Scaffolding I]] | | [[Scaffolding I]] | ||
| | |||
| | | | ||
|- | |- | ||
| Line 279: | Line 353: | ||
| 0 | | 0 | ||
| [[Construction Speed III]] | | [[Construction Speed III]] | ||
| multiplier | |||
| | | | ||
|- | |- | ||
| Line 285: | Line 360: | ||
| 0 | | 0 | ||
| [[Construction Speed II]] | | [[Construction Speed II]] | ||
| multiplier | |||
| | | | ||
|- | |- | ||
| Line 291: | Line 367: | ||
| 0 | | 0 | ||
| [[Construction Speed I]] | | [[Construction Speed I]] | ||
| multiplier | |||
| | | | ||
|- | |- | ||
| Line 296: | Line 373: | ||
| CannonballDamageTechInfo | | CannonballDamageTechInfo | ||
| 1 | | 1 | ||
| [[ | | [[Cannons III]] | ||
| damageMultiplier | |||
| | | | ||
|- | |- | ||
| Line 302: | Line 380: | ||
| CannonballDamageTechInfo | | CannonballDamageTechInfo | ||
| 1 | | 1 | ||
| [[ | | [[Cannons II]] | ||
| damageMultiplier | |||
| | | | ||
|- | |- | ||
| Line 308: | Line 387: | ||
| CannonballDamageTechInfo | | CannonballDamageTechInfo | ||
| 1 | | 1 | ||
| [[ | | [[Cannons I]] | ||
| damageMultiplier | |||
| | | | ||
|- | |- | ||
| Line 314: | Line 394: | ||
| BuildingProductionSpeedTechInfo | | BuildingProductionSpeedTechInfo | ||
| 8 | | 8 | ||
| | | [[Printing II]] | ||
| processReductionFactor/buildingTypeId | |||
| | | | ||
|- | |- | ||
| Line 320: | Line 401: | ||
| BuildingProductionSpeedTechInfo | | BuildingProductionSpeedTechInfo | ||
| 8 | | 8 | ||
| | | [[Printing I]] | ||
| processReductionFactor/buildingTypeId | |||
| | | | ||
|- | |- | ||
| Line 326: | Line 408: | ||
| ArrowDamageTechInfo | | ArrowDamageTechInfo | ||
| 1 | | 1 | ||
| | | [[Arrows III]] | ||
| damageMultiplier | |||
| | | | ||
|- | |- | ||
| Line 332: | Line 415: | ||
| ArrowDamageTechInfo | | ArrowDamageTechInfo | ||
| 1 | | 1 | ||
| | | [[Arrows II]] | ||
| | | damageMultiplier | ||
|- | |- | ||
| 20 | | 20 | ||
| ArrowDamageTechInfo | | ArrowDamageTechInfo | ||
| 1 | | 1 | ||
| | | [[Arrows I]] | ||
| damageMultiplier | |||
| | | | ||
|- | |- | ||
| Line 344: | Line 428: | ||
| ArmourTechInfo | | ArmourTechInfo | ||
| 1 | | 1 | ||
| | | [[Armour III]] | ||
| damageReductionFactor | |||
| | | | ||
|- | |- | ||
| Line 350: | Line 435: | ||
| ArmourTechInfo | | ArmourTechInfo | ||
| 1 | | 1 | ||
| | | [[Armour II]] | ||
| damageReductionFactor | |||
| | | | ||
|- | |- | ||
| Line 356: | Line 442: | ||
| ArmourTechInfo | | ArmourTechInfo | ||
| 1 | | 1 | ||
| | | [[Armour I]] | ||
| damageReductionFactor | |||
| | | | ||
|- | |- | ||
| Line 362: | Line 449: | ||
| AgricultureTechInfo | | AgricultureTechInfo | ||
| 4 | | 4 | ||
| | | [[Brewing]] | ||
| | |||
| | | | ||
|- | |- | ||
| Line 368: | Line 456: | ||
| AgricultureTechInfo | | AgricultureTechInfo | ||
| 4 | | 4 | ||
| | | [[Breadmaking]] | ||
| | |||
| | | | ||
|- | |- | ||
| Line 374: | Line 463: | ||
| AgricultureTechInfo | | AgricultureTechInfo | ||
| 4 | | 4 | ||
| | | [[Wheat Farming]] | ||
| | |||
| | | | ||
|} | |} | ||
Latest revision as of 12:44, 1 May 2023
Mod Techs Translation.csv
List of fields used in translation.csv for Techs (Research)
Mod Techs
JSON
"techs": [
{
"$type": "SteamEngineTechInfo, Game", // tech type - see table below
"category": 3, // [[ResearchCatModIds| Tech category]] (used to specify tab in Tech Panel)
"researchBuildingAges": [
{
"buildingTypeId": 39, // workshop
"age": 2 // level 0, 1, or 2 workshop
}
],
"requirements": [], // other techs needing research to unlock this tech
"costs": [], // input resource(s) and quantity for researching this tech
"researchTime": 450.0, // time (in gameticks??)
"isAvailable": true,
"isPreResearched": false,
"gridPos": { // position within the researchBuildingAges-related panel for the tech within the Tech Panel
// 0,0 is center of panel with each panel ranging from X=-6 to 6 and Y=-10 to 9
"x": 0,
"y": -5
},
"gridLines": [ // lines to/from this tech. "lines" are actually rectangles, width=0 in 1 dimension renders as a line
{
"x": -6, // starting X
"y": -5, // starting Y
"width": 5, // Ending X, =0 for vertical line
"height": 0 // Ending Y, =0 for horizontal line
}
],
"typeId": 201 // Mod Tech ID
}
]
Icon
image file naming convention: tech_200.png
placeholder on size and info - image used for the Tech in Research Panel.
Example file:
3D Models
None
Notes
Note that a research can be enabled at game start by including the Tech ID in "preresearchedTechIds": [],
The legacy method to accomplish the same was by using the flag "isPreResearched": true,
Note that a research can be disabled at game start by including the Tech ID in "disabledTechIds": []
The full definition of an existing research must be included or it will be overwritten.
The order of Tech Categories in the Research Panel can be changed in ui.json per ModUI
Note that for each new Tech Category in a mod, if no entry is in ui.json, a corresponding panel will be placed after the last entry in ui.json
Techs can unlock other Tech and/or Buildings. Some also have unique fields.
Unique fields in techs.json
| Field | Description | Used In | Notes |
|---|---|---|---|
| speedIncreaseMultiplier | increase hopper capacity | Steam Engines I, II | Steam Engines I = 1.0 |
| processReductionFactor (Mines) | decrease mining time | Mining Speed I, II, III | is 0 in some other Techs |
| processReductionFactor (Research) | decrease research time | Science I, II, III | is 0 in some other Techs |
| processReductionFactor (PrintPress) | decrease Printing Press time | Printing II | is 0 in some other Techs |
| multiplier (Construction) | increase construction speed | Construction Speed I, II, III | |
| multiplier (Repair) | increase military repair speed | Repair I, II, III | |
| vehicleSpeedIncreaseMultiplier | vehicle speed | Engineering I, II | |
| growthSpeedBonus | increase tree growth speed | Coppicing I, II, III | |
| damageMultiplier | increase projectile damage | Arrows I, II, III, Cannons I, II, III | |
| damageReductionFactor | decrease incoming projectile damage | Armour I, II, III | |
| extraSheepFields | dubious | Breadmaking, Brewing, Wheat Farming | |
| extraCowFields | dubious | Breadmaking, Brewing, Wheat Farming |
$Type values
Tech by $Type in techs.json
| ID | $type | Category | Tech | subEntry | Notes |
|---|---|---|---|---|---|
| 116 | SteamEngineTechInfo | 3 | Steam Engines II | speedIncreaseMultiplier | |
| 115 | SteamEngineTechInfo | 3 | Steam Engines I | speedIncreaseMultiplier | |
| 66 | ?? | 3 | Boat Building II | unlock building only | |
| 65 | ?? | 3 | Boat Building I | unlock boat type only | |
| 122 | ResearchSpeedTechInfo | 8 | Science III | processReductionFactor | |
| 121 | ResearchSpeedTechInfo | 8 | Science II | processReductionFactor | |
| 120 | ResearchSpeedTechInfo | 8 | Science I | processReductionFactor | |
| 41 | MiningTechInfo | 6 | Mining II | processReductionFactor | is = 0 |
| 40 | MiningTechInfo | 6 | Mining I | processReductionFactor | is = 0 |
| 45 | MiningSpeedTechInfo | 6 | Mining Speed III | processReductionFactor | |
| 44 | MiningSpeedTechInfo | 6 | Mining Speed II | processReductionFactor | |
| 43 | MiningSpeedTechInfo | 6 | Mining Speed I | processReductionFactor | |
| 37 | MilitaryRepairTechInfo | 1 | Repair III | multiplier | |
| 36 | MilitaryRepairTechInfo | 1 | Repair II | multiplier | |
| 35 | MilitaryRepairTechInfo | 1 | Repair I | multiplier | |
| 76 | ? | 3 | Brick Roads | unlock building only | |
| 75 | ? | 3 | Cobbled Roads | unlock building only | |
| 72 | EngineeringTechInfo | 8 | Engineering II | vehicleSpeedIncreaseMultiplier | |
| 71 | EngineeringTechInfo | 8 | Engineering I | vehicleSpeedIncreaseMultiplier | |
| 2 | CoppicingTechInfo | 4 | Coppicing I | CoppicingTechInfo | |
| 1 | CoppicingTechInfo | 4 | Coppicing II | CoppicingTechInfo | |
| 0 | CoppicingTechInfo | 4 | Coppicing III | CoppicingTechInfo | |
| 59 | ConstructionTechInfo | 0 | Construction III | ||
| 58 | ConstructionTechInfo | 0 | Scaffolding III | ||
| 57 | ConstructionTechInfo | 0 | Glassmaking | ||
| 51 | ConstructionTechInfo | 0 | Construction II | ||
| 56 | ConstructionTechInfo | 0 | Brickmaking | ||
| 55 | ConstructionTechInfo | 0 | Scaffolding II | ||
| 50 | ConstructionTechInfo | 0 | Construction I | ||
| 52 | ConstructionTechInfo | 0 | Stonemasonry | ||
| 54 | ConstructionTechInfo | 0 | Scaffolding I | ||
| 7 | ConstructionSpeedTechInfo | 0 | Construction Speed III | multiplier | |
| 6 | ConstructionSpeedTechInfo | 0 | Construction Speed II | multiplier | |
| 5 | ConstructionSpeedTechInfo | 0 | Construction Speed I | multiplier | |
| 27 | CannonballDamageTechInfo | 1 | Cannons III | damageMultiplier | |
| 26 | CannonballDamageTechInfo | 1 | Cannons II | damageMultiplier | |
| 25 | CannonballDamageTechInfo | 1 | Cannons I | damageMultiplier | |
| 103 | BuildingProductionSpeedTechInfo | 8 | Printing II | processReductionFactor/buildingTypeId | |
| 102 | BuildingProductionSpeedTechInfo | 8 | Printing I | processReductionFactor/buildingTypeId | |
| 22 | ArrowDamageTechInfo | 1 | Arrows III | damageMultiplier | |
| 21 | ArrowDamageTechInfo | 1 | Arrows II | damageMultiplier | |
| 20 | ArrowDamageTechInfo | 1 | Arrows I | damageMultiplier | |
| 32 | ArmourTechInfo | 1 | Armour III | damageReductionFactor | |
| 31 | ArmourTechInfo | 1 | Armour II | damageReductionFactor | |
| 30 | ArmourTechInfo | 1 | Armour I | damageReductionFactor | |
| 107 | AgricultureTechInfo | 4 | Brewing | ||
| 105 | AgricultureTechInfo | 4 | Breadmaking | ||
| 110 | AgricultureTechInfo | 4 | Wheat Farming |