Focus Tree stops loading Focuses

Hello.

I'm currently making my own mod, but for soem reasons new focuses i add don't show up in the game.


This is what i got from the error.log file:

[15:13:41][dlc.cpp:227]: Invalid supported_version in  file: mod/ugc_2389652888.mod line: 12

[15:13:41][persistent.cpp:48]: Error: "Unexpected token: thumbnail, near line: 6" in file: "mod/ugc_2488199457.mod" near line: 6

[15:13:56][countrydatabase.cpp:137]: Duplicate Country Tag - TAJ

[15:14:06][effect.cpp:392]: Invalid scope type for effect add_extra_state_shared_building_slots in common/national_focus/tajikistan-focus-tree.txt line : 294

[15:14:06][effect.cpp:392]: Invalid scope type for effect add_extra_state_shared_building_slots in common/national_focus/tajikistan-focus-tree.txt line : 295

[15:14:06][persistent.cpp:48]: Error: "Unexpected token: random_owned_controlled_state, near line: 297" in file: "common/national_focus/tajikistan-focus-tree.txt" near line: 300

[15:14:06][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 306" in file: "common/national_focus/tajikistan-focus-tree.txt" near line: 321

[15:14:06][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 324" in file: "common/national_focus/tajikistan-focus-tree.txt" near line: 341

[15:14:06][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 344" in file: "common/national_focus/tajikistan-focus-tree.txt" near line: 362

[15:14:06][nationalfocus.cpp:497]: Error in focus: TAJ_elections (common/national_focus/tajikistan-focus-tree.txt:12 )

Has mutual exclusivity with TAJ_communist_coup but the other focus does not.

[15:14:07][database_scoped_variables.cpp:323]: invalid database object for effect/trigger: support_tech. use var:var_name to explicitly use variables in effects/triggers

[15:14:10][gameapplication.cpp:710]: The game has loc key collisions. Check logs/text.log for more details

Can someone help me fix this?

In the focus "More Roads" you have the reward:

add_extra_state_shared_building_slots = {

add_extra_state_shared_building_slots = 2 

}

The first "add_extra_state_shared_building_slots" needs to be a state selector; a state ID, e.g. 123, or a state selector argument, e.g. random_owned_state


The focus "TAJ_communist_coup" has itself as a mutually exclusive focus, which it shouldn't have, and is missing "Elections" as a mutually exclusive focus.


And in the focus "Puppet Faction" there's two issues:

The available is:
KAZ is_puppet_of = TAJ

This should be:

KAZ = {
is_puppet_of = TAJ
}

Although, I would recommend using "is_subject_of" as this will check all autonomy levels, unless you only want to check if they're a puppet.

And in the reward you have:
create_faction = 'central_asian_union'

The game can be weird with ' so it may be better to use:
create_faction = "central_asian_union"

Ok, thanks a lot!