Company of Heroes 2

Company of Heroes 2

Zycat AI
Zycat  [developer] 28 Aug, 2021 @ 9:47am
Wishlist
Highest priority - Commander, Bulletin, and Skin loadout edit.
All - Mine usage. [DONE - Only singular mine, no minefields though]
All - Better teamwork between squads.
All - Save resources for better play. No solutions.
USF - Pack Howitzer usage. [LIMITED solutions, A.I always stops.]
UKF - Build mortar pits. And only mortar pits. [DONE]
Ostheer - Build a medical bunker in base. No solutions found currently. [WORKAROUND - upgraded one of the starting bunkers to a medical bunker with the cost of normal bunker + the medical upgrade]
Oberkommando - More control over what building gets build. Currently it's rather random which one it will go first, Battlegroup or Mechanized. [LIMITED solutions - most likely affected by total utility of produced units and since Battlegroup has IR halftrack which effectively has zero utility according to the A.I because it has no weapons, it is not built as often. Also seems like Battlegroup has limited time window, over x minutes it will only build Mechanized, more likely to be remnants of the original "timed sws truck" design of OKW]
Last edited by Zycat; 15 Feb, 2022 @ 7:26pm
< >
Showing 1-15 of 57 comments
Dar 13 Sep, 2021 @ 12:20pm 
Hey Zycat, whenever you want the AI to build something it doesn't usually want to build, give that entity a dummy MG on the hardpoint 1, and upon construction remove or switch that dummy weapon. The AI loves MGs and will build that thing everywhere, so be sure to give it a limit. Works on everything from mortar pits to mine fields, no SCAR needed.
Zycat  [developer] 13 Sep, 2021 @ 4:10pm 
Originally posted by Dar:
Hey Zycat, whenever you want the AI to build something it doesn't usually want to build, give that entity a dummy MG on the hardpoint 1, and upon construction remove or switch that dummy weapon. The AI loves MGs and will build that thing everywhere, so be sure to give it a limit. Works on everything from mortar pits to mine fields, no SCAR needed.

Yeah well the problem is I'm not touching any of the ebps and sbps that the player can build to preserve future compatibility with Relic patches, although I definitely can use the knowledge for something else like mines. I'll look into it more though, thanks.

I actually managed to get the A.I to build mortar pits more by disabling the Forward Assembly for the A.I.
Last edited by Zycat; 14 Sep, 2021 @ 12:18am
Zycat  [developer] 16 Sep, 2021 @ 9:40pm 
Weapon Rack, Grenade, and Build order related woes are now fixed! Yay. Finally figured out how to do it.
CoarmiuS 13 Nov, 2021 @ 12:44pm 
Love this mode so my big thanks for at least fixing brit AI.
But I have a question: UKF AI never take brens on sections. USF for exemple sometimes takes bars for riflemans but UKF never use they lmgs.
You think adding this is even possible?
Zycat  [developer] 13 Nov, 2021 @ 4:21pm 
Ah yes, I haven't found a solution for those also. I tried many things and none seems to influence how the A.I picks up weapons from weapon racks.
DREDNOUT_571 15 Dec, 2021 @ 12:37am 
Hello. My friend and I played with your mod. The AI ​​works well, but the expert seems too simple to us. We just take fuel and the AI ​​loses. Could you make a version where the cheating resource increase will return?
Is it possible to somehow limit abilities, where AI uses abilities with multiple FX, smokes? Powerful PC has low fps.
Zycat  [developer] 16 Dec, 2021 @ 2:36am 
The A.I uses standard resource gains (no change in the amount), so I'm not sure what you mean by cheating resource.

I already toned down the smoke, I think I'll tone down it further perhaps.
DREDNOUT_571 16 Dec, 2021 @ 9:40am 
Thanks for work with smoks. I'm talking about ai_settings->default_skirmish_hardest->skirmish_settings->resource. Resource gain multiplier for ai. Can be increased from 1.5 to 2.0?

I started making my own ai. I adjusted the realistic behavior of the infantry and vehicles. But I don’t know yet where to edit the max number of units of one type, the priority of creating a type of units, taking a free weapon. Can you tell?
I tried resource value x10)) It was tough))
Zycat  [developer] 16 Dec, 2021 @ 6:53pm 
No, I will not adjust resource multipliers at all. It is one of my A.I's "features" to not cheat anymore than the original A.I.

Max number of units and priority are in ai_economy. Taking a dropped weapon is on ai_squad.
DREDNOUT_571 20 Dec, 2021 @ 12:44pm 
Hi One more question again, please))
In ai_economy, what's the difference
per_unit_scale
and per_unit_scale_historical?
Can I make the AI ​​never create any type of unit?
ai_squads contains only the spawn rate for vermaht and soviet. What about the other factions? Can i manualy input?
Zycat  [developer] 20 Dec, 2021 @ 8:06pm 
per_unit_scale is the amount of "utility" lowered per unit in the field (not counting destroyed units)
per_unit_scale_historical is the amount of "utility" lowered per unit built in the entire match (counting destroyed units).
They're both multiplicative of the set utility (remember utility is modified by internal combat value algorithm of the A.I also, it's also settable.)

Yes you can, set the utility to 0 and both unit scales to 1.

Yes you can manually input. Otherwise it takes the default values that you can set.
Last edited by Zycat; 20 Dec, 2021 @ 8:06pm
DREDNOUT_571 22 Dec, 2021 @ 2:53am 
Hello again. Can you help me with some more questions? Can I choose to customize commanders for AI? Can I customize what buildings the AI ​​builds? How do I set up OKW to build a base near HQ?
Zycat  [developer] 22 Dec, 2021 @ 3:31am 
1. No you can't customize loadouts and commanders at all.
2. Meaning? I don't recommend skipping tier buildings as they can bug out.
3. ai_settings file -> skirmish_settings -> capture -> forward_base_setup_at_hq set to True.
DREDNOUT_571 22 Dec, 2021 @ 4:05am 
2. I would like to say about the protective structures ml20, b4, flak nest. AI uses them badly, I wanted to turn them off. Don't customize?
Zycat  [developer] 22 Dec, 2021 @ 4:11am 
ai_economy -> default_defensive_structure_utility
< >
Showing 1-15 of 57 comments
Per page: 1530 50