How do I make the Focus tree work
If you run the game in debug mode, do you get any errors?
If you run the game in debug mode, do you get any errors?
-jordsta95
I just now did it and this is what I got
[11:00:01][dlc.cpp:230]: Invalid supported_version in file: mod/ugc_2141398536.mod line: 12
[11:00:01][dlc.cpp:230]: Invalid supported_version in file: mod/ugc_2445956116.mod line: 8
[11:00:09][gameitemdatabasehelper.h:111]: Error: "Unexpected token: }, near line: 3
" in file: "common/ideas/GD_sike-no-great-depseaion.txt" near line: 3
[11:00:11][portraitdatabase.cpp:24]: Missing portrait texture in group ITA > Army > Male: "gfx/leaders/ITA/Portrait_Italy_Generic_land_4.dds".
[11:00:11][effect.cpp:391]: Invalid effect 'has_political_power' in common/national_focus/USA_Focus.txt line : 46
[11:00:11][effect.cpp:292]: Error: "Unknown effect-type: has_political_power, near line: 46
" in file: "common/national_focus/USA_Focus.txt" near line: 48
[11:00:11][effect.cpp:382]: Invalid scope type for effect add_extra_state_shared_building_slots in common/national_focus/USA_Focus.txt line : 103
[11:00:11][effect.cpp:382]: Invalid scope type for effect add_extra_state_shared_building_slots in common/national_focus/USA_Focus.txt line : 104
[11:00:11][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 111" in file: "common/national_focus/USA_Focus.txt" near line: 128
[11:00:11][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 131" in file: "common/national_focus/USA_Focus.txt" near line: 148
[11:00:11][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 151" in file: "common/national_focus/USA_Focus.txt" near line: 164
[11:00:11][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 167" in file: "common/national_focus/USA_Focus.txt" near line: 185
[11:00:11][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 188" in file: "common/national_focus/USA_Focus.txt" near line: 198
[11:00:11][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 201" in file: "common/national_focus/USA_Focus.txt" near line: 219
[11:00:11][nationalfocus.cpp:1751]: USA_this_painter_guys_not_so_bad: Couldn't find dependency USA_stroke_3
[11:00:11][nationalfocus.cpp:1751]: USA_okay_time_to_finally_build_the_us: Couldn't find dependency USA_stroke_3
[11:00:11][nationalfocus.cpp:1751]: USA_shit_too_many_strokes: Couldn't find dependency USA_stroke_2
The issue seems to be because there's a couple of errors in your focus tree. When the game encounters an error in a file, it will stop loading the file at the point it reached (meaning only some of a focus tree may load) or in some cases ignore the file entirely.
In your focus "Stroke" you have the reward:
has_political_power > 100
This can only be used in the "available" box, or by using inside a limit statement, e.g.
if = {
limit = {
has_political_power > 100
}
add_political_power = 100
else = {
add_political_power = -100
}
}
Also in the focus "Shit too many strokes!"
You have the reward:
add_extra_state_shared_building_slots = {
add_extra_state_shared_building_slots = 30
}
The first one needs to be a state selector, e.g.
123= {... or random_owned_controlled_state = { ...
Okay thanks, this will help me finish i hope
Mr_Krabs
So here is how I export my mod
I have a focus tree that makes a new focus tree for the US, I have the tag as USA
it's 8 focues,
now this is how the exact way I exported the mod
I clicked export on the mod that had the focus tree
I used winrar to export the file,
opened up the hoi 4 launcher and made a mod, did the version the same as the games, Then dragged the
Common, gfx, interface, localisation, in the mod folder that was made, also the descriptor file was in there too,
loaded the launcher and enabled the mod, and only that mod, and It did not work, the vanilla US focus tree was there
what am I doing wrong?