Company of Heroes: Eastern Front

Author Topic: How AI makes certain units  (Read 2532 times)

Offline Tehcumseh

  • Strelky
  • **
  • Posts: 82
  • I have extreme nationalism.
    • View Profile
How AI makes certain units
« on: April 02, 2012, 09:00:03 PM »
Hello i have a few questions on how when i'm playing against the AI they make units that i have know idea how to get. So the Panzer Elite AI everytime it spawns a Infantry Halftrack it spawns with Tankbusters in it like the second it spawns. So its not like they just put them in there. Also when playing against Soviet AI i destroy there HQ (an ally was still alive so game didn't end) they spawn in 2 Ingenery squads, 1 Red Banner Strelky and 1 Shock guard. I know this is not Red Tide i just wonder how they do it. If anyone could tell me it would be greatly appreciated.

-Into The Frey

"I am a crack shot!"
"Heart or head either way Jerry's dead!"
"Don't worry, we're basically bulletproof!!!"

Offline MBJrP36

  • Donor
  • Guard
  • *
  • Posts: 100
  • Good luck with that.
    • View Profile
Re: How AI makes certain units
« Reply #1 on: April 02, 2012, 10:16:37 PM »
What difficulty (AI) do you play against, Hard, Expert get tons of freebies.
They are in front of us, behind us, and we are flanked on both sides by an enemy that outnumbers us 29:1. They can't get away from us now!

Offline Pac-Fish

  • Axis Commander
  • Poster of the Soviet Union
  • *
  • Posts: 2494
  • Waka Waka Gluba Gulba
    • View Profile
Re: How AI makes certain units
« Reply #2 on: April 02, 2012, 10:24:51 PM »
CPU AI typically techs in a linear path. So you will see something like t1-t2-t3-t4 and at each teir they will spam stuff. Wehr AI likes to spam StuG and Pumas, PE AI likes to spam MHT and SCs, US AI like to spam WSC, and Brit AI is just wtf :P

Om Nom Nom Nom
"Panzer-Guppy ready for battle!"
"Ha Ha Ha! We have the ZEAL!"
"Grenadiers! Fall In!!"

Offline Tehcumseh

  • Strelky
  • **
  • Posts: 82
  • I have extreme nationalism.
    • View Profile
Re: How AI makes certain units
« Reply #3 on: April 02, 2012, 11:39:02 PM »
I play against normal or easy usually(not that good yet  ;D) But its not that they spam them its how they get it. Cause i'm not sure how to get it.

"I am a crack shot!"
"Heart or head either way Jerry's dead!"
"Don't worry, we're basically bulletproof!!!"

Offline Pac-Fish

  • Axis Commander
  • Poster of the Soviet Union
  • *
  • Posts: 2494
  • Waka Waka Gluba Gulba
    • View Profile
Re: How AI makes certain units
« Reply #4 on: April 03, 2012, 01:04:34 AM »
Well Im not sure what you're trying to say anymore since AI buys units like a regular player :P. But sometimes the AI does cheat. For example when Brit AI makes a tommie squad, it gets a free Lt.

Om Nom Nom Nom
"Panzer-Guppy ready for battle!"
"Ha Ha Ha! We have the ZEAL!"
"Grenadiers! Fall In!!"

Offline Otto Halfhand

  • Donor
  • Mr. Spam
  • *
  • Posts: 1166
    • View Profile
Re: How AI makes certain units
« Reply #5 on: April 03, 2012, 01:43:03 AM »
The ing/strelky/Gds battlegrpoup is a deliberate hardcoded feature from Relic; to keep the game from ending too soon. An example of it is to be found in the market garden campaign, the first Valkenswaard scenario. If you lose all your PGs a battlegroup will be spawned, probably until such time as a FHQ is built in the church.

