Equipment Trigger

Strange. Looking at the types of conditions you can check against, it may be better to use

has_navy_size = {

    size > 0

    type = capital_ship

    archetype = ship_hull_heavy

}


This would be checking for a superheavy battleship (but it may also do a heavy battleships - not too sure)



It may be possible to do this too, but I'm not sure:

OR = {

has_equipment = {

    SH_battleship_1 > 0

}

has_equipment = {

    SH_battleship_2 > 0

}

has_equipment = {

    ship_hull_super_heavy_1 > 0

}

}


This would account for all ships which have the model "super_heavy_battleship" - Though, I am not too sure if "has_equipment" works on the navy

-jordsta95

 That first one worked, but after I added some focuses it broke again. I removed 2 out of the 3 that I added and the error keeps happening. The new one I added is "Modernize The Military" all it does is remove a national spirit so I have no idea how it broke, for some reason the error log is HUGE.


Also I don't know if this has anything to do with my mod as I didn't add anything like it, but when I went into a game some countries had a way bigger navy than they should. Spain had 600+ ships, UK had 850+, Soviets had 700+. Even Canada had 150+. This was all in just 2 months of the start date (I started in 1936). The game crashed like 10-20 days later. 


I am sorry that I keep messaging and messaging but this one was really weird, especially the navy thing, I had no other mod in use at the time so I was extremely confused. Once again, sorry that this Discussion has been going on for ages but I don't know why the error log became this large.

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2123" in file: "common/national_focus/420.txt" near line: 2137

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2140" in file: "common/national_focus/420.txt" near line: 2169

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2172" in file: "common/national_focus/420.txt" near line: 2187

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2190" in file: "common/national_focus/420.txt" near line: 2208

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2211" in file: "common/national_focus/420.txt" near line: 2226

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2229" in file: "common/national_focus/420.txt" near line: 2248

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2251" in file: "common/national_focus/420.txt" near line: 2270

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2273" in file: "common/national_focus/420.txt" near line: 2292

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2295" in file: "common/national_focus/420.txt" near line: 2316

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2319" in file: "common/national_focus/420.txt" near line: 2348

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2351" in file: "common/national_focus/420.txt" near line: 2382

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2385" in file: "common/national_focus/420.txt" near line: 2403

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2406" in file: "common/national_focus/420.txt" near line: 2426

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2429" in file: "common/national_focus/420.txt" near line: 2458

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2461" in file: "common/national_focus/420.txt" near line: 2481

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2484" in file: "common/national_focus/420.txt" near line: 2498

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2501" in file: "common/national_focus/420.txt" near line: 2518

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2521" in file: "common/national_focus/420.txt" near line: 2530

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2533" in file: "common/national_focus/420.txt" near line: 2553

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2556" in file: "common/national_focus/420.txt" near line: 2573

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2576" in file: "common/national_focus/420.txt" near line: 2595

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2598" in file: "common/national_focus/420.txt" near line: 2616

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2619" in file: "common/national_focus/420.txt" near line: 2635

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2638" in file: "common/national_focus/420.txt" near line: 2656

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2659" in file: "common/national_focus/420.txt" near line: 2683

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2686" in file: "common/national_focus/420.txt" near line: 2704

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2707" in file: "common/national_focus/420.txt" near line: 2724

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2727" in file: "common/national_focus/420.txt" near line: 2743

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2746" in file: "common/national_focus/420.txt" near line: 2761

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2764" in file: "common/national_focus/420.txt" near line: 2786

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2789" in file: "common/national_focus/420.txt" near line: 2810

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2813" in file: "common/national_focus/420.txt" near line: 2833

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2836" in file: "common/national_focus/420.txt" near line: 2855

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2858" in file: "common/national_focus/420.txt" near line: 2876

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2879" in file: "common/national_focus/420.txt" near line: 2897

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2900" in file: "common/national_focus/420.txt" near line: 2930

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2933" in file: "common/national_focus/420.txt" near line: 2962

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2965" in file: "common/national_focus/420.txt" near line: 2983

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 2986" in file: "common/national_focus/420.txt" near line: 3008

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 3011" in file: "common/national_focus/420.txt" near line: 3027

[06:22:21][persistent.cpp:52]: Error: "Unexpected token: focus, near line: 3030" in file: "common/national_focus/420.txt" near line: 3044

[06:22:23][nationalfocus.cpp:1751]: BAD_submarines_ii: Couldn't find dependency BAD_submarines 

[06:22:23][nationalfocus.cpp:1751]: BAD_big_ships_ii: Couldn't find dependency BAD_big_ships 

[06:22:23][nationalfocus.cpp:1751]: BAD_improved_naval_doctrine: Couldn't find dependency BAD_naval_doctrine 

[06:22:23][nationalfocus.cpp:1751]: BAD_extra_research: Couldn't find dependency BAD_support_equipment_2 

[06:22:23][nationalfocus.cpp:1751]: BAD_extra_research: Couldn't find dependency BAD_infantry_equipment_2 

[06:22:23][effect.cpp:292]: Error: "Unexpected token: =, near line: 21

" in file: "history/countries/BAD - Baddie Empire.txt" near line: 22

[06:22:23][effect.cpp:292]: Error: "Unexpected token: =, near line: 26

" in file: "history/countries/BAD - Baddie Empire.txt" near line: 27

[06:23:05][effect.cpp:292]: Error: "Unexpected token: =, near line: 21

" in file: "history/countries/BAD - Baddie Empire.txt" near line: 22

[06:23:05][effect.cpp:292]: Error: "Unexpected token: =, near line: 26

" in file: "history/countries/BAD - Baddie Empire.txt" near line: 27

[06:25:11][persistent.cpp:52]: Error: "Error reading division template (City Defence Army) for country ---.

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

[06:49:46][bitmapfont.cpp:1301]: Couldnt find texticon: unit_category_light_infantry_icon_small

[06:50:35][eventmanager.cpp:384]: events/CapitulationEvents.txt:8: country_capitulated.0: No valid option for event. This might be a script bug

[06:51:58][eventmanager.cpp:384]: events/CapitulationEvents.txt:8: country_capitulated.0: No valid option for event. This might be a script bug

[06:53:25][bitmapfont.cpp:1301]: Couldnt find texticon: unit_category_front_line_icon_small

[06:53:31][bitmapfont.cpp:1301]: Couldnt find texticon: unit_category_light_infantry_icon_small

[06:54:27][bitmapfont.cpp:1301]: Couldnt find texticon: unit_category_light_infantry_icon_small

[06:59:05][trigger.cpp:379]: common/scripted_effects/TUR_scripted_effects.txt:563: has_idea: Invalid Scope

[06:59:05][effect.cpp:497]: common/scripted_effects/TUR_scripted_effects.txt:565: swap_ideas: Invalid Scope


I have tried looking at the lines but it just takes me to stuff like "Improve Civilian Tech II" but there is nothing wrong with it (as far as I know), there is a } at the end and there is the same amount of { and }.  I did also add a custom icon to the spirit "Baddie Empire", also "New Nation", "We Stand Alone", "Baddie Core" and "Bastion Of Baddies" are all new spirits, but they were working beforehand.

The Baddie Core and Baddie Empire ones were some of the spirits that were meant to go with my recently deleted focus, so maybe they could be causing an error? I amn't really good at knowing what the error log means, so I amn't really a good help.


Sorry for the constant messaging, I know other people probably have issues as well.

Thanks for any help.