M28AI Devlog (v157)
-
@kagurazakanana said in M28AI Devlog (v146):
3v3 Durex v10 Hotfix
Do you have a copy of the map you used? I can't find it on the FAF map vault
Edit: Although doing a sandbox test of AIx overwhelm to check if it was adjusting the build rate I realised the implementation was only adjusting resource generating units, so the build rate adjustment should be fixed in the next version. If you still run into issues after this then post a replay (and the map if it's not on the vault) with an example unit and timestamp illustrating the issue and I can look into further.
-
v147 Update
8 changes, mostly relating to minor bugfixes, including:- Fixed a bug with AIx overwhelm not increasing the build rate of units
- M28Land should consider building non-land experimentals occasionally late-game to give it a small bit of variety
- Fixed a couple of bugs that could result in air factories not building units in rare cases
Acknowledgements
- Fearghal – replay which contained a number of niche errors
- Kagurazakanana – Highlighting that M28’s Aix overwhelm modifier wasn’t adjusting build rates
- c04spoon - LOUD replay where M28 overextended
-
v148 Update
13 changes, including:- Naval AA units should be more likely to retreat from enemy units
- Fixed a bug where naval units would think they were always outranged by the enemy
- Subs should prioritise shield boats and then other subs
- Low ranged skirmisher units should be more aggressive when lacking intel if the ACU is nearby
- 4 MOD specific changes, including support for mods that require a build rate for factory units, building PD if it can be built on water in LOUD, and having M28 make use of the Blackops experimental aerial fortress
Acknowledgements
- c04spoon - Naval replay prompting a number of this update's changes
- Vortex - Replay where M28 failed to support his ACU with land units
-
v149 Update
27 changes, including:- New performance mode option in game settings which uses simpler approaches for parts of M28 logic to make it run slightly faster, although also not quite a strong. As a rough guide, I'd expect this makes things run 10-20% faster overall, and if combined with M28Easy and the maximum delay between land unit orders, it ends up being roughly 50% faster.
- 6 mod specific changes, including better support for experimental factories and the XtremeWars experimental spaceship (which should no longer idle), and more aggressive use of Seraphim bombardment ships when navy is won
- Increased experimental unit variety if M28's unit prioritisation is disabled (meaning it will build a much wider range of units, but they are much more likely to not be appropriate in the circumstances)
- Gunships should be more aggressive when they have a large threat and sufficient AA to handle the enemy asfs
- Reduced the number of LABs built early on
- Limited the number of engineers to be built on small islands
Acknowledgements
- Vortex - LOUD replay highlgihting issues with the Seraphim bombardment ship and overbuilding engis on islands
- WesMaggs - describing a scenario where M28's gunships were too cautious
- Radde - A number of 1v1s on Xander Adaptive, whigh highlighted some early-game issues M28 had, as well as some other niche issues (such as land experimentals being overly cautious in some scenarios)
-
v150 Update
12 more changes, including:- Sub consolidation logic to try and group subs together when fighting more often
- Gunships should retreat to heal up sooner if they're having a habit of dying to ground defences
- Made adjustemnts to ACU aggression to only factor in friendly direct fire units
- Several adjustments for dodging missiles (to make it less likely units try to dodge)
- 2 MOD specific changes, including improving M28's assessment of whether it will win an air fight in LOUD when inties are involved.
Acknowledgements
- Radde – Several more replays (on v148)
- C04spoon – LOUD replay
- Vortex – LOUD replay
-
v151 Update
Smaller hotfix update with 7 changes:- Short ranged units should be less likely to attack enemies and should try and group closer together
- Units whose shots are blocked should be slightly more likely to move than before.
- Fixed a bug that would break all M28 ACUs for the rest of the game if M28 thought an enemy ACU could be killed. Also added in a redundancy so in future it should only temporarily break the logic if such a bug was to reoccur.
- Experimentals should be slightly more likely to suicide into an enemy experimental instead of retreating (although this will need further refinement).
Acknowledgements
- Radde - A number of replays
- Vortex - several LOUD replays
-
v152 and v153 updates
21 changes, including:- Fixing a bug where M28 wouldnt build mass storage if player 1 was an M28 teammate who died
- Fixed several issues relating to shared armies (message should only display to the person clicking the button; air staging should release M28 controlled units even if they haven't been toggled to have control; non-M28 controlled friendly units shouldnt be reclaimed for mass)
- Land experimentals that cant kite should be less likely to retreat from an enemy experimental
- Fixed a bug where M28 would incorrectly consider the enemy to have no naval threat
- Torpedo launchers should no longer be built in response to an enemy engineer
- Transports should be more likely to be built, and introduced 'engineer support' transport logic so if a plateau wants an SMD and has no t3 engineers one should be airlifted over
Acknowledgements
- Radde – Various replays (which were the basis for the majority of changes)
- Marlo – Highlighting issue on fort Clarke assault where some of the M28 ACUs would suicide into T1 PD
- Cleo – describing some issues with shared armies mode where M28 would reclaim friendly units.
-
v154 Update
- Fixed a bug that meant M28 logic relating to units damaging others wasn't triggering (e.g. relevant for determining if units aren't blocked from hitting enemies) and expanded to add a redundancy for gunships to make sure they retreat when damaged.
- Island drops should no longer try and drop on islands with enemy PD
- Fixed several occasional issues with M28's late-game arti template (building T3 pgens in the designated place for T3 arti; engineers owned by an M28 teammate blocking construction)
- When an experimental dies, most of hte time M28 should assign an engineer from a nearby base to reclaim the wreck (in additino to its normal reclaim logic)
- Fixed a rare bug that could mean a unit on attack-move being given a move order would stay attacking.
-
v155 Update
Another mini update:- Fixed a typo relating to a niche scenario where considering whether to get a novax to help with enemy naval threats
- Reworked ASF support logic so they should try and stay even closer to a friendly experimental air unit than before
- Fixed a bug with working out if a table is empty (that I presume has been around in both M28 and M27 for 3-4 years!)
- Asfs should be more likely to engage enemies attacking restorers and czars (by including the restorer/czar anti-air capabilities when deciding whether the fight can be won)
- Fixed an issue with M28's chat messages not working in LOUD (introduced in v152)
Acknowledgements
- Radde - several more replays
- C04spoon - Mentioning that M28's chat messages had stopped working in LOUD
-
Hey Maudlin! I also found out, that the chat messages do not work with the Steam Version as well now, also a small bug, when you select MULTIPLE repair drones (UEF) (For ex. at the Kennel), the UI in the left is broken (only a blank square is visible), if you select a SINGLE drone, then everything works fine.
-
@MrPhalanx Just to check, is the chat bug something that happens in the latest version v155 (as there was a bug with this in a previous version)
-
v156 Update
14 changes, including:- A few different build orders and early game approaches added to try and make M28 a bit more unpredictable (for now whether it rushes a bomber; gets no bomber at all; gets LABs or no LABs, although long term I'm hoping to add some further variation)
- Adjusted how short range units support longer ranged units where they're having their retreat cut off
- A team with a mix of different factions should prioritise ahwassas if they decide to build an air experimental
Acknowledgements
- Jorne - 1v1 vs M28 Easy
- Radde - Lots of teamgame replays vs M28
-
FA Mission 6 (Overlord) with Combined human-AI armies. https://pastebin.com/yAmjETHf
-
Okay It works fine if comment out these lines in M28Overseer.lua.
elseif not(bApplyM28AI) and oBrain.M28AI then --oBrain.M28AI = false --oBrain.M28Team = nil --M28Team.CreateNewTeam(oBrain) if bDebugMessages == true then LOG(sFunctionRef..': No longer applying M28AI to brain '..oBrain.Nickname..'; assigned it to the team '..(oBrain.M28Team or 'nil')) end end
(2112 - 2114 lines in version 157 from git)
log with enabled debug: https://pastebin.com/yKHa4hbH
log with enabled debug (after comment out): https://pastebin.com/nNqUA4MEI don't quite understand the logic structure itself, but it seems to be designed for an individual AI player, and breaks down with a combined AI-Human mode (player moves to the newly created team number 5 after Fletcher's betrayal).
-
I have a question. Is there any way to make your M28 AI teammate give you a unit ? I would like his engineer/sacu or any unit/building/exp that can make an engineer/sacu. tnx
-
@goblinsly2 Not currently, no
-
Subject: Issue Report and Feedback on Large Naval Maps with Concentrated Resources
Dear Mod Author,
I am writing to report some issues and provide feedback based on my experience playing on large naval maps (greater than 20km) with concentrated resources.
On these maps, I've found that bomber snipes and precise SCU teleport attacks are highly effective strategies. I believe exploiting the AI's tendency to multitask allows for consistent SCU teleport raids or SCU + TML teleport attacks (targeting structures like SMDs or ACUs). The ability to quickly retreat and re-engage makes this a low-cost and effective way to target vulnerable points in the base. Teleporting directly into the base center, bypassing PD and heavy defenses, is often more effective than using satellites.
Furthermore, in the late game, with a larger number of engineers, it's possible to conduct ASF sweeps of the player's base (even if they are lost, they are quickly replaced) followed by bomber snipes, specifically targeting the player's ACU and SMDs.
Here is more specific feedback based on a 40x20 naval map with concentrated resources:
-
M28aix's ASF manufacturing is strong, but its air superiority is weak. Its ground strike/bomber units fail to closely coordinate with its ASF escorts, resulting in the ground strike/bomber units lacking adequate protection.
-
After achieving air superiority in an engagement, M28 failed to quickly capitalize by deploying its ground strike/bomber units to eliminate key enemy units.
-
M28's air units, such as ground strike aircraft, appear overly cautious. They often patrol in the middle of the map instead of actively engaging in targeted strikes.
-
A recurring issue persists: M28 built a significant number of T4 air units (15 in this instance), but M28aix repeatedly pulled them back and forth, hesitant to attack the player's main base. Even as M28 lost the game, its T4 air force remained unused.
-
Large-scale naval battles felt too sparse. M28 invested more heavily in naval units than the player, but its unit composition was problematic. For example, it built insufficient numbers of battleships (BBs) and submarines. It constructed a large number of destroyers (DDs) which were destroyed by the player's concentrated BB fire before they could reach effective range. Additionally, a large portion of M28's navy patrolled in the middle of the map. M28 did not seem to intend to concentrate its naval forces for a decisive attack on enemy fleets, important shipyards, or land targets. I suspect the AI "A-moved" a target, but the varying speeds of the units prevented them from focusing fire effectively. Consider having the AI initially group its fleet near the player's base before initiating a coordinated rush.
-
The AI remains vulnerable to ACU and bomber assassination tactics. Even with full map vision, the AI's ASF did not intercept bombers. This made assassinations very easy. We assassinated four of M28's largely undefended ACUs using two Mavors.
-
M28aix built Diamond defenses within several shield generators, but it lacked any defense against SCU teleports. We teleported an SCU next to one of M28's Diamonds. The Diamond was instantly destroyed by friendly fire from battleships and missile ships, while my SCU safely returned to base.
-
The previously mentioned AI overwhelm issue has not been resolved. In several matches, after the AI's structures were destroyed, newly constructed buildings still appeared to have the base production rate, and the bonus values applied to existing structures were also incorrect.
Thank you for your time and dedication to the mod. I hope this feedback is helpful in improving the AI's performance on these types of maps.
-
-
Thanks for the feedback. I'd need a replay to investigate most of the poitns further, but many of them are working as intended/due to limitations in how the AI is structured:
- ASFs should stay relatively close to gunships and/or experimental bombers, but on a large map with multiple such units I could see them getting out of position
- Gunships should factor in enemy ground AA threat not just if it has air superiority, so will depend on the circumstances
- They should strike locations without any nearby anti-air units if they have air control, otherwise they should only engage if confident of winning
- I expect they're running from enemy AA (significant ground or air) - assuming we're talking about 15 czars/soulrippers then I presume there were hundreds of asfs and/or 40+ SAMs levels of anti-air
- It should build a mix of units (frigates, destroyers, battleships) and engage with the shorter ranged units when it thinks it can win, so I'd need a replay if it is just suiciding destroyers into battleships (assuming we're not talking about it trying to defend an attack on its naval base)
- Replay would be needed as it should intercept strat snipe attempts; however it's only really capable of surviving against 1 mavor, not 2 (and I cant see that changing given FAF balance)
- I'd need a replay to understand this, as I would've expected an SACU teleport to be a 1-way trip
- Replay with time stamp and building where this happens would help with investigating
-
@art-wiedzmin Thanks, this will be fixed in the next release
-
v157 Update
11 Changes, including:- New fatboy TML snipe logic
- Naval MAA units should run from nearby enemy land units
- More generally made it more likely that nearby enemy units in an adjacent zone are taken into account when deciding if a unit needs to run (to hopefully reduce instances of naval units moving into enemy range and dying)
- Asfs should hopefully try and avoid enemy nukes
- Fixed a bug with FA Mission 6 if shared armies mode was used
Acknowledgements
- art-wiedzmin - highlighting shared armies bug in campaign
- Radde - Various replays
- Wes Maggs - Replay where M28 rallied its asfs on an island even as a nuke missile could be seen about to hit it