AI don't use some units at all
18 Dec 2016, 21:42 PM
#1
Posts: 87
I had that problem before with Paratroopers, but in some patch AI started use them. Now they don't use American tank destroyers though - I never seen them use Jacksons or M10s in battle, even though they used them before without problems. AI loves to build Shermans and halftracks (I added M3 HT for americans) but they never, ever build TDs. Is there any way to fix it? I don't know, maybe there is some priority list or something for AI?
19 Dec 2016, 01:16 AM
#2
Posts: 84
Indeed, there is a way. You'll have create a custom preset in the ai_economy section and then add it as override in the ai_economy_group section (remember to set active_by_default to true)
I have to warn you though: This area is largely undocumented and getting the results you want to will require a lot of time and effort in trying out different settings, always keeping the factor of chance in mind. You'll also probably want to add an entry for every unit in the USF faction to be able to better balance them against one another.
Under "ai_economy/overrides/[yourpresetname]/squads", add a new "squad_utility" in case the unit you want to adjust isn't already listed. For "blueprint", set the sbps file of the unit.
As for "per_unit_scale", I'm not 100% sure, but countless hours of testing lead me to the conclusion that this controls how many of one unit the AI will produce at all. If you set it to "0.05", countless TDs will swarm the field if the AI has the resources. Set it to "0.5" and over the course of the match you'll most likely see two at max before the AI chooses to build other tanks instead. Works different for Infantry. But again, just my guess at making sense of the variables.
Finally, the "utility". Pretty straight forward, it tells the AI what the unit is worth. Extremely inconsistent, probably a modifier to some hidden (?) base value of a unit. You'll need to experiment. Random offset should be clear.
In any event, there are some units that the AI will spam even if their utility is near 0. Such as the M4A3 Sherman and Halftracks that can reinforce. You'll have to find the right balance of utilities for your mod.
I hope you can make some sense of this.
I have to warn you though: This area is largely undocumented and getting the results you want to will require a lot of time and effort in trying out different settings, always keeping the factor of chance in mind. You'll also probably want to add an entry for every unit in the USF faction to be able to better balance them against one another.
Under "ai_economy/overrides/[yourpresetname]/squads", add a new "squad_utility" in case the unit you want to adjust isn't already listed. For "blueprint", set the sbps file of the unit.
As for "per_unit_scale", I'm not 100% sure, but countless hours of testing lead me to the conclusion that this controls how many of one unit the AI will produce at all. If you set it to "0.05", countless TDs will swarm the field if the AI has the resources. Set it to "0.5" and over the course of the match you'll most likely see two at max before the AI chooses to build other tanks instead. Works different for Infantry. But again, just my guess at making sense of the variables.
Finally, the "utility". Pretty straight forward, it tells the AI what the unit is worth. Extremely inconsistent, probably a modifier to some hidden (?) base value of a unit. You'll need to experiment. Random offset should be clear.
In any event, there are some units that the AI will spam even if their utility is near 0. Such as the M4A3 Sherman and Halftracks that can reinforce. You'll have to find the right balance of utilities for your mod.
I hope you can make some sense of this.
21 Dec 2016, 17:43 PM
#3
Posts: 87
Oh man, sounds like hours of tedious work. Also there aren't any presets for USF and Brits, so I'm not sure if it will even work...
21 Dec 2016, 17:46 PM
#4
Posts: 84
It will work. I did this numerous times. You'll need to create the sets of overrides (look at the ToW presets for examples). But yes, it will probably cost you many hours of testing and tweaking until the AI performs in a way you'd like.
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
90 | |||||
33 | |||||
22 | |||||
17 | |||||
10 | |||||
165 | |||||
15 | |||||
9 | |||||
7 | |||||
3 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.653231.739+13
- 2.839223.790+2
- 3.35057.860+15
- 4.592234.717-1
- 5.278108.720+29
- 6.306114.729+2
- 7.645.928+5
- 8.922406.694+1
- 9.1122623.643+3
- 10.265138.658+2
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
10
Download
1245
Board Info
923 users are online:
923 guests
0 post in the last 24h
0 post in the last week
28 posts in the last month
0 post in the last week
28 posts in the last month
Registered members: 49427
Welcome our newest member, Baqis73421
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Baqis73421
Most online: 2043 users on 29 Oct 2023, 01:04 AM