Posted: Fri Oct 12, 2012 4:57 am Post subject:
An another uses of NPatch's AI power plant select system
Seem almost nobody knows about this (except MK) so I post it here.
Original thread:http://bbs.ra2diy.com/thread-2536-1-1.html
At first I tested on MO2.5 Beta(leak) and Reloaded0.99 it works.
here's example based on reload0.99 (disabled other AI only powerplants)
Code:
[GDI]
PowerPlant=GAPOWR,GDIPOWR
PowerPlants=GAPOWR,GDIPOWR,GDIPOWRUP,GDIPOWRUP2 (GDIPOWRUP2 is recommend)
[Nod]
PowerPlant=NAPOWR,NODPOWR
PowerPlants=NAPOWR,NODPOWR,NODAPWR,NANRCT
as you can see , AI won't pick wrong power plant to build . Allied will build GAPOWR , GDI will build GDIPOWR with two power upgrades ,NOD will build NODAPWR more often ,Soviets will build NANRCT if needs power . that means you needn't to care about the fake side/country powerplant problem.
If you want to let this logic to work on ThirdSide and FourthSide , simply register [ThirdSide] , [FourthSide] and put PowerPlant= and PowerPlants= if you want.
Note:Power in PowerPlants= (include Powerplant upgrades) must have AIBuildThis=yes,or AI won't build this very often.
BUG:Just like in TS,this logic ignore TechLevel= .Just like GDI's AI Build Power Upgrade in TL1.
--------------------------------------------------------------------------
You also can set something that uses power in that tag,AI will build it acts a powerplant,but if you want AI won't stuck on base building,set the real powerplant to the last just like this:
Code:
PowerPlants=NAHAND,NAWEAP,NAYARD,NAPOWR,NANRCT
---------------------------------------------------------------------------
Don't ask me for getting MO2.5 Beta and EATG5 Beta!
I guessed this behaviour. I say guessed, because to hell with NPatch, and that idea works well within Ares's AI.PowerPlants list too.
Seems like almost no NP mods uses it so I post it.
But Ares' AI still buggy on the power plant selection
just like reloaded 1.0's Nod still build some Power Plants even Adv Power can be built,and NP's power logic acts like in TS's AI(or different). QUICK_EDIT
Joined: 22 Nov 2010 Location: Iszkaszentgyorgy, Hungary
Posted: Sun Oct 14, 2012 12:02 pm Post subject:
Why buggy? It's random, sometimes even you bulid small plants when you have access to bigger s well (because you're in low power already and smaller ones gets completed earlier to push you out of low production mode).
What you think of is SovietAdvancedPower= tag or something, which is NOT the (AI.)PowerPlants= logic. 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