Hearts of Iron IV

Hearts of Iron IV

View Stats:
Coffee Oct 19, 2021 @ 3:18pm
How to Modify a Pre-Existing Focus Tree?
I want to create a mod that change the focus tree for Japan. I've created the mod through the launcher, but I'm unsure how to go about actually changing the tree and events associated with it. I know how to do it, through editing the text files themselves in the code, but I don't know how to edit it specifically for the mod without changing the entire game's files.
< >
Showing 1-3 of 3 comments
Shortpower Oct 19, 2021 @ 4:19pm 
Create a mod with the same file location as Japan's focus tree with the same name and just copy Japan's tree to it and edit from there. For events since its a major they're definitely in the japanese tag event text document

It's been a while since I've done any modding so idk the directories off the top of my head but as an example:
I want to edit the focus tree and events for country ABC so I create a mod
In the mod I create the directory equivalent to the base game folder (again I don't recall the exact location so this is made up directory)
which in this fantasy focus tree's case is in
common/focustreeshere/ABC_Foc
So I create a common/focustreeshere folder and copy the ABC_Foc file to it

Then I find the related events (again its been a few years so don't know the actual folder layout) and find the appropriate events file in this case we'll assume it's in common/history/events/ABC_Eve

So we create in our mod the folders necessary and copy ABC_Eve into it
Last edited by Shortpower; Oct 19, 2021 @ 4:25pm
Coffee Oct 19, 2021 @ 4:40pm 
Originally posted by Shortpower:
Create a mod with the same file location as Japan's focus tree with the same name and just copy Japan's tree to it and edit from there. For events since its a major they're definitely in the japanese tag event text document

It's been a while since I've done any modding so idk the directories off the top of my head but as an example:
I want to edit the focus tree and events for country ABC so I create a mod
In the mod I create the directory equivalent to the base game folder (again I don't recall the exact location so this is made up directory)
which in this fantasy focus tree's case is in
common/focustreeshere/ABC_Foc
So I create a common/focustreeshere folder and copy the ABC_Foc file to it

Then I find the related events (again its been a few years so don't know the actual folder layout) and find the appropriate events file in this case we'll assume it's in common/history/events/ABC_Eve

So we create in our mod the folders necessary and copy ABC_Eve into it
I don't follow you.
Do I create the mod folder in the folder with all the other national focuses?
Shortpower Oct 20, 2021 @ 2:08am 
Originally posted by CuriousCoffee:
Originally posted by Shortpower:
Create a mod with the same file location as Japan's focus tree with the same name and just copy Japan's tree to it and edit from there. For events since its a major they're definitely in the japanese tag event text document

It's been a while since I've done any modding so idk the directories off the top of my head but as an example:
I want to edit the focus tree and events for country ABC so I create a mod
In the mod I create the directory equivalent to the base game folder (again I don't recall the exact location so this is made up directory)
which in this fantasy focus tree's case is in
common/focustreeshere/ABC_Foc
So I create a common/focustreeshere folder and copy the ABC_Foc file to it

Then I find the related events (again its been a few years so don't know the actual folder layout) and find the appropriate events file in this case we'll assume it's in common/history/events/ABC_Eve

So we create in our mod the folders necessary and copy ABC_Eve into it
I don't follow you.
Do I create the mod folder in the folder with all the other national focuses?
No
You create a mod with the launchers create a mod button
Just look up how to make a hoi4 mod because it sounds like your at the starting line.
Last edited by Shortpower; Oct 20, 2021 @ 2:08am
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Oct 19, 2021 @ 3:18pm
Posts: 3