Posted: Sat Aug 29, 2020 1:17 pm Post subject:
My AI is not Building a Building
Hello, my AI is not building a Building, which lefts its tech level to be stale even though i can build it, how can i fix this? (yes i checked too in the AI Controls and too the AI Build this) QUICK_EDIT
Provide more info/code and check if similar topic helps.
this is my rules, i cannot seem to explain through here, sorry
that building is the [GAARSE] being the radar dome, also disabled buildings are still being build
Building entry seems fine. MultiplayerAICM seems low maybe AI doesn't get enough credits to build.
INI is missing [AI] Build* entries for Yuri side, power/country's AI.PowerPlants, tech etc., so Yuri AI side should have problems. Can't say if swapping country indices will have affect on Allies AI building, but that surely affects mission maps etc.. QUICK_EDIT
I tested your building code on my game, with only two changes (armor changed to wood, where you used a custome 'dome' armor, and Image=NARADR so I can actually see it ingame). I didn't add it to any BuildXXX lists, as it's unnecessary due to AIBuildThis/Count/ExtraCount.
I tested your building code on my game, with only two changes (armor changed to wood, where you used a custome 'dome' armor, and Image=NARADR so I can actually see it ingame). I didn't add it to any BuildXXX lists, as it's unnecessary due to AIBuildThis/Count/ExtraCount.
Give it TechLevel=11 (or above your [MultiplayerDialogSettings]>TechLevel= value) to prevent the AI from building it.
TechLevel=-1 only prevents humans from building it.
And I'm not sure if AIBuildThis=no does what it says (it's the default value, but doesn't prevent PowerPlants from being built, for example.) QUICK_EDIT
AIBuildThis= is used to ensure that at least one instance of that building is always added to the AI's build plan, specifically if it's not already in a BuildXXX list. This is useful for one-off structures that don't fit into one of those categories, but are necessary buildings for the AI to build nonetheless.
That is to say, AIBuildThis=no does not mean the AI *cannot* build that structure, just that it won't do it on its own unless the building is in one of the BuildXXX lists.
FYI: The reason your AI wasn't building [GAARSE] when it was in BuildRadar= is because it was building [GAAIRC] from the BuildRadar list first. Generally speaking, the AI will only build one building from most of those categories (except for BuildPower of course), and once it has one of those, it won't check to see if there are more buildings in the list that it could build.
As a general rule of thumb, each side should have exactly one building in each of the BuildXXX= lists, again with the possible exception of BuildPower=.
By the way, minor point of order: NANRCT belongs in NodAdvancedPower=, not in BuildPower=. _________________ Formerly WoRmINaToR. I've created a new account to update to the name I've been using everywhere else for the last several years. QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum