AI-Uveso (v91) - AI mod for FAForever


Please don't install the Uveso-Fix mod!

First, its not from me.
Second, it is still using some gamepatches that are obsolate, and there are still errors left from the V87 version and the scrorescreen at the game end will not work.

Also i checked the mod and i would not call it fix because its not fixing anything.

The mod changes the initial engineer for the Adaptive Sub AI (this breaks the ability of the mod to handle low unit cap)
The mod also changes a builder that is only for Total Mayhem and removed the special platoon for it (don't know why)
Then it changed a builder for Paragon to build a paragon from the 10th minute not at 35 minutes or later (starting a paragon at minute 10 without changing anything else is bad for the AIs eco)
And it removes a check for enemyunits that was delaying the build of experimentals (also bad idea because this is messing up the ecosystem too)
Then the mod has game patch hooks copied tfrom Uveso AI v87 that need to be removed.
And last but not least the user AKarmy01 added his name to the mod-author string

So please don't install it.


Thanks again for providing this mod!

One thing I've noticed since switching over from Sorian-AIx to Uveso-AIx is how easy it is to prevent Uveso-AIx from nuking me. If I have just one SMD or Village shield (from the Nuclear Repulsor Shields mod) I am pretty much guaranteed to not get nuked there. Even if the enemy clearly has enough nuke launchers to overpower me. I've actually found Sorian to be more challenging in turtling games because of the nuke threat.

I tend to play vs AIx with a 1.7x multiplier or so. The only way I'd get nuked vs Uveso-AI is if enemy nukes were inbound before I had time to get defenses up at all. With the new 35 minute timer before nukes start flying, perhaps the AI could be a bit more willing to test my nuke defenses in the late game?


Hello Cyrris,

yes my AI tends to load a missile launcher with 5 missiles before it will shoot one.
But it has also functions to overwhelm nuke defenses.

Maybe there's a bug inside the target search engine or the Ai has just not enough eco for the nuke launchers.
And the AI also fools the player with building nuke launchers but they are paused and not ready to shoot.

In case you are using the adaptive sub AI, use the Overwhelm sub AI.
It has the same functions than the adaptive Sub Ai but it will increase the
Build and eco multiplyer after 35 and 60 minutes.
This will bost the AIs eco for more nukes.

Also install the Quantum Resource Generators mod.
This mod provides paragon like buildings for all factions, so the AI can build even more eco. You can find the mod here:

You can also debug the nuke function if you like to see whats going on.

Locate the file platoon lua inside my mod:


Then search for the NukePlatoonAI function (~line 1669) and change the line

local NUKEDEBUG = false


local NUKEDEBUG = true

Then open the moho debug window with [F9] and watch the debuglines.
All lines starting with *** AI-Uveso: * NukePlatoonAI:** are related to the nuke function.

Or you can just read the remarks inside the nuke function to understand how the nuke function is deciding to shoot:


Hi, I have a question/comment. How hard would it be to allow the AI to start with a naval factory if its spawn is under water?

I've been playing Uveso AI's on maps like Saskiya with underwater resources and start locations. The AI doesn't have any trouble building on aquatic mass or hydrocarbons, but it has problems if its start location is under water. What it usually does at the start is something like this:

  1. Walk over to the closest land.
  2. Reclaim a few trees (pointlessly -- it hasn't built anything yet so the reclaimed resources are wasted)
  3. Turn around and go back to the start location.
  4. Repeat 2-5 times.
  5. Finally build a land factory and start actually playing, maybe 5 minutes in.
  6. Some time in the next couple of minutes it'll usually go back and make a naval factory.

Uveso may not respond for a while but I can say that his AI has a condition on the naval factory that it requires a land factory before it will build and some other economic requirements. So while it can be done it'd require work on his behalf.


The AI seems to break down very easily if its raided even a little bit, especially by air. If its under attack by a single t1 cybran gunship, it will continue to tech up and spam t1 engineers and move them to their deaths rather than building mobile AA or a single aa turret. This means the AI has a tendency to completely break down if under any early game pressure. This was against 2 adaptive AIs on a 10km map.

My other issue is that it seems if they AI has some kind of advantage it will refuse to try and win the game. It seems to much emphasis is on it trying to eco and tech at all cost. I know the Rush AI will build units at the enemy constantly but it still has issues in that it won't build sufficient air and responds terribly to an air raid and will still rush to tech up even if it makes no sense, and once teched up, will continue to spam T1 that only serves as a streaming donation of mass.

The AI needs to be able to respond to player threats but I know it may be impossible given engine limitations, but it could still do better if it simply incorporated Point defense into its builds to stop early raiding.


Hello Talonus_Reford,

thanks for your report!

There are platoonbuilder for mobile AA in case enemy units are near the base (range 50)
I increased the range, so AA should be build earlier

I am also adding some attack and sniper platoons to the AI.
This will take a bit, because i need to programm some functions to see when it makes sense to attack or snipe.

But its normal that my AI is not strong in the begining.
It's a Turtle AI and meant to Tech up fast.

Have also in mind, the AI is balanced for unit mods.

Mods i always use with my AI:

Nuclear Repulsor Shields (can stop nuklear missiles)
Quantum Resource Generators (Paragon like structure for all factions)
Total Mayhem

You can find the latest mod version on the vault or here:

If you want to be more involved in AI development/updates, join us on Discord:

AI Development Discord Server (AI-Swarm / AI-Uveso / RNGAI / DilliAI)


Oh yeah I should have noted that I use Blackops ACUs and Unleashed. I think the turtle AI should definitely incorporate static PD Into its bases as right now it seems like you can walk right into it.

Also, if its possible they need to push more emphasis on air control, something as simple as their third factory always being air, and constantly pumping interceptors, and eventually ASFs would make a huge difference.

Right now if I rush t2 gunships there's nearly nothing the AI can do and even for the late game using PD, such as the T3 PD added by black Ops, and lower tech PD earlier, in their base would dramatically increase its survivability.

Also if its possible the AI needs to stop throwing engineers into fire bases.

Finally, I just wanted to say I am enjoying this AI and with a few fixes to its AA defense and the ability to snipe and it could be amazing. I tried RNGAI and its ability to respond to attacks is great but it lacks the mod support that this AI has. Honestly a combination of many of the things that AI does and this one would be perfection.


Update 20.Jan.2021(v89)

  • New: Added a compleatly new AI Ecomanager that can now also pause/disable mobile units. Including stealth, cloak and jammer.
  • New: New attack function "AttackHug". Units will move as close as possible to the target and execute suicide.
  • New: Sub AI "Overwhelm" will now increase the build and eco factor by 0.05 every minute. (starts after 20 min)
  • New: Sub AI "Overwhelm" is now using the more developed "Adaptive" attack plan.
  • New: Sub AI "Overwhelm" restriction for nuke launcher builder removed.
  • Fix: Changing the path calculation for c-engine to early was causing desyncs in replays.
  • Fix: Nuke function stopped working while targeting moving experiemtals.
  • Fix: Targeting function no longer accept targets under water for units above water and vice versa.
  • Fix: Tactical Missile defense does no longer try to attack underwater targets
  • Fix: Function GenerateSafePath will no longer return a empty path in case it's very close to start and end point.
  • Fix: Pathing for air units now cut the first and last 3 waypoints to get a better attack angle.
  • Fix: Added Buildcondition for navalexpansions to prevent unwanted naval factories in range of the main base.
  • Fix: Attack function is no longer microing units without a rear weapons (units were driven in a circle)
  • Fix: First Tech2 factory will now be build a bit later.
  • Fix: Removed debug names from attacking platoon units.
  • Fix: Units no longer get stucked after changing target priorities.
  • Opt: AI will now also check for a land path from expansions.
  • Opt: Platoon microing improved (smarter).
  • Opt: Paragon will be build earlier and with more assistees.
  • Opt: SACU teleport platoons now move to the target for better dead explosion damage usage.
  • Opt: GreaterThanEconIncomeFunction only returns true now if eco trend is positive; Even if a paragon is found.
  • Opt: Air experimentals now tend to move inside the base (stopped at defense before).
  • Opt: Changed WeaponTargetCategories fore some LAND experimentals platoons (now also attcking Optics structures).
  • Opt: Added scouts to some bomber and gunship platoons.
  • Opt: Changes some categories to support SCTA mod.
  • For AI devs: Buildcondition changed (LocationType added): { MIBC, 'CanPathToCurrentEnemy', { false, 'LocationType' } },
  • For AI devs: Function changed (new args): AIFindNearestCategoryTargetInCloseRange(platoon, aiBrain, squad, [...])

Uveso can you @ me when you have added scta compatibility for me?


Update 27.Jan.2021(v90)

  • Fix: Function CheckValidMarkerPosition() optimized to prevent autogenerated markers on land/water cliffs
  • Fix: Platoon microing function was sometimes using a wrong platoon center position.
  • Fix: Platoon microing function could not handle modded units with only missiles or long range weapons.

Update 08.Feb.2021(v91)

  • New: Added strategy for NukeSub defense.
  • Fix: LUA Error at gameend when an AI was defeated (destroying now buildermanager before brainconditionmonitor)
  • Fix: Renamed Function hook for Platoon-, Factory- and Engineerbuilder to prevent a crash with other AIs
  • Fix: Removed forced debug key binding ['Ctrl-q']
  • Fix: Initial basebuild failed in case the cheatfactor was higher than 1.7 (energy/mass builder)
  • Fix: Removed the destination as waypoint from the pathfinding function. (engineers no longer block the build area)
  • Fix: Added NutCracker AI to debug functions menu.
  • Opt: Platoons with experimentals are now switching a bit earlier to the next waypoint to prevent bumping units.
  • Opt: Cybran shields will now upgrade way earlier than before.
  • Opt: Added ACU sniper platoon (13-15 fighterbomber -> directattack ACU)
  • Opt: AI Ecomanager is now optimized for better game speed.
  • Opt: AI can now also recover its base if the ACU is not available (fighting)
  • Opt: Adaptive AI now also working with omniview off (on is still better)

Was really enjoying a match with v91 just then, unfortunately it crashed 53 mins in.

I've uploaded replay and stuff here:

If there's another log or something that would help let me know.

Was playing on White Fire, AIx Adaptive (1.2x). Only other mod was Supreme Score Board.


Hello plasia,

i viewed the replay and continued the simulation without any errors.
Can't say what happened.


Oh, thanks for looking, it just sim locked for us, we could still chat with eachother. My friend said something similar happened in a game he played by himself, so as it wasn't a one-off I said I'd report it.


Yes, please always post any error you have seen.
(Here in the forum or in our Discord channels)

I run the game on every day in a endless loop to test unusual or rare errors.
Its the way how i code and test my AI.

You can also do some stability test with my AI in case you have changed something or to be sure that all is working.
Create a skirmish game with 2 AIs and set yourself as observer (in FAF you can be an observer in skirmish games)
Then go to options and set Debug Endless game.
Now after starting the game it will run until the end and start the game session automatically again.
It will aso post the restart into the gamelog, so you can view how often the game was restarted and how long a single game lasted.

Log in to reply