Tag not working

I created a tag for my country, and apparently hoi4 is not recognizing it

If you run the game in debug mode, what errors do you get?

[13:18:06][trigger.cpp:641]: Invalid trigger 'FEL' in common/ideas/FER_feloniatest2.txt line : 7

[13:18:06][trigger.cpp:494]: Error: "Unknown trigger-type: FEL, near line: 7" in file: "common/ideas/FER_feloniatest2.txt" near line: 11

[13:18:08][effect.cpp:402]: Invalid effect 'focus' in common/national_focus/felonian-tree.txt line : 327

[13:18:08][effect.cpp:297]: Error: "Unknown effect-type: focus, near line: 327" in file: "common/national_focus/felonian-tree.txt" near line: 717

[13:18:19][gameapplication.cpp:713]: The game has loc key collisions. Check logs/text.log for more details

[13:18:21][country.cpp:7507]: Attempting to set captial state #563 for Far Eastern Republic, they dont own it!

[13:18:21][country.cpp:7507]: Attempting to set captial state #1 for Far Eastern Republic, they dont own it!

[13:18:50][persistent.cpp:48]: Error: "Error reading division template (Felonian Infantry) for country ---.

The division_names_group refers to the unknown tag: FER_DIV_0_0, near line: 4" in file: "history/units/FER_1936.txt" near line: 4

I used the Far Eastern Republic's tag until I could get FEL working. Also half the focus tree is missing

If you're using a tag of an existing nation in HOI4, then the name used when creating the country has to be the same as the filename the game uses. For example "India" would be "British Raj".

If you use a unique tag, it should work fine - However, you'll want to ensure your nation's capital is set to a state they own.


In the focus "The Monarchist Threat" the ideology needs to be "neutrality" if you're trying to add support for Non-Aligned. Same in "Destroy them!"


If you're still having issues after sorting the above, would you be able to copy and paste the entire error log? Sometimes it's the errors which don't seem to relate to the issue which are actually the ones which tell what the problem is.

Thanks! I switched the tags and it works fine. I would like to know how to switch ideologies with a focus, and also give a national spirit.

National spirits are ideas. 

So if you want to create your own, you do so via the Idea tool. In the "Type" dropdown, select "Country (National Spirit)"


To add one via a focus, you do:

add_ideas = YOUR_IDEA_ID


As for ideologies, you will need to use:

set_politics = { ruling_party = democratic elections_allowed = no last_election = 1936.1.1 election_frequency = 48

}


ruling_party is the ideology you want to take power

elections_allowed is whether the country will have election events

last_election is when the last election took place - this has to be set, so the game can work out when election events should take place (or should if elections were allowed)

election_frequency is how many months are between elections

Thank you so much!