首页所有页面

科技模组制作


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 Technology advancement screen (v. 2.8)

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




相关页面 (53)

EU4转档器模组制作Steam创意工坊事件模组制作作用域修正内阁成员模组制作决议模组制作剧本模组制作单位模组制作历史模组制作另类开局模组制作图形模组制作地图外政权模组制作地图模组制作头衔模组制作奇观模组制作宗教模组制作定义宝物模组制作宣战理由模组制作家族模组制作小地图模组制作建筑模组制作指令控制台指令政体模组制作故障排除文化模组制作朝贡国类型模组制作本地化条件模组制作死亡模组制作法律模组制作游戏规则模组制作特质模组制作界面模组制作疾病模组制作目标模组制作盾徽模组制作省份模组制作社团模组制作称号模组制作继承模组制作编辑游戏存档肖像模组制作脚本荣誉头衔模组制作血脉模组制作角色模组制作贸易路线模组制作音乐模组制作验证器