Definitions
Technologies are defined inside /common/technology.txt. Leaving out the modifier or any of the tiers is logged as an error, so those should always be included even if blank.
TECH_GROUP_NAME = { TECH_NAME = { modifier = { #List of modifiers } 1 = { #Effects of level 1 } ... 8 = { #Effects of level 8 } } }
Start date technology
The game will process technology starting at year NDefines.NTechnology.DONT_EXECUTE_TECH_BEFORE. It should be set to the earliest starting year of the mod (769 in vanilla), otherwise technology history will not be processed, and some default starting technology will be used.
The technology level can be set per start date and per duchies inside /history/technology/ folder. The structure is:
technology = { titles = { #List of applicable duchy titles } 769 = { military = xx #All military technologies economy = xx #All economic technologies culture = xx #All culture technologies TECH_xx = xx #Specific technology } 867 = { #Same } 1337 = { #Same } }
Important: make sure there is always a date entry defined for the year configured in NDefines.NTechnology.DONT_EXECUTE_TECH_BEFORE, otherwise the game will crash.
For instance, if NDefines.NTechnology.DONT_EXECUTE_TECH_BEFORE = 400
, then you need a 400 = { } block in ALL technology history files.
Ahead penalty
The game uses the concept of "ideal year" to balance technological advancement, defined in defines.lua:
- IDEAL_YEAR_LEVEL_0: Chance to get a progress to this level will increase after this date and decrease before it
- IDEAL_YEAR_LEVEL_8
- IDEAL_YEAR_AHEAD_PENALTY_INVEST : Percent increase in cost pre level ahead of ideal date
這是一篇小作品。你可以通過編輯或修訂擴充其內容。 如果可以請盡你所能的去協助完善這篇文章。 |
歷史 | 角色 • 家族 • 省份 • 頭銜 • 劇本 |
腳本 | 指令 • 條件 • 作用域 • 修正 • 事件 • 決議 |
常規 | 定義 • 遊戲規則 • 另類開局 • 宗教 • 文化 • 政體 • 特質 • 血脈 • 科技 • 法律 • 建築 • 宣戰理由 • 朝貢國 • 單位 • 目標 • 疾病 • 死亡 • 榮譽頭銜 • 社團 • 寶物 • 地圖外政權 • 內閣成員 • 貿易路線 • 繼承 • 奇觀 • 稱號 |
圖像/音效/本地化 | 地圖 • 圖形 • 盾徽 • 肖像 • 介面 • 小地圖 • 音樂 • 本地化 |
其他 | 故障排除 • 驗證器 • 控制台指令 • 編輯遊戲存檔 • Steam創意工坊 • EU4轉檔器模組製作 |