Stellaris

Stellaris

Ancient Cache of Technologies
Ben_D⚜ 27. dec. 2020 kl. 5:27
Game crashing event bug
There needs to be an active pinned bug thread that the mod authors are dedicated to interact with. There's no shortage of them. I have one for the mods I work on...

I came across a CTD-inducing bug in this file: 1419304439\events\acot_dark_matter_events.txt. Here's the code starting at line 190, ending at line 242:
country_event = { id = dark_matter_event.2 title = dark_matter_event.2.name desc = dark_matter_event.2.desc picture = GFX_evt_engineering_research show_sound = event_conversation is_triggered_only = yes immediate = { set_country_flag = learned_dark_rumor if = { limit = { has_special_project = RESEARCH_DARK_POWER_NORMAL } abort_special_project = { type = RESEARCH_DARK_POWER_NORMAL } } remove_point_of_interest = acot_dm_find_enigmatic.1 remove_point_of_interest = acot_dm_find_enigmatic.3 remove_point_of_interest = acot_dm_find_enigmatic.4 } option = { name = dark_matter_event.2.a custom_tooltip = dark_matter_event.2.a.desc capital_scope = { create_point_of_interest = { id = acot_dm_tech_poi.1 name = "acot_dm_tech_physics" desc = "acot_dm_tech_physics_desc" event_chain = acot_dm_tech_chain location = this } create_point_of_interest = { id = acot_dm_tech_poi.2 name = "acot_dm_tech_social" desc = "acot_dm_tech_social_desc" event_chain = acot_dm_tech_chain location = this } create_point_of_interest = { id = acot_dm_tech_poi.3 name = "acot_dm_tech_engineers" desc = "acot_dm_tech_engineers_desc" event_chain = acot_dm_tech_chain location = this } } } }

The problem here is that the limit in the immediate scope causes a fatal conflict with the special project found here: 1419304439\common\special_projects\dark_matter_projects.txt. The first "RESEARCH_DARK_POWER_NORMAL" special project is what conflicts.

special_project = { key = "RESEARCH_DARK_POWER_NORMAL" cost = 30000 tech_department = physics_technology picture = GFX_evt_surreal_visions event_chain = acot_dm_tech_chain event_scope = planet_event abort_trigger = { OR = { has_country_flag = learned_dark_rumor has_technology = "tech_dark_matter_power_core" has_tech_option = tech_dark_matter_power_core } } on_success = { owner = { country_event = { id = dark_matter_event.2 } } } on_fail = { } }

So what I did to remedy this is the following (in 1419304439\events\acot_dark_matter_events.txt):

country_event = { id = dark_matter_event.2 title = dark_matter_event.2.name desc = dark_matter_event.2.desc picture = GFX_evt_engineering_research show_sound = event_conversation is_triggered_only = yes immediate = { set_country_flag = learned_dark_rumor # if = { # limit = { # has_special_project = RESEARCH_DARK_POWER_NORMAL # } # abort_special_project = { # type = RESEARCH_DARK_POWER_NORMAL # } # } remove_point_of_interest = acot_dm_find_enigmatic.1 remove_point_of_interest = acot_dm_find_enigmatic.3 remove_point_of_interest = acot_dm_find_enigmatic.4 } option = { name = dark_matter_event.2.a custom_tooltip = dark_matter_event.2.a.desc capital_scope = { create_point_of_interest = { id = acot_dm_tech_poi.1 name = "acot_dm_tech_physics" desc = "acot_dm_tech_physics_desc" event_chain = acot_dm_tech_chain location = this } create_point_of_interest = { id = acot_dm_tech_poi.2 name = "acot_dm_tech_social" desc = "acot_dm_tech_social_desc" event_chain = acot_dm_tech_chain location = this } create_point_of_interest = { id = acot_dm_tech_poi.3 name = "acot_dm_tech_engineers" desc = "acot_dm_tech_engineers_desc" event_chain = acot_dm_tech_chain location = this } } } }

and here (in 1419304439\common\special_projects\dark_matter_projects.txt):

special_project = { key = "RESEARCH_DARK_POWER_NORMAL" cost = 30000 tech_department = physics_technology picture = GFX_evt_surreal_visions event_chain = acot_dm_tech_chain event_scope = planet_event abort_trigger = { OR = { has_country_flag = learned_dark_rumor has_technology = "tech_dark_matter_power_core" has_tech_option = tech_dark_matter_power_core } } on_success = { owner = { country_event = { id = dark_matter_event.2 } abort_special_project = { #<-Added line type = RESEARCH_DARK_POWER_NORMAL #<-Added line } #<-Added line } } on_fail = { } }

Please fix this so everyone else doesn't experience this CTD.
Sidst redigeret af Ben_D⚜; 27. dec. 2020 kl. 5:59