Hoi4 modding Wiki
Register
Advertisement

The .mod file is the file that tells the HOI4 launcher where your mod is located, and as a result it will show up in the launcher's mod list. In windows, the .mod files are saved in :

 Documents\Paradox Interactive\Hearts of Iron IV\mod

(This folder might not exist yet if you haven't downloaded any mods yet.)

When playing the game through steam, this folder will be filled with .mod files from all the mods you have downloaded from the steam workshop. The link to where the actual mod is located can be found inside the .mod files. The .mod files are best saved in UTF-8 BOM encoding.

Example of a .mod file for an archive (.zip) mod :

name="Mod"
archive="C:\\Steam\\program files\\workshop\\content\\684652\\4564628875/Mod"
tags={
	"Balance"
	"Fixes"
	"Gameplay"
	"Military"
}
remote_file_id="4564628875"
supported_version="1.5.1"

To use relative pathing for a folder you can use this :

name="~ World Imperia"
path="/mod/worldimperia/"
tags={
	"Alternative History"
	"Map"
	"Gameplay"
	"National Focuses"
}
supported_version="1.5.*"

Warning: When using relative paths, the relative path starts moved up one directory from where you might expect.

Tip: You can use asterisk (*) within the version, so that it supports all versions regardless of the number that was replaced with the asterisk.

Tip: For google drive support in windows, you can use the following path :

path="../../../Google Drive/mymod/"

(the ".." means it moves up one directory)

Advertisement