What is necessary to get the game to start techs as inactive? I am at wit's end trying to figure out what I need to do in the files to get the game to recognize that my added technologies should have an invention event to fire before they're activated.
I even looked in the scenario file figuring that maybe the scenario declares techs inactive at the start, but I couldn't find anything there, either.
I have an event declaration, the event, the tech application (requiring a prerequisite) and all of the necessary strings and inclusions (e.g. the game has all my stuff labelled properly in game).
There must be something incredibly simple that I am missing or the techs are deactivated at runtime by a file somewhere that I'm unaware of.
For example:
I've got an invention event declaration in the tech file
I have the event this references:
On the tech tree if you hover over the event box (the one with the question mark in it) it even says
So it is obviously reading the event (the problem here is that NC Focus (20070) is of course active, when I don't want it to be; it should be (*) Tech NC Focus is not active and the event box should be grayed out and not green as though the event fired).
I've got a basic technology set up
I have the tech that should enable the event and is required for this technology:
I even looked in the scenario file figuring that maybe the scenario declares techs inactive at the start, but I couldn't find anything there, either.
I have an event declaration, the event, the tech application (requiring a prerequisite) and all of the necessary strings and inclusions (e.g. the game has all my stuff labelled properly in game).
There must be something incredibly simple that I am missing or the techs are deactivated at runtime by a file somewhere that I'm unaware of.
For example:
I've got an invention event declaration in the tech file
Code:
event = {
id = 1105000
position = { x = 130 y = 425 }
technology = 20070
}
I have the event this references:
Code:
event = {
id = 1105000
random = no
invention = yes
trigger = {
technology = 57000 #early transistor electronics
NOT = {
is_tech_active = 20070
}
}
name = "Theoretical Breakthrough"
desc = "Stuff."
picture = "scientist"
style = 0
action_a = {
name = "ACTIONNAME3201A" # OK
command = { type = activate which = 20070 }
}
}
On the tech tree if you hover over the event box (the one with the question mark in it) it even says
(-) Tech Transistor Electronics is known
(-) Tech NC Focus is not active
So it is obviously reading the event (the problem here is that NC Focus (20070) is of course active, when I don't want it to be; it should be (*) Tech NC Focus is not active and the event box should be grayed out and not green as though the event fired).
I've got a basic technology set up
Code:
application = {
id = 20070 #NC Focus
name = TECH_APP_LD_407_NAME
desc = SHORT_TECH_APP_LD_407_NAME
position = { x = 130 y = 446 }
year = 1944
component = { id = 20071 name = TECH_CMP_LD_407_1_NAME type = electronics difficulty = 8 }
component = { id = 20072 name = TECH_CMP_LD_407_2_NAME type = technical_efficiency difficulty = 8 double_time = yes }
component = { id = 20073 name = TECH_CMP_LD_407_3_NAME type = training difficulty = 8 }
component = { id = 20074 name = TECH_CMP_LD_407_4_NAME type = decentralized_execution difficulty = 8 }
component = { id = 20075 name = TECH_CMP_LD_407_5_NAME type = training difficulty = 8 }
required = { 57000 } #Transistor Electronics
effects = {
command = { type = surprise which = us value = 5 }
}
}
I have the tech that should enable the event and is required for this technology:
Code:
application = {
id = 57000 #Tranistor Electronics
name = TECH_APP_INDUSTRY_70_NAME
desc = SHORT_TECH_APP_INDUSTRY_70_NAME
position = { x = 309 y = 152 }
year = 1941
component = { id = 57001 name = TECH_CMP_INDUSTRY_70_1_NAME type = mathematics difficulty = 10 double_time = yes }
component = { id = 57002 name = TECH_CMP_INDUSTRY_70_2_NAME type = chemistry difficulty = 10 }
component = { id = 57003 name = TECH_CMP_INDUSTRY_70_3_NAME type = electronics difficulty = 8 }
component = { id = 57004 name = TECH_CMP_INDUSTRY_70_4_NAME type = electronics difficulty = 8 }
component = { id = 57005 name = TECH_CMP_INDUSTRY_70_5_NAME type = chemistry difficulty = 8 }
required = { 5330 }
effects = {
command = { type = research_mod value = 5 }
command = { type = info_may_cause which = 20070 } }
}
}