So, I've been playing around with the planet AI, but for some reason it just does whatever it feels like.
In my attempts to figure out what I'm doing wrong, I have simplified things by just allowing the AI to construct two buildings, and by reducing them down to the most necessary building blocks. I also gave them the same limitations, etc. - hoping that I would be able to figure out what I'm doing wrong, but...
...now I have these two buildings left, and they're basically the same thing, just with different ai_weights:
The factory:
And the Foundry:
Both buildings work, produce no log errors and show up properly (without the jobs they'd normally have, so they're loaded).
Now, the Factory has a weight of 200, and the Foundry has a weight of only 20, which in my understanding means that the AI should build Factories, and yet, the AI always, and only, constructs... Foundries. Doesn't matter what values I enter, the AI only constructs Foundries.
...so I... must be missing something very obvious...?
In my attempts to figure out what I'm doing wrong, I have simplified things by just allowing the AI to construct two buildings, and by reducing them down to the most necessary building blocks. I also gave them the same limitations, etc. - hoping that I would be able to figure out what I'm doing wrong, but...
...now I have these two buildings left, and they're basically the same thing, just with different ai_weights:
The factory:
Code:
building_factory_1 = {
base_buildtime = 360
category = manufacturing
potential = {
NOT = { has_modifier = resort_colony }
NOT = { has_modifier = slave_colony }
}
allow = {
has_upgraded_capital = yes
}
resources = {
category = planet_buildings
cost = {
minerals = 400
}
upkeep = {
energy = 2
}
}
prerequisites = {
tech_basic_industry
}
ai_weight = {
weight = 200
}
}
And the Foundry:
Code:
building_foundry_1 = {
base_buildtime = 360
category = manufacturing
potential = {
NOT = { has_modifier = resort_colony }
NOT = { has_modifier = slave_colony }
}
allow = {
has_upgraded_capital = yes
}
resources = {
category = planet_buildings
cost = {
minerals = 400
}
upkeep = {
energy = 2
}
}
prerequisites = {
tech_basic_industry
}
ai_weight = {
weight = 20
}
}
Now, the Factory has a weight of 200, and the Foundry has a weight of only 20, which in my understanding means that the AI should build Factories, and yet, the AI always, and only, constructs... Foundries. Doesn't matter what values I enter, the AI only constructs Foundries.
...so I... must be missing something very obvious...?