M28AI Devlog (v162)
-
v107 Update
23 changes and fixes, including:
- New option to effectively set the level of M28's micro by specifying how frequently it considers orders for units (default is every second, it can be increased to up to once every 10 seconds). This will affect things like its kiting behaviour, but won't impact all of its microing capabilities.
- Changed use of SACUs so normal SACUs are built and upgraded to RAS SACUs
- Fixed bugs that could cause M28 to break with unit restrictions (introduced in v103)
- 10 LOUD specific changes and fixes (including initial build order tweaks and fixing experimental construction)
Acknowledgements
- WingFlier – running some test games on LOUD and noting M28's failure to build experimentals
-
v108 Update
23 more changes/fixes (11 of which are FAF related), mostly with a focus on later game scenarios, including:- Fixed a bug with M28’s late-game logic that could lead to only 1 t3 arti/game-ender unit being built
- Made it less likely for large amounts of battleships and/or aircraft carriers to be built
- Increased the number of fatboys to be built once a mavor has been constructed
- Fixed various LOUD related issues, such as restorers and czars not having an AirAA threat, T2 PGens not creating wrecks (so M28 no longer reclaims them), no experimentals being built if it’s early on and M28 wants a nuke launcher; battleships not being able to ground-fire subs; and paragon not providing near-infinite resources.
-
v109 Update
14 small changes, including:- Fixed a bug where underwater mexes weren't taken into account when deciding whether to go navy
- T1 bombers that force an attacking ACU to retreat should consider retargeting if the ACU still has high health
- M28Easy should prefer tanks over skirmishers (since it doesnt kite with skirmishers)
- T2 upgrades should be less likely on 5km 1v1 maps
- Improved build order on maps like Canis River (so M28 goes 3 mex instead of 4, as 4 causes it to stall power before the hydro completes)
- Fixed a bug where M28 would get the opposite result when checking if it had visual of a unit in some cases (which e.g. could lead to it suiciding units in an attempt to gain visual of a unit it could already see)
- Naval units should make use of their backup distance to retreat (so e.g. Cybran destroyers should be capable of kiting the enemy)
Acknowledgements
- Recon/OneCoolPuppy – Posting replay against M28Easy that helped me identify a few of the tweaks
-
v110 Update
16 changes and fixes including:- Improved response to enemy T3 air/early strat rush threat if M28 lacks T3 air (i.e. it will get more ground based AA as a last resort)
- M28 should try and rely on its own gun ACU instead of rushing T2 to stop an appraoching enemy gun-ACU (if M28's ACU is close enough to help)
- Engineers from different M28 players on the same team should be gifted to get around the issue where they try and help a teammate's engineer and as a result prevent construction starting (due to blocking the build location)
- Ahwassa should consider if it's bomb is likely to hit a cliff when trying to fire at a unit, and (if so) adjust its targeting.
- Torpedo bombers should be much less likely to suicide into enemy AA just because they have large numbers, but should take into account how much damage they would do by suiciding.
Acknowledgements
- SolUmbrae – Replay crushing M28 with an early strat
-
v111 Update
This version adds steam compatibility to M28AI (along with 1 minor backend change relating to the application of AIx modifiers). Hopefully there should be no impact on how it plays in FAF (or LOUD), but if anything has broken please let me know!Connected with its steam compatibility, a listing has also been made on ModDB. However, the FAF vault and/or Github will still be the best locations for getting the latest release (since they will be updated more regularly), while this forum thread will similarly be kept updated with details of future releases.
-
v112 Update
26 Changes and fixes, including:- Co-op - Celene should now switch to using M28AI when changing her allegience in Dawn if M28 is set to apply to allies only; similarly, Fletcher should switch to using M28AI when becoming hostile if M28 is set to apply to enemies only
- LOUD - Increased ecoing, adjustments to gunship attack logic to reflect how gunships dont fire unless facing enemies, better support for modded ACU upgrades
- FAF and general - Significant improvement in speed for an 'Air slot' M28 to get T3 air (although still slower than a human player); improved AA production vs enemy early strat; Fixed some issues if unit restrictions disabled air factories
Acknowledgements
- Azraeel – a couple of LOUD replays
- Wingflier – noting M28 was building experimental transports
- Ecthelon – Coop replay where Celene didn’t use M28AI logic when switching sides on Dawn
- SolUmbrae - Posting replay of rushing strat vs M28
-
Switched to new map, adaptive turtle beach. I notice M28 progressing and its great fun, everytime a new trick hits me
Just a few things, sadly no replay because everytime this happens its over minute 50:
- SMD - M28 still gets surprised by nuke, perfect scouting is never possible. Me personaly i play it safe and go straight SMD after i build T3 power. Better safe than sorry
- Ally had tons of T3 gunships die to my nuke again
- When experimental is nearing the enemy base, their coms dont seem to adjust their actions, sometimes even moving towards the experimental. Wouldnt it make more sense that when they notice an experimental and have no adequate defences, they would run in the opposite direction of the experimental ? That way at least com would survive. Even if they have tons of gunships its a hit miss, since they first kill AA and that often draws them far away from experimental
Great work !
-
@goblinsly2 Getting to past 50 minutes with M28 not having built an smd is unusual, it's meant to build one pre-emptively. If you send the replay of that I can try and have a look at some point as sounds like either a bug or it just never becomes a high enough priority for it.
I'll see if I can recreate allied gunships dying to a nuke in sandbox as I thought I'd already got logic to avoid that (but it's possible it was only for M28 allied nukes).
-
@goblinsly2 On the gunship issue, recreating in sandbox I realised there was a bug with how it was tracking nuke targets for gunships to avoid - i.e. it'd avoid friendly nukes when choosing its own nuke targets (including non-M28 teammtes), but was only avoiding M28 teammate nukes for its gunships. Will be fixed in the next release.
-
v113 Update
22 changes, including:- Dedicated land scouts to support sniperbots/similar units that lack intel
- Refinement to land rally points to make it less likely units retreating will advance towards the enemy
New flag to prioritise production over ecoing where the enemy has a significant ground attack force approaching M28's base[Edit: To be added in v114]- Enemy shields should be taken into account when deciding if a location has too much anti-air for gunships to attack it
- More TMD should be built for areas with some TMD that are under missile fire
- Coop - Added a workaround for an issue where M28 building things (like mexes) wouldn't count towards an objective, which could prevent progression on the supcom 1st missions, and fixed a bug with M28's ACU not building a naval factory on Aeon M1
- LOUD - Significantly reduced error messages such as those relating to being unable to build units where mod are enabled that remove T1+T2 energy and mass storage options; fixed a bug preventing nuke launchers from firing, while making it much less likely nuke launchers are built in the first place; reduced the land:air factory target ratio significantly in some cases.
Acknowledgements
- GrandpaSawyer - highlighting the function responsible for AI teammates not having their units counted towards a campaign objective
- Goblinsly - mentioning M28's gunships still die to friendly nukes
- Azraeel - 3 LOUD replays (which prompted the rally point and 'production focus mode' changes amongst others)
(Other notes - I forgot to look into the LOUD tele-SACU bug before release so will add that to the list for v114)
-
v114 Update
22 changes, including:- Hopefully fixed the intended 113 feature for prioritising production
- Various changes to reduce M28's likelihood to stall energy early on (not building factories or air staging when stalling E, prioritising part-complete additional hydros more)
- Fixed a bug where Thaams would act like LABs and try and micro-dodge enemy tank fire (leading them to not firing any shots)
- Fixed a bug where part-complete friendly units were treated as full health fully constructed units when determining anti-air threat (which e.g. could mean you could bomb M28's naval factory and it wouldn't respond if that factory was building a cruiser)
- ACU should be less likely to return to it's base to attack a land experimental that is destroying the base
- LOUD specific - support for upgradable T3 pgens added; Fixed bug that meant teleport didn't work; Greater focus on ecoing in mass stalls
Acknowledgements
- SolUmbrae – posting replay beating M28 on TwinRivers which provided the source of the majority of changes.
- DeHeerser – mentioning teleport not working in a LOUD game
- Tematus – noting M28 wasn’t making use of upgradable T3 pgens in LOUD.
-
v115 Update
Smaller update, with 14 mostly minor changes:- Reduced the build power assigned to naval factories to both take into account how many naval factories the team has in total, and to reduce the engineers assisting if M28 is stalling
- One of the factories on any plateau or island with significant mexes should never be paused when M28 is stalling mass
- If M28 has paused a mex upgrade (due to stalling mass) and completes a mex upgrade, it should immediately unpause one of the paused mexes (albeit it may then pause it again if it is still significantly stalling mass)
- LOUD - M28 should no longer build strats (since they're semi-broken in LOUD); General reduction in the number of engineers to be built (roughly 20% where M28 doesnt have much mass); Fixed a bug where Seraphim destroyers wouldn't be given any orders.
-
v116 Update
30 changes, the majority of which were based on testing M28 Seraphim vs LOUD on a '4-island' type map.- SACUs should get build power upgrades when overflowing mass, and pro-actively build experimentals to use up the mass
- Fixed an issue that could arise on larger maps if the area surrounding a mex appeared impathable (resulting in the mex being ignored by M28 for the game)
- M28 should now (similarly to a player) infer that if a previously scouted mex or factory shows as dead, it means the factory has been upgraded (not that the factory is dead)
- Various adjustments to Yolona targeting to help close out the game where there aren't any high value targets remaining
- 15 LOUD specific adjustments (including not building ahwassa, experimental land transports or experimental counterintelligence units, being less likely to pause land factories, not treating experimental mobile aeon arti as a scathis, being more likely to upgrade T3 mexes and pgens to T4, building more t3 mass fabs, upgrading t3 mass fabs to t4, adding a workaround for an issue relating to Seraphim buildings that would cause shields to be built on repeat, and a few other changes).
Acknowledgements
- Azraeel - Testing on LOUD and highlighting a few bugs/issues, including noting T3 mass fabs can upgrade; that barrage artillery were being treated similarly to strategic artillery; and a bug with the Aeon mobile experimental arti
- umbrasolis - Posting another 1v1 replay vs M28
-
v117 Update
29 changes mostly based on M28 vs LOUD matches:- Further adjustments to logic for upgrading mexes, so it's more likely on a large map, but if a T2 mex upgrade finishes in a zone, a T3 upgrade shouldn't be started if there are T1 mexes in adjacent zones that could be upgraded instead
- Capped mobile shields based on gross energy income
- T1 land factories should no longer prioritise the slowest unit (with other changes made to try and still get the effect of not building LABs after the first couple of units) - more relevant for unit mods that add more T1 units
- Engineers should be more likely to build land factories if dropping on an island that as a whole has lots of mexes (even if the zone itself doesnt)
- Units in short range support should be more likely to attack - this is most relevant if e.g. a GC is 'escorting' a T3 mobile arti or MML, and the GC thinks it can win the battle by just attacking itself
- 145 LOUD related changes, including no longer building very weak units like hoplites and T3 sniperbots, and prioritising units that are much stronger in LOUD; RAS upgrade is less likely, T3 arti are more likely, fixed issue where transport drop events weren't triggering (meaning land facs wouldnt get built by the engi drop), fixed bug where MML and arti shots wouldn't be attempted to be dodged
Acknowledgements
- Tematus – 1v1 replay vs LOUD, and noting LOUD has halved the cost of T3 arti vs FAF
- Azraeel – various suggestions and highlighting issues in LOUD, such as units that are particularly good in LOUD and ones which don’t work well with M28
- Sprouto - fixing a lua error message that would appear in the log in games where M28 was active
-
v118 Hotfix
Hotfix due to a bug introduced in v117 that caused the game to crash with total mayhem depending on what other mods were enabled. Other changes:- Fixed a bug present for a long time with T3 arti target selection (that meant in most cases they weren't firing at the target they considered the best)
- Added new shot synchronisation logic for T3 arti so they are more likely to fire at the same target as other T3 arti
Acknowledgements
- TiborDeimos - Sending a log where M28 crashed with totalmayhem enabled
-
Thank's for the Hotfix. Wasn't sure if it went out of memory or was crashing because of some mods.
Still love this AI
-
@maudlin27 hi, I was wondering if the changes to the loud part will affect FAF's mod? Some mod units are weak, but I still want to see them in the game.
Also, when playing faf's high cheat multiplier, I found that the M28 hardly builds land T3. Basically, only a large number of ASF and experimental are built. Although I like to see a variety of experimental products, can M28 also make full use of the land factory in the case of high resource overflow? For example, if the resource overflow of M28 is high, can all these idle LAND factories build a large number of diversified T3 land, and directly set the production assembly point at the enemy base? -
@zhanghm18 Many of the LOUD changes relating to unit mods will affect FAF games using the same unit mods, but I’d expect the variety of land units built overall to increase slightly for the t1-t3 land stage from the changes made (not decrease), as the way it was setup before was M28 would prioritise base FAF t1-3 units (now it prioritises those units and certain mod units)
Re not building more land facs, I’d expect more to be built in 15km and smaller maps if M28 has lots if mass stored and isn’t close to the unit cap, subject to how much air the opponent has
-
@maudlin27 I guess the problem is that AI's population has always been close to cap in the case of high resource overflow. And I find a lot of times AI is obsessed with building a lot of ASFs and gunships (high cheat multipliers). Maybe that would make it easier for him to win? But in the case of extremely high resource overflows, I still expect him to build a variety of units.
And I tried the latest version, and I felt that the AI's unit diversity was not even as good as the previous version. AI is now obsessed with building specific 1-2 mod T3 units instead of building diverse T3 units by tag like before.
It would be nice if you could set up a simpler, more random unit selection logic for high cheat multipliers (e.g., cheats over 4X) -
@zhanghm18 The reason for preferring t3 air over t3 land when reaching the unit cap is the time from production to combat is much lower for air, so it ends up being a better use if the unit cap (eg you could probably build a gunship, attack the enemy base, lose it, and repeat 2 more times in the time it would take a brick to move to the enemy base and die)