CatFishy is right about the T1/2/3/4 build order and the spamming but I think he is incorrect about AI preferences. I think the AI will build at least one each  of all units in a given tech level, (probably with a 50%VG, 33%MG, 16%sniper probability scheme for the next unit to arrive). This process seems to be interrupted when a higher tech level building is completed. At which point a new probability scheme is implemented until one each of the T2 units is built, one of the probabilities in the T2 probability scheme possibly allows for a backTeching unit build. When the AI selects a doctrine a similar scheme is initiated.

At some point, around when T3 is built the Spamming starts and the AI selects a unit type that it seems to keep on building. I think the  spam priority switch uses the resource pool reserves to select what unit is spammed. An AI propaganda Spam will usually be NI until Katyuskas come out when it may switch to Katy's (IIRC Katy's are cheaper than NI's). I occasionally see it happen with LWGd and Wirbelwinds and rarely nashhorns. It is also seen sometimes with Partizan/KV2 spamming.

My favorite AI Spam is one faction spamming Storms and another faction Spamming Stu42Hs. A good challenge! LW spams are the most pathetic AI spams, Closely followed by straight NI Spams. Partizans would be second worst but that Spam is often changed to a KV2 Spam.

The IHT/2 PG/Shrek seems to be a bonus to the AI. Target the IHT to get the PGs to bail out ASAP. Whats worse I think the Shrek squads may always have two shreks. Anybody know for sure?

I play AI at hard and expert levels. The AI schemes I have mentioned above are not gospel. They are my best guesses.  If we can get Robotnik involved in this discussion we may get more solid answers.
孫 The
EF_v1.7.10
子 Art
Illegitimi non Carborundum -"Vinegar" Joe Stilwell
兵 of
Sun Tzu says: In warfare one compels and is not compelled by others
法 War

Offline Blackbishop

  • Administrator
  • Poster of the Soviet Union
  • *
  • Posts: 12053
  • Community Manager, Programmer and Kicker
    • View Profile
Re: How AI makes certain units
« Reply #6 on: April 03, 2012, 03:03:30 AM »
Hello i have a few questions on how when i'm playing against the AI they make units that i have know idea how to get. So the Panzer Elite AI everytime it spawns a Infantry Halftrack it spawns with Tankbusters in it like the second it spawns. So its not like they just put them in there.
That's an AI thingy, they cannot garrison/ungarrison HTs, so they get those.

Also when playing against Soviet AI i destroy there HQ (an ally was still alive so game didn't end) they spawn in 2 Ingenery squads, 1 Red Banner Strelky and 1 Shock guard. I know this is not Red Tide i just wonder how they do it.
@Otto 213 already answered this one, and it is the same for all factions not only for soviets :).
Mors Indecepta

Might controls everything, and without strength you cannot protect anything. Let alone yourself...

Offline Tehcumseh

  • Strelky
  • **
  • Posts: 82
  • I have extreme nationalism.
    • View Profile
Re: How AI makes certain units
« Reply #7 on: April 03, 2012, 03:05:32 AM »
Well thank you to everyone who helped answer my question. I just didn't understand how it happened.


-Into The Frey

"I am a crack shot!"
"Heart or head either way Jerry's dead!"
"Don't worry, we're basically bulletproof!!!"

Offline Otto Halfhand

  • Donor
  • Mr. Spam
  • *
  • Posts: 1166
    • View Profile
Re: How AI makes certain units
« Reply #8 on: April 03, 2012, 03:30:19 AM »
Hello i have a few questions on how when i'm playing against the AI they make units that i have know idea how to get. So the Panzer Elite AI everytime it spawns a Infantry Halftrack it spawns with Tankbusters in it like the second it spawns. So its not like they just put them in there.
That's an AI thingy, they cannot garrison/ungarrison HTs, so they get those.
I wonder what the AI pays for this call-in? I'll bet its less than 940MP/20FP.
孫 The
EF_v1.7.10
子 Art
Illegitimi non Carborundum -"Vinegar" Joe Stilwell
兵 of
Sun Tzu says: In warfare one compels and is not compelled by others
法 War