Focus Tree Missing Majority of Focuses

Hi,


When I load up my mod for a bit of a test, all but a handful of focuses are missing. The focuses that are there say that there is no effect when completed.

Any help would be appreciated :)

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

[18:42:09][countrydatabase.cpp:137]: Duplicate Country Tag - AST

[18:42:12][equipment_graphic_database.cpp:51]: Entity referenced in equipment graphic database does not exist: GER_heavy_armor_0_entity

[18:42:15][effect.cpp:297]: Error: "common/decisions/osKOIrhQ_decisions.txt:49 Invalid resource: chrome: type, near line: 50" in file: "common/decisions/osKOIrhQ_decisions.txt" near line: 53

[18:42:15][effect.cpp:402]: Invalid effect 'autonomy_gain' in common/national_focus/1.txt line : 80

[18:42:15][effect.cpp:297]: Error: "Unknown effect-type: autonomy_gain, near line: 80" in file: "common/national_focus/1.txt" near line: 81

[18:42:15][effect.cpp:402]: Invalid effect 'autonomy_gain' in common/national_focus/1.txt line : 87

[18:42:15][effect.cpp:297]: Error: "Unknown effect-type: autonomy_gain, near line: 87" in file: "common/national_focus/1.txt" near line: 88

[18:42:15][effect.cpp:402]: Invalid effect 'conversion_cost_mil_to_civ_factor' in common/national_focus/1.txt line : 122

[18:42:15][effect.cpp:297]: Error: "Unknown effect-type: conversion_cost_mil_to_civ_factor, near line: 122" in file: "common/national_focus/1.txt" near line: 124

[18:42:15][effect.cpp:402]: Invalid effect 'trade_opinion_factor' in common/national_focus/1.txt line : 138

[18:42:15][effect.cpp:402]: Invalid effect 'consumer_goods_factor' in common/national_focus/1.txt line : 139

[18:42:15][effect.cpp:297]: Error: "Unknown effect-type: trade_opinion_factor, near line: 138

Unknown effect-type: consumer_goods_factor, near line: 139" in file: "common/national_focus/1.txt" near line: 141

[18:42:15][effect.cpp:402]: Invalid effect 'focus' in common/national_focus/1.txt line : 165

[18:42:15][effect.cpp:297]: Error: "Unknown effect-type: focus, near line: 165" in file: "common/national_focus/1.txt" near line: 561

[18:42:15][nationalfocus.cpp:163]: Duplicate focus name will cause database problems: AST_allied_works_council

[18:42:15][texturehandler.cpp:155]: Texture Handler encountered missing texture file: gfx/interface/technologies/SOV_advanced_medium_tank_destroyer.dds

[18:42:15][texturehandler.cpp:209]: Couldn't find texture file: gfx/interface/technologies/SOV_advanced_medium_tank_destroyer.dds.

[18:42:15][texturehandler.cpp:155]: Texture Handler encountered missing texture file: gfx/interface/technologies/SOV_improved_medium_tank_destroyer.dds

[18:42:15][texturehandler.cpp:209]: Couldn't find texture file: gfx/interface/technologies/SOV_improved_medium_tank_destroyer.dds.

[18:42:15][texturehandler.cpp:155]: Texture Handler encountered missing texture file: gfx/interface/technologies/SOV_improved_medium_tank_artillery.dds

[18:42:15][texturehandler.cpp:209]: Couldn't find texture file: gfx/interface/technologies/SOV_improved_medium_tank_artillery.dds.

[18:42:15][nationalfocus.cpp:497]: Error in focus: AST_turn_away_from_the_uk (common/national_focus/1.txt:44 )

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

[18:42:16][effect.cpp:402]: Invalid effect 'stability_factor' in events/the_death_of_joseph_lyons.txt line : 21

[18:42:16][persistent.cpp:48]: Error: "Unknown effect-type: stability_factor, near line: 21" in file: "events/the_death_of_joseph_lyons.txt" near line: 21

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

[18:42:19][country.cpp:7463]: Attempting to set captial state #1 for Australia, they dont own it!

[18:42:37][persistent.cpp:48]: Error: "Error reading division template (Example Division) for country ---.

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


Seems like you are using modifiers as rewards. Modifiers can only be used in ideas, if you want to use these you will want to create national spirits (in the ideas tool) and have the focus do "add_ideas = your_idea_name" (where your_idea_name is the name of the idea you created).


Focuses which are using modifiers as rewards:

  • Abandon the Imperial Preferance System
  • Announce the Trade Diversion Policy
  • Fight Work Or Perish
  • State Railway Workshops
  • Natural Resouce Powerhouse



Alongside this, the focuses "Prince's Highway Upgrades" and "Great Ocean Road" are missing 2 braces ("}") at the end of the reward.


In the focus "Increased Mining in the Northern Territory" you are missing the closing braces for both "add_resource" declarations, and the one for the state; if you put a " }" after the "10" and "5" for both "add_resource" declarations, and an extra } at the end of the reward that'll fix that one.


In "Establish The Advisory War Council" you have "add_political_power = { 150 }" which should be "add_political_power = 150"


In "National Security Act" you have the same as before with all of the rewards. "add_stability" can stay, the other two are modifiers and need to be assigned to an idea.


Both of "Civil Construction Corps" have the same issue, and both rewards are modifiers.


