Login

russian armor

AI Won't Build Some Base Buildings

14 Feb 2023, 22:05 PM
#1
avatar of FLS_FalcoN

Posts: 20

Hello again, having completed Ostheer for my mod, I went to check that the AI is playing it correctly once again. I've seen them build all of the buildings throughout playtests, however now seemingly they've given up. They build the first two buildings happily but when it comes to the two armour-production buildings they just seem to ignore them. For clarification this faction is balanced around the Command Point mechanic, and uses that as a currency for its battle phase tiering, which makes me think that the problem may lay there.

What's confusing is that I've seen them produce all of the buildings before which makes me wonder why not now. I haven't changed the costs, nor anything in the buildings besides adding an extra couple of upgrades which you'd think would make the buildings seem more appealing.

I have gone into army and provided the ai_production_info with the upgrades, upgraded squads, and unlocked buildings as well as setting the utility to 1000 in ai_econonmy for said upgrades.

I have checked, and they have more than enough resources to produce them at any point, however half of the time they refuse to upgrade past Battle Phase 1. Would love some help on this.
15 Feb 2023, 06:29 AM
#2
avatar of Sie_Sayoka
Modmaker Badge

Posts: 103 | Subs: 1

I've found that working with AI isn't always reliable and it's usually better to just brute force these things rather than spend hours testing in the hope that something might work.

Having an upgrade that detects if the player is an AI will enable you to have much more control over how it behaves. This way you can just have things on delay timers and spawn the buildings.
15 Feb 2023, 18:33 PM
#3
avatar of FLS_FalcoN

Posts: 20

Having an upgrade that detects if the player is an AI will enable you to have much more control over how it behaves. This way you can just have things on delay timers and spawn the buildings.


Yep, saw that thread after posting. I have AI specific upgrades in the two armour production buildings now, however it didn't seem to change anything. I'm not sure if it's that they simply don't find the upgrade to those buildings appealing enough or what, but it does mean that games vs this AI on any difficulty become rather easy the moment your own armour comes out which is frustrating. From a Human perspective this is an obvious upgrade yet the AI thinks otherwise clearly.

I am open to delay timers spawning in the buildings even if it's not the most elegant way to achieve the result I'm looking for. My only issue is certain maps may have geometry in the way of the predetermined building location offsets.
17 Feb 2023, 23:11 PM
#4
avatar of FLS_FalcoN

Posts: 20

For anyone in the future having similar problems, I have no solution, however to clarify I have solved it by re-arranging some player upgrades and possible build orders. It did compromise my faction a bit but it's nothing I'll lose sleep over.
18 Feb 2023, 21:02 PM
#5
avatar of Sie_Sayoka
Modmaker Badge

Posts: 103 | Subs: 1

The AI will choose whatever option within a building that has the highest priority (note this 'priority' is separate from utility and I don't know the specifics of how the AI calculates this). So, for example, when given the option to build a 0 cost upgrade or something like engineers it might choose engineers first. It is for this reason that those hidden AI upgrades should be put in a building that has no other functionality like weapon racks.
1 user is browsing this thread: 1 guest

SHOUT IT OUT!

No ProfanityNumber of ShoutsRefresh Shout Box
aerafield: @LimaOscarMike I would say nowadays is a decent time to try CoH3. If you loved CoH2 however, there is a solid chance you're gonna dislike CoH3
Yesterday, 17:04 PM
LimaOscarMike: My laptop can't even run COH3. Should I get them on my Series X or is it dead yet?
Last Saturday, 05:10 AM
Rosbone: One of my last major gripes about Coh3. Price is still too high I feel for growth. But progress is always good.
Last Saturday, 04:43 AM
Rosbone: I am not 100% sure but I think Relic actually fixed up the skirmish menus a little last patch. If so, thank you and keep it coming.
Last Saturday, 04:39 AM
Osinyagov: Suddenly, coh2 is slowly dying, but you can play it, playerbase still big enough
09 Apr 2025, 17:00 PM
Osinyagov: Wow, i remember you from zansi and vali videos, good old memories
09 Apr 2025, 16:58 PM
Beinhard: o7 miss this game and zansi
09 Apr 2025, 14:09 PM
Lady Xenarra: @Willy Pete The lack of April Fools this year is odd lol
02 Apr 2025, 01:34 AM
Willy Pete: @Rosbone not dead yet. when that happens the font will switch to Papyrus :*(
02 Apr 2025, 00:16 AM
dasheepeh: it was an honor guys :guyokay:
01 Apr 2025, 20:34 PM
aerafield: yeah I already prepared my "Can't believe there's comic mode for the 10 daily visitors even on this April 1st" :guyokay:
01 Apr 2025, 20:29 PM
Rosbone: @dasheepeh I guess that means this site is officially dead :guyokay:
01 Apr 2025, 20:19 PM
dasheepeh: no comic sans font for april 1st this year?
01 Apr 2025, 19:56 PM
Willy Pete: @Lady Xenarra this you? https://i.imgflip.com/3e4thi.jpg
01 Apr 2025, 02:53 AM
Lady Xenarra: Does anyone else think that USF needs buffs? It feels like they’re on life support sometimes
01 Apr 2025, 02:36 AM
Willy Pete: @Rosbone Ahh I missed that memo. I still think its a bad decision though. Adds frustration for players and isnt gonna make them that much money
27 Mar 2025, 15:46 PM
Rosbone: It is also good they left it free until after the free to play weekend. Points for that.
27 Mar 2025, 09:34 AM
Rosbone: But I agree, the cost to get a full decent Coh game pushing $115 US is not the best idea. Especially when it needs so much more work for casuals.
27 Mar 2025, 09:32 AM

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

316 users are online: 316 guests
0 post in the last 24h
6 posts in the last week
34 posts in the last month
Registered members: 53882
Welcome our newest member, godrejsrcityyy
Most online: 2043 users on 29 Oct 2023, 01:04 AM