This tutorial page shows you how to make divisions and how to load them in HOI4 modding.
How to make an oob file
Making Divisions
You need the -debug executable command and the tdebug console command on for this to properly work
Using country files to create divisions
You have to put this in to load the oob on start up, without these the country will not build an army and train divisions until it loads an oob file
For 1936 start-date:
oob = "TAG_1936"
For 1939 start:
oob = "TAG_1939"
Using a country event file to create divisions
If you want to load an oob via events you will need to know how to mod events. First, you will have to create an event file and type:
Creating the event
add_namespace = Tutorial_events
country_event = {
}
This would mean the game will recognize the code as code for events, namespace can be whatever it wants to be
Use of namespace (ID, Title and Desc)
Secondly, you will have to type in the id, title and description:
country_event = {
id = Tutorial_events.1
title = "This is a title" ### Can be localized via the event file or by the localization file
desc = "This is a description"
}
Triggers
Thirdly, you want to put in is_triggered_only = yes and fire_only_once = yes, which you can make triggers with. After that you can put in the options! I will use my own example of a trigger
id = Tutorial_events.1
title = "This is a title" ### Can be localized via the event file or by the localization file
desc = "This is a description"
trigger = {
date > 1939.1.1
}
is_triggered_only = yes
fire_only_once = yes
option = {
name = "This is a name"
}
Option
Then you put:
option = {
name = "This is a name"
load_oob = "TAG_1936" ### Can be TAG_1939 for that start date
}
| 文件 | 效果 • 条件 • 定义 • 修正 • 修正列表 • 作用域 • 本地化 • on action • 数据结构 (标记, 临时标记, 国家别名, 变量, 数组) |
| 脚本 | 成就修改 • AI修改 • AI focuses • 自治领修改 • 权力平衡修改 • 剧本/标签 (游戏规则)• 建筑修改 • 人物修改 • 修饰性TAG修改 • 国家创建 • 军队修改 • 决议制作 • 装备修改 • 事件修改 • Idea修改 • 意识形态修改 • 军工商修改 • 国策制作 • 资源修改 • Scripted GUI • 科技制作 • 单位修改 |
| 地图 | 地图 • 省份 • 补给区域 • 战略区域 |
| 图形图像 | 界面 • 图形资产 • 实体模型 • 后期特效 • 粒子效果 • 字体 |
| 装饰性 | 肖像 • 命名列表 • 音乐包制作 • 音效 |
| 其他 | 控制台指令 • 故障排除 • 模组结构 • 成就代码分析 • Mod相关 • Nudger修改 |