I have not changed anything in Yuri's side for weeks, as I was working on reinforcement triggers for one map.
Now Yuri doesn't stop building tank bunkers and gattling towers and if it builds a factory, it won't build any tanks, and it will spam these base defenses all over the place.
I also made a custom anti tank cannon for Yuri, and this also gets spammed.
This only started when I was working on only one map with triggers.
Now it doesn't make a difference what map I play it will spam it with these buildings and even though I set the tecklevel=-1 it builds the bunker and the rest.
Then I removed it from the building list ;342=NATBNK and it still does it.
I then removed the bunker as a base defense from the ThirdBaseDefenses list.
It doesn't build the bunker, but it keeps building my custom anti tank cannon and the gattling tower, but that's it, no factory, tech center, radar... nothing else except for the barracks.
Post your code for the anti tank cannon, some possible things I can think of off the top of my head.
You added AIBuildThis=Yes. This tag is only used by the main buildings, using it on a defenses structure can cause errors.
AIBasePlanningSide= is incorrectly set. The Yuri AI picks defenses from ThirdBaseDefenses=, if AIBasePlanningSide is set to Allied/Soviet though the game will get confused.
ThirdBaseDefenseCounts= is wrong/missing. The AI doesn't know how many defenses it should build.
You didn't add AntiInfantryValue=, AntiArmorValue= & AntiAirValue= to the anti tank cannon. _________________
When this happened to me, it was because the AI didn't have access to a wall, but had structures with the tag "protecteithwalls". Try commenting that line out on your yuri buildings and see if that helps. _________________ Please, read the signature rules of the forum. QUICK_EDIT
It's none of what you guys suggested, except for AIBuildThis=Yes which I did have but removed, and it still spammed.
But fortunately, I remembered that I have multiple copies of the rules, sound, audio bag, art & ai INI files on my cloud storage, and they are dated so what I did was download an older copy of the rules that was not corrupted [about 3 weeks old] and made a few adjustments and everything is back to normal.
I wonder if it was my adding ten cloned factories and barracks to the American, but then again it should have affected that side and not Yuri. QUICK_EDIT
If you have an earlier error free version of the rules you could do a direct comparison of the code & find the problem so you dont repeat it. _________________
Does it always start building the defenses after the barracks and power, or does any of the build ordering ever change? Because I suspect the problem lies in the code for the NEXT building after barracks.
What I mean is you may have screwed up the code or added a typo that is making the AI unable to build the next thing, and so falls back to building defenses only.
I would of course look at the clone factories you added, maybe you have some copy&paste mistakes in there.
Does it always start building the defenses after the barracks and power ?
Yes, GE, this was exactly what it did.
It would build the vanilla power plant, then the advanced one, the barracks, the slave miner and then defenses and troops.
Not even the radar or walls.
But I will do what you guys suggested, even though everything is working now. 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