Alot of my focus tree i made is basically gone to nothingness.

Most of it in game is not appearing. I didnt even add anything too most of my focuses and they have dissapeared for no reason what so ever.

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

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

-jordsta95

 [18:35:19][effect.cpp:402]: Invalid effect 'limit' in common/national_focus/voi1.txt line : 381

[18:35:19][effect.cpp:297]: Error: "Unknown effect-type: limit, near line: 381" in file: "common/national_focus/voi1.txt" near line: 393

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: USA, near line: 398" in file: "common/national_focus/voi1.txt" near line: 404

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 411" in file: "common/national_focus/voi1.txt" near line: 424

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 427" in file: "common/national_focus/voi1.txt" near line: 441

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 444" in file: "common/national_focus/voi1.txt" near line: 521

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 524" in file: "common/national_focus/voi1.txt" near line: 546

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 549" in file: "common/national_focus/voi1.txt" near line: 572

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 575" in file: "common/national_focus/voi1.txt" near line: 589

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 592" in file: "common/national_focus/voi1.txt" near line: 607

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 610" in file: "common/national_focus/voi1.txt" near line: 628

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 631" in file: "common/national_focus/voi1.txt" near line: 640

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 643" in file: "common/national_focus/voi1.txt" near line: 657

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 660" in file: "common/national_focus/voi1.txt" near line: 670

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 673" in file: "common/national_focus/voi1.txt" near line: 683

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 686" in file: "common/national_focus/voi1.txt" near line: 704

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 707" in file: "common/national_focus/voi1.txt" near line: 724

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 727" in file: "common/national_focus/voi1.txt" near line: 755

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 758" in file: "common/national_focus/voi1.txt" near line: 787

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 790" in file: "common/national_focus/voi1.txt" near line: 800

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 803" in file: "common/national_focus/voi1.txt" near line: 835

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 838" in file: "common/national_focus/voi1.txt" near line: 852

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 855" in file: "common/national_focus/voi1.txt" near line: 872

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 875" in file: "common/national_focus/voi1.txt" near line: 893

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 896" in file: "common/national_focus/voi1.txt" near line: 914

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 917" in file: "common/national_focus/voi1.txt" near line: 952

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 955" in file: "common/national_focus/voi1.txt" near line: 972

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 975" in file: "common/national_focus/voi1.txt" near line: 989

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 992" in file: "common/national_focus/voi1.txt" near line: 1007

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 1010" in file: "common/national_focus/voi1.txt" near line: 1028

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 1031" in file: "common/national_focus/voi1.txt" near line: 1049

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 1052" in file: "common/national_focus/voi1.txt" near line: 1069

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 1072" in file: "common/national_focus/voi1.txt" near line: 1089

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 1092" in file: "common/national_focus/voi1.txt" near line: 1110

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 1113" in file: "common/national_focus/voi1.txt" near line: 1142

[18:35:19][persistent.cpp:48]: Error: "Unexpected token: focus, near line: 1145" in file: "common/national_focus/voi1.txt" near line: 1161

[18:35:19][nationalfocus.cpp:2008]: VOI_establishthemital: Couldn't find dependency VOI_research_redz_issues 

[18:35:19][nationalfocus.cpp:497]: Error in focus: VOI_staywiththeleader (common/national_focus/voi1.txt:201 )

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

[18:35:19][nationalfocus.cpp:497]: Error in focus: VOI_colonyleader (common/national_focus/voi1.txt:287 )

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

In the focus "Help the Americans", you have a state selector inside another - which will be causing the game to see an error and stop loading the focus tree.

378 = {

random_owned_controlled_state ={

If you get rid of one of these lines, and a } from the end of the reward, that should solve that issue.



In the focuses "Southern Europe Challange" and "Focus on the West" you have the reward:

has_annex_war_goal = ...

This is a check, and would be used in the "available" box. To create a wargoal, you need to use:

create_wargoal = { 

type = annex_everything 

target = ...

}

In the focus "Help the Americans", you have a state selector inside another - which will be causing the game to see an error and stop loading the focus tree.

378 = {

random_owned_controlled_state ={

If you get rid of one of these lines, and a } from the end of the reward, that should solve that issue.



In the focuses "Southern Europe Challange" and "Focus on the West" you have the reward:

has_annex_war_goal = ...

This is a check, and would be used in the "available" box. To create a wargoal, you need to use:

create_wargoal = { 

type = annex_everything 

target = ...

}

-jordsta95

 so errors remove the focuses?

 so errors remove the focuses?

-MrMinion13WasTooken

 Kind of...

Errors prevent the game from loading anything further down in the file. Sometimes it means that only a handful of focuses load, sometimes it means none load and you get the generic focus tree/default one for the nation.

 so errors remove the focuses?

-MrMinion13WasTooken

 Kind of...

Errors prevent the game from loading anything further down in the file. Sometimes it means that only a handful of focuses load, sometimes it means none load and you get the generic focus tree/default one for the nation.

-jordsta95

 I just realised that most of the code is outdated since ive used the focus tree manager code aka the one that pops up when in the rewards. So i decided to just take the long route and just use the wiki.