Duplicate Country tags

Hello I'm making a new mod and running into problems with duplicate country tag error

Can anyone help with this I've tried looking for an answer and I haven't been able to find a solution 


Thanks

Would you be able to run the game in debug mode, and share the full error log?

[22:19:36][countrydatabase.cpp:137]: Duplicate Country Tag - ITA

[22:19:38][parser.cpp:932]: Error: unexpected token in file: "common/ideas/AGID_agricultural-industry.txt" near line: 22 ( ITA )

[22:19:38][trigger.cpp:641]: Invalid trigger 'modifier' in common/ideas/AGID_agricultural-industry.txt line : 28

[22:19:38][trigger.cpp:494]: Error: "Unknown trigger-type: modifier, near line: 28" in file: "common/ideas/AGID_agricultural-industry.txt" near line: 34

[22:19:38][persistent.cpp:48]: Error: "Unexpected token: AGID_dietro_gli_inglesi, near line: 36" in file: "common/ideas/AGID_agricultural-industry.txt" near line: 47

[22:19:38][persistent.cpp:48]: Error: "Unknown modifier: production_speed_infrastructure, near line: 8" in file: "common/ideas/LTRB_long-term-recovery-bill.txt" near line: 8

[22:19:38][persistent.cpp:48]: Error: "Malformed token: {, near line: 7" in file: "common/ideas/MANU_manufactors.txt" near line: 7

[22:19:38][persistent.cpp:48]: Error: "Unexpected token: armor_research_speed_factor, near line: 11" in file: "common/ideas/MANU_manufactors.txt" near line: 11

[22:19:38][parser.cpp:932]: Error: unexpected token in file: "common/ideas/MANU_manufactors.txt" near line: 18 ( } )

[22:19:38][gameitemdatabasehelper.h:150]: Error: "Unexpected token: }, near line: 18" in file: "common/ideas/MANU_manufactors.txt" near line: 18

[22:19:38][parser.cpp:932]: Error: unexpected token in file: "common/decisions/categories/revise_politica_economica.txt" near line: 3 ( ITA )

[22:19:39][nationalfocus.cpp:497]: Error in focus: ITA_short_term_industry (common/national_focus/ita-1.txt:62 )

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

[22:19:40][parser.cpp:932]: Error: unexpected token in file: "events/RPE_revise_politica_economica.txt" near line: 13 ( politica )

[22:19:40][trigger.cpp:641]: Invalid trigger 'politica' in events/RPE_revise_politica_economica.txt line : 13

[22:19:40][trigger.cpp:494]: Error: "Unknown trigger-type: politica, near line: 13" in file: "events/RPE_revise_politica_economica.txt" near line: 16

[22:19:40][effect.cpp:402]: Invalid effect 'term' in events/RPE_revise_politica_economica.txt line : 25

[22:19:40][persistent.cpp:48]: Error: "Unknown effect-type: term, near line: 25" in file: "events/RPE_revise_politica_economica.txt" near line: 25

[22:19:40][effect.cpp:402]: Invalid effect 'term' in events/RPE_revise_politica_economica.txt line : 38

[22:19:40][persistent.cpp:48]: Error: "Unknown effect-type: term, near line: 38" in file: "events/RPE_revise_politica_economica.txt" near line: 38

[22:19:40][effect.cpp:402]: Invalid effect 'ITA_victor_emmanuel_iii' in events/WTT_Germany.txt line : 454

[22:19:40][persistent.cpp:48]: Error: "Unknown effect-type: ITA_victor_emmanuel_iii, near line: 454" in file: "events/WTT_Germany.txt" near line: 456

[22:19:40][triggerimplementation.cpp:3132]: Invalid focus scripted in trigger. has_completed_focus = Revise_politica_economica (common/decisions/categories/revise_politica_economica.txt:4: has_completed_focus)

[22:19:40][trigger.cpp:114]: Trigger failed to validate: common/decisions/categories/revise_politica_economica.txt:4: has_completed_focus

[22:19:41][triggerimplementation.cpp:3132]: Invalid focus scripted in trigger. has_completed_focus = Revise (events/RPE_revise_politica_economica.txt:13: has_completed_focus)

[22:19:41][trigger.cpp:114]: Trigger failed to validate: events/RPE_revise_politica_economica.txt:13: has_completed_focus

