Can you stop the AI building something?

Pretty much as the title says. I've modded in a Nerf Center to give myself a more customisable difficulty level. At the moment it gives -30 to production, research and economy and +25 to morale (to compensate for the entertainment network that would usually go on that tile) and costs just 1. After getting some way into my current game, I've now found out why some of the AIs have stalled badly...they've been building multiple Nerf Centers on their planets! Can I stop them? I set the AI value to 0, which hasn't worked.
5,819 views 10 replies
Reply #1 Top
If you make it, they will use it.
Reply #3 Top
Yep, that pretty much says it all.

Sorry for duplicate posting, but my browser had a server error and told me to retry.
Reply #4 Top
My suggestion: attach the building to a free tech that you get at the start, but it is near the end of the tech tree for the AI.
Reply #5 Top
Starports use the tag < PlacementLimit >1< /PlacementLimit >
Reply #6 Top
But he wants the AI not to build it at all. The tech thing sounds like the best option to me.
Reply #7 Top
If you make it, they will use it.


I realised the AI might have been looking at it wrongly as a cheap entertainment center, so I upped the cost and maintenance so it was more expensive to build and maintain than entertainment centers...but the AI still built it. That shows there's a problem with the AI decision making algorithms (not an issue for me, but it could affect any *proper* mods people come up with)

My suggestion: attach the building to a free tech that you get at the start, but it is near the end of the tech tree for the AI.



Good idea! I attached it to a cheap tech with 0 AI value, but the AI then went and researched that and built them anyway. I tried to make it hideously expensive so they wouldn't research it, but then the game ignored it in my race config file and I started without it (I guess it limits the points you can give your race at the start?) I was going to attach it to one of the later sensors and research it when I got there...I didn't realise you could give it to your race at the start however deep into the tech tree you go.
Reply #8 Top
So the solution in summary:

Make a cheap tech deep into the tech tree to attach the building to and then edit the raceconfig to give yourself that tech for free. Here's a tip...you can place techs AFTER "technology victory" without adverse affects on the game, which means the AI will definitely never research it. They could still steal it off you though.
Reply #9 Top
Does the AI take into account negative modifiers? I guess it might not, as there aren't any in the game normally.
Reply #10 Top
Does the AI take into account negative modifiers? I guess it might not, as there aren't any in the game normally.


I don't think so, they don't even show up in game. I've tried to create a "Enslaved Factory" for cheap production but negative morale, but in game in makes no mention of morale penalty at all. The effect still happens, its just not shown for the building.