The focus tree dont working.

After completing my focus tree for my mod without any missing or error, when I transfer it to the game for testing, the focus tree does not appear in the game!

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


When the game runs in to an error in your focus tree, e.g. trying to add a factory without specifying a state to add it to, it will stop loading the tree at that point.

Wait, so if there's an error at one focus, it wont read the focuses after it?


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


When the game runs in to an error in your focus tree, e.g. trying to add a factory without specifying a state to add it to, it will stop loading the tree at that point.

-jordsta95

https://file.io/XAmXXkGLL4Im
https://file.io/NqZHB1tTJOin
I uploaded all error logs. Please help me

In the Ottoman Empire focus tree you have the following errors:

In the focus "The 93 Harbi" you have the following in the available section... not sure what you're trying to do though:

date >, date < > 1877.4.17

If it should just be available after 1877.4.17 you would need:

date > 1877.4.17


In the Ottoman Egypt focus tree:

In the focus "Construction Speed I" and "Construction Speed II" you have the reward:

production_speed_buildings_factor = 0.5

This is only available to be used in an idea (national spirit). If you want to speed up building production by 50% you will need to create a national spirit with the above reward, and then in the focus use "add_idea = YOUR_NATIONAL_SPIRIT"


In the focus "Production Effort I" and "Production Effort II" you have a similar issue with:

production_factory_max_efficiency_factor = 0.5 


In the focus "Artillery Effort I" and "Artillery Effort II" you need to swap the equipment being added as what's currently there is invalid:

type = artillery_1

should be:

type = artillery_equipment_1


In the focus "Equipment Effort I" and "Equipment Effort II" you need to swap the equipment from:

type = infantry_1

to

type = infantry_equipment_1


In your start date

On some of the countries you have put a number for the focuses. The game is looking for focus IDs, which will appear like so: [TAG]_[your_focus_name]

TAG is the tag of the nation, e.g. OSM, and your_focus_name is the name of your focus tree lowercase, spaces replaced with _ and all other non-alphanumeric characters removed. E.g.

OSM_abdulhamids_industry_plan


For the countries Austria Hungary, British India, French Africa, French Indochina, Great Britain, German Empire, Kingdom of Greece, Netherlands, Kingdom of Italy, Ottoman Bayrayn, Ottoman Hejaz, Ottoman Empire, Ottoman Tunusia, Ottoman Yemen, Turkhestan Autonomy, Principality of Wallachia:

In the misc tab you need to set a last election date, in the format YYYY.MM.DD, and put how many years elections will last. Even if the country doesn't have elections, the game needs this information to create the country.


For the countries France, Russian Tsardom, Ottoman Empire:

You have created an empty subject, which is causing an error when loading the country.


In the country Russian Tsardom:

The idea "Mihail Rolis Melikov" is invalid. You can only assign traits through the country tool, if you need to create your own effect, then you will need to create the person in government via the ideas tool and put the modifier in there.


For the event: The Ottomans invite us to Alliance

The first option is using a reward as a trigger:

add_political_power = 300


Unsure where these are located:

The ideas "Ahmetmuhtarpasa" and "Rail Clock Industry" haven't been assigned a ledger. This is used to decide which icon should appear next to their name (military/air/naval)




There's possibly a few I didn't spot, but if you resolve the above, and share the error log you get afterwards (if some things still aren't loading) I'll be able to help with those too :)


In the Ottoman Empire focus tree you have the following errors:

In the focus "The 93 Harbi" you have the following in the available section... not sure what you're trying to do though:

date >, date < > 1877.4.17

If it should just be available after 1877.4.17 you would need:

date > 1877.4.17


In the Ottoman Egypt focus tree:

In the focus "Construction Speed I" and "Construction Speed II" you have the reward:

production_speed_buildings_factor = 0.5

This is only available to be used in an idea (national spirit). If you want to speed up building production by 50% you will need to create a national spirit with the above reward, and then in the focus use "add_idea = YOUR_NATIONAL_SPIRIT"


In the focus "Production Effort I" and "Production Effort II" you have a similar issue with:

production_factory_max_efficiency_factor = 0.5 


In the focus "Artillery Effort I" and "Artillery Effort II" you need to swap the equipment being added as what's currently there is invalid:

type = artillery_1

should be:

type = artillery_equipment_1


In the focus "Equipment Effort I" and "Equipment Effort II" you need to swap the equipment from:

type = infantry_1

to

type = infantry_equipment_1


In your start date

On some of the countries you have put a number for the focuses. The game is looking for focus IDs, which will appear like so: [TAG]_[your_focus_name]

TAG is the tag of the nation, e.g. OSM, and your_focus_name is the name of your focus tree lowercase, spaces replaced with _ and all other non-alphanumeric characters removed. E.g.

OSM_abdulhamids_industry_plan


For the countries Austria Hungary, British India, French Africa, French Indochina, Great Britain, German Empire, Kingdom of Greece, Netherlands, Kingdom of Italy, Ottoman Bayrayn, Ottoman Hejaz, Ottoman Empire, Ottoman Tunusia, Ottoman Yemen, Turkhestan Autonomy, Principality of Wallachia:

In the misc tab you need to set a last election date, in the format YYYY.MM.DD, and put how many years elections will last. Even if the country doesn't have elections, the game needs this information to create the country.


For the countries France, Russian Tsardom, Ottoman Empire:

You have created an empty subject, which is causing an error when loading the country.


In the country Russian Tsardom:

The idea "Mihail Rolis Melikov" is invalid. You can only assign traits through the country tool, if you need to create your own effect, then you will need to create the person in government via the ideas tool and put the modifier in there.


For the event: The Ottomans invite us to Alliance

The first option is using a reward as a trigger:

add_political_power = 300


Unsure where these are located:

The ideas "Ahmetmuhtarpasa" and "Rail Clock Industry" haven't been assigned a ledger. This is used to decide which icon should appear next to their name (military/air/naval)




There's possibly a few I didn't spot, but if you resolve the above, and share the error log you get afterwards (if some things still aren't loading) I'll be able to help with those too :)


-jordsta95

 Thanks! :)