Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tweak RA and D2K's HackyAI #15607
From my recent experience with fiddling with the HackyAI on RA I'd recommend a few tweaks with its setup:
MinimumExcessPower: 60 on all bots.
The AI sometimes executes some "exotic" builds that sometimes puts it on low power. Sometimes whenever during a game. Probably because it doesn't calculate the combined power cost of its two structure queues against the minimum excess power. I'm guessing the custom yaml per bot were set to save time, e.g. not having the rush ai waste time on additional power but the price of a PP is negligible ($300).
As a small, positive side-effect the extra powerplant in the build queue gives the bot a slight better chance at fair refinery placements early on.
The infantry production change scales down counterproductive grens and expensive rockets vs riflemen. With a higher share of riflemen the attacks comes in a bit earlier due to the squad size limit, at least until other queues kicks in.
The vehicle production change boosts mid- late-tech units usually drowned out by excessive low tech vehicles that just suicides into the player once the player has set up his defenses. The AI has a low priority on the service depot so this transition happens quite late but when it happens the player shouldn't have to deal with fleets of rangers, flak trucks and light tanks that acts more like a nuisance rather than a threat. For some bots, refinery/harvesters got a nudge to scale the attacks more reliably in time.
Overall these changes makes the bots slightly more potent and stable.
*Almost forgot, I added the missile silo to the rush ai since in my view it doesn't really define the rush ai's behavior whether or not it goes for the nuke, and 'superpowers' is already an option in the lobby.
@MustaphaTR Added it with its own commit. The omnius bot already had 'nukepower' in supportpowerdecisions so that should do it, but testing it I encountered another issue, the d2k bots don't exclude the harvesters from the quads so they just goof around and follow attacks :/
Okay. So this PR now includes a harvester fix for the d2k bots which by itself needs to be included with the next playtest/release.
Testing the ominous nuke is virtually impossible with its hackyAI setup since it takes eons for it to reach Palace tech, but artificially altering its queue orders confirms it now has access.