In "Natural Resouce Powerhouse" you have the reward "Unlocks Natural Resource Powerhouse decisions." The game will have no idea what you are trying to do here. If this is meant to be a comment for future reference, put a "#" at the start, so the game will see it as a comment, and ignore it.

Also in this focus, you have the available "complete_national_focus = 546795" if you are trying to check if a focus has been completed, and the focus is in the same tree, you should really use the prerequisite box. However, if this won't work for whatever reason, you need to use "has_compeleted_focus = AST_focus_name" the thing you have used is to force a focus to be completed, and cannot be used as a check.



If you still have any issues after fixing those, send across the new error log and I'll take another look. The game can be a pain to debug sometimes, as the moment it encounters an error, it will stop loading the file/throw errors for everything in the file - even if most things are correct.

Thank you so much for that! I will go through all these and let you know how I go.

I am trying to get a national spirit to trigger once the focus is complete but it doesn't seem to work. In game, under the effect of the focus it simply says "Add." once complete nothing happens. I am also getting errors saying duplicate focuses but that isn't the case?

Please help again and thanks in advance!

[12:33:04][countrydatabase.cpp:137]: Duplicate Country Tag - AST

[12:33:08][equipment_graphic_database.cpp:51]: Entity referenced in equipment graphic database does not exist: GER_heavy_armor_0_entity

[12:33:10][effect.cpp:297]: Error: "common/decisions/natural_resouce_powerhouse_decisions.txt:49 Invalid resource: chrome: type, near line: 50" in file: "common/decisions/natural_resouce_powerhouse_decisions.txt" near line: 53

[12:33:10][effect.cpp:402]: Invalid effect 'limit' in common/national_focus/1.txt line : 237

[12:33:10][effect.cpp:297]: Error: "Unknown effect-type: limit, near line: 237" in file: "common/national_focus/1.txt" near line: 249

[12:33:10][effect.cpp:402]: Invalid effect 'limit' in common/national_focus/1.txt line : 300

[12:33:10][effect.cpp:297]: Error: "Unknown effect-type: limit, near line: 300" in file: "common/national_focus/1.txt" near line: 312

[12:33:10][effect.cpp:402]: Invalid effect 'limit' in common/national_focus/1.txt line : 332

[12:33:10][effect.cpp:297]: Error: "Unknown effect-type: limit, near line: 332" in file: "common/national_focus/1.txt" near line: 344

[12:33:10][effect.cpp:402]: Invalid effect 'limit' in common/national_focus/1.txt line : 391

[12:33:10][effect.cpp:297]: Error: "Unknown effect-type: limit, near line: 391" in file: "common/national_focus/1.txt" near line: 403

[12:33:10][trigger.cpp:641]: Invalid trigger 'has_compeleted_focus' in common/national_focus/1.txt line : 518

[12:33:10][trigger.cpp:494]: Error: "Unknown trigger-type: has_compeleted_focus, near line: 518" in file: "common/national_focus/1.txt" near line: 520

[12:33:10][nationalfocus.cpp:163]: Duplicate focus name will cause database problems: AST_south_australian_housing_trust

[12:33:10][nationalfocus.cpp:163]: Duplicate focus name will cause database problems: AST_expand_lithgow_small_arms_factory

[12:33:10][nationalfocus.cpp:163]: Duplicate focus name will cause database problems: AST_allied_works_council

[12:33:10][nationalfocus.cpp:163]: Duplicate focus name will cause database problems: AST_national_security_act

[12:33:10][nationalfocus.cpp:163]: Duplicate focus name will cause database problems: AST_fight_work_or_perish

[12:33:10][texturehandler.cpp:155]: Texture Handler encountered missing texture file: gfx/interface/technologies/SOV_advanced_medium_tank_destroyer.dds

[12:33:10][texturehandler.cpp:209]: Couldn't find texture file: gfx/interface/technologies/SOV_advanced_medium_tank_destroyer.dds.

[12:33:10][texturehandler.cpp:155]: Texture Handler encountered missing texture file: gfx/interface/technologies/SOV_improved_medium_tank_destroyer.dds

[12:33:10][texturehandler.cpp:209]: Couldn't find texture file: gfx/interface/technologies/SOV_improved_medium_tank_destroyer.dds.

[12:33:10][texturehandler.cpp:155]: Texture Handler encountered missing texture file: gfx/interface/technologies/SOV_improved_medium_tank_artillery.dds

[12:33:10][texturehandler.cpp:209]: Couldn't find texture file: gfx/interface/technologies/SOV_improved_medium_tank_artillery.dds.

[12:33:11][effect.cpp:402]: Invalid effect 'stability_factor' in events/the_death_of_joseph_lyons.txt line : 21

[12:33:11][persistent.cpp:48]: Error: "Unknown effect-type: stability_factor, near line: 21" in file: "events/the_death_of_joseph_lyons.txt" near line: 21

[12:33:11][database_scoped_variables.cpp:323]: invalid database object for effect/trigger: synthetic_refinery. use var:var_name to explicitly use variables in effects/triggers

[12:33:13][gameapplication.cpp:710]: The game has loc key collisions. Check logs/text.log for more details

[12:33:15][country.cpp:7463]: Attempting to set captial state #1 for Australia, they dont own it!

[12:33:48][persistent.cpp:48]: Error: "Error reading division template (Example Division) for country ---.

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