Description
AI Orbital Ring & habitat related bugs [3.4.2] [7836]
Game Version
3.4.2 Cepheus
What version do you use?
Steam
What expansions do you have installed?
Do you have mods enabled?
No
Please explain your issue is in as much detail as possible.
This is from orbital_ring_modules.txt
ai_weight = { # TODO DESIGN improve weights
weight = 20
modifier = {
factor = 3
planet = {
num_free_districts = { type = any value < 1 }
}
As made clear by the comment there, AI weights are seemingly not done yet for orbital ring modules, left as a TODO, was asked to report this one by a developer.
The AI cannot possibly restore ruined rings as there are no AI weights in the files, leaving them ruined forever.
Also on another bug , the AI never builds more than a single module on orbital rings, and seems to have an outsized weight for the shipyard module (which is understandable). Not going to comment on ring buildings because well... i dont think i ever seen a single one from the AI due to the following bug.
They do not ever upgrade the ring despite having the resources available for it, looking at the game files i found out what is exactly the problem there for it . The influence/alloy budget files are missing budgets for orbital rings, so the AI does not allocate resources for those, leading them to be never upgraded as that costs influence, which the AI does not budget.
I am not sure though whats up with the AI not building a second module on orbital rings, as that one is odd, they clearly can build modules as that is just part of the starbase code, which orbital rings do reuse, yet dont build a second module, from testing done by another user, it seems that this is also part of the problem, as AI does not upgrade starbases/rings that do not have all their slots used.
Edit: so more testing revealed that the code in 00_starbase_types.txt is wrong for orbital rings, it is trying to use regular starbase modules, which arent available for rings as they have their specialized modules.
has_starbase_module = orbital_ring_gun_battery
has_starbase_module = orbital_ring_missile_battery
has_starbase_module = orbital_ring_hangar_bay
These are what the orbital ring modules are named
modules = {
hangar_bay = {
base = 1.00
modifier = {
factor = 3
owner = {
is_preferred_weapons = weapon_type_strike_craft
}
}
}
missile_battery = {
base = 1.00
modifier = {
factor = 3
owner = {
is_preferred_weapons = weapon_type_explosive
}
}
}
gun_battery = {
base = 1.00
modifier = {
factor = 3
owner = {
OR = {
is_preferred_weapons = weapon_type_energy
is_preferred_weapons = weapon_type_kinetic
That is what the AI is trying to build, which is not possible as those are starbase modules, and arent available for orbital rings.
Steps to reproduce the issue.
Go observe an AI, chances are high that they will never build more than a single module on their rings, nor will they ever upgrade them as they never reserve influence for it as per their budget files.
Upload Attachment
File(s) attached
AI Orbital Ring & habitat related bugs [3.4.2] [7836]
Game Version
3.4.2 Cepheus
What version do you use?
Steam
What expansions do you have installed?
Do you have mods enabled?
No
Please explain your issue is in as much detail as possible.
This is from orbital_ring_modules.txt
ai_weight = { # TODO DESIGN improve weights
weight = 20
modifier = {
factor = 3
planet = {
num_free_districts = { type = any value < 1 }
}
As made clear by the comment there, AI weights are seemingly not done yet for orbital ring modules, left as a TODO, was asked to report this one by a developer.
The AI cannot possibly restore ruined rings as there are no AI weights in the files, leaving them ruined forever.
Also on another bug , the AI never builds more than a single module on orbital rings, and seems to have an outsized weight for the shipyard module (which is understandable). Not going to comment on ring buildings because well... i dont think i ever seen a single one from the AI due to the following bug.
They do not ever upgrade the ring despite having the resources available for it, looking at the game files i found out what is exactly the problem there for it . The influence/alloy budget files are missing budgets for orbital rings, so the AI does not allocate resources for those, leading them to be never upgraded as that costs influence, which the AI does not budget.
I am not sure though whats up with the AI not building a second module on orbital rings, as that one is odd, they clearly can build modules as that is just part of the starbase code, which orbital rings do reuse, yet dont build a second module, from testing done by another user, it seems that this is also part of the problem, as AI does not upgrade starbases/rings that do not have all their slots used.
Edit: so more testing revealed that the code in 00_starbase_types.txt is wrong for orbital rings, it is trying to use regular starbase modules, which arent available for rings as they have their specialized modules.
has_starbase_module = orbital_ring_gun_battery
has_starbase_module = orbital_ring_missile_battery
has_starbase_module = orbital_ring_hangar_bay
These are what the orbital ring modules are named
modules = {
hangar_bay = {
base = 1.00
modifier = {
factor = 3
owner = {
is_preferred_weapons = weapon_type_strike_craft
}
}
}
missile_battery = {
base = 1.00
modifier = {
factor = 3
owner = {
is_preferred_weapons = weapon_type_explosive
}
}
}
gun_battery = {
base = 1.00
modifier = {
factor = 3
owner = {
OR = {
is_preferred_weapons = weapon_type_energy
is_preferred_weapons = weapon_type_kinetic
That is what the AI is trying to build, which is not possible as those are starbase modules, and arent available for orbital rings.
Steps to reproduce the issue.
Go observe an AI, chances are high that they will never build more than a single module on their rings, nor will they ever upgrade them as they never reserve influence for it as per their budget files.
Upload Attachment
File(s) attached
Attachments
Last edited:
- 2
- 1