[22:19:41][effectimplementation.cpp:2746]: common/national_focus/ita-1.txt:48: add_timed_idea: Invalid idea: Long_term_recovery_Bill. If you wanted to reference a variable, you need to explicitly prefix it with var: or temp_var:.

[22:19:44][gameapplication.cpp:713]: The game has loc key collisions. Check logs/text.log for more details

The duplicate country tag for ITA is quite strange, as there's no errors with your country's file. However, you do have the following errors in the mod:


For your agriculture ideas:

The "allowed" for "aerei obsoleti" should be "tag = ITA" instead of "tag = { ITA }"


For manufacturing ideas:

The FIAT idea's research bonus doesn't need the "research_bonus = {" and "}" at the end - this gets added when exporting


For long term recovery ideas:

"production_speed_infrastructure" is invalid, it should be "production_speed_infrastructure_factor"


For your decision, in the allowed section, again needs the "tag = ITA" change, and the focus check needs to match the focus' ID, which will be something like "ITA_revise_politica_economica" if the focus name is "Revise politica economica"


In your focus tree, the Short Term & Long Term focuses both need the mutually exclusive-ness setting.


And in the focus "Long term recovery" the idea "Long_term_recovery_Bill" doesn't exist, the ID is "LTRB_long_term_recovery_bill".


In your event, all the "has_completed_focus" checks need to use the focus IDs. E.g. ITA_long_term_recovery, instead of "Long Term Recovery"


thank you for the help I have fixed most of these but I am now having trouble with focus not showing up

[12:24:10][countrydatabase.cpp:137]: Duplicate Country Tag - ITA

[12:24:12][persistent.cpp:48]: Error: "Unknown modifier: armor_research_speed_factor, near line: 11" in file: "common/ideas/MANU_manufactors.txt" near line: 11

[12:24:13][effect.cpp:402]: Invalid effect 'focus' in common/national_focus/ita-1.txt line : 133

[12:24:13][effect.cpp:402]: Invalid effect 'focus' in common/national_focus/ita-1.txt line : 159

[12:24:13][effect.cpp:402]: Invalid effect 'focus' in common/national_focus/ita-1.txt line : 184

[12:24:13][effect.cpp:402]: Invalid effect 'focus' in common/national_focus/ita-1.txt line : 209

[12:24:13][effect.cpp:297]: Error: "Unknown effect-type: focus, near line: 133

Unknown effect-type: focus, near line: 159

Unknown effect-type: focus, near line: 184

Unknown effect-type: focus, near line: 209" in file: "common/national_focus/ita-1.txt" near line: 245

[12:24:14][effect.cpp:402]: Invalid effect '_recovery' in events/RPE_revise_politica_economica.txt line : 28

[12:24:14][persistent.cpp:48]: Error: "Unknown effect-type: _recovery, near line: 28" in file: "events/RPE_revise_politica_economica.txt" near line: 28

[12:24:14][effect.cpp:402]: Invalid effect '=' in events/RPE_revise_politica_economica.txt line : 28

[12:24:14][persistent.cpp:48]: Error: "Unknown effect-type: =, near line: 28" in file: "events/RPE_revise_politica_economica.txt" near line: 30

[12:24:14][effect.cpp:402]: Invalid effect 'ITA_victor_emmanuel_iii' in events/WTT_Germany.txt line : 454

[12:24:14][persistent.cpp:48]: Error: "Unknown effect-type: ITA_victor_emmanuel_iii, near line: 454" in file: "events/WTT_Germany.txt" near line: 456

[12:24:14][triggerimplementation.cpp:3132]: Invalid focus scripted in trigger. has_completed_focus = ITA_Revise_politica_economica (common/decisions/categories/revise_politica_economica.txt:4: has_completed_focus)

[12:24:14][trigger.cpp:114]: Trigger failed to validate: common/decisions/categories/revise_politica_economica.txt:4: has_completed_focus

[12:24:14][triggerimplementation.cpp:3132]: Invalid focus scripted in trigger. has_completed_focus = ITA_Revise_politica_economica (events/RPE_revise_politica_economica.txt:13: has_completed_focus)

[12:24:14][trigger.cpp:114]: Trigger failed to validate: events/RPE_revise_politica_economica.txt:13: has_completed_focus

[12:24:17][gameapplication.cpp:713]: The game has loc key collisions. Check logs/text.log for more details