What is the per_unit_scale number?
AI economy question
12 Aug 2021, 13:10 PM
#1
Posts: 139
12 Aug 2021, 13:35 PM
#2
Posts: 817 | Subs: 5
These are the best explanations I could find:
Addition from Zycat:
: utility - A score that is applied to the squad when all of its values are added up. Weapons, cost, and health are all taken into account. Leaving it at -1 lets the AI add all those values up, setting it to a number disables that logic.- https://www.coh2.org/topic/84712/ai-economy/post/715032
: random_range_offset - A random number that is gotten at the beginning of the game that is applied to the utility value. It can be a positive or negative number in the range. Example; if the utility value is 100, setting the random range to 10 can make it anywhere between 90 and 110 once the ai starts.
: per_unit_scale - How much the utility value gets reduced/increased based on how many units of that type are present on the battlefield. Say, if set to 0.5, each unit alive of that time will reduce the value by half. This is mainly used to prevent the AI from spamming units it deems good.
Addition from Zycat:
per_unit_scale_historical works the same as per_unit_scale, but it's used for the entire match. If the squad dies per_unit_scale will not have an effect anymore, while historical does.
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.- https://www.coh2.org/topic/58127/ai-don-t-use-some-units-at-all/post/581958
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.
12 Aug 2021, 22:28 PM
#3
Posts: 139
Thanks, SneakEye.
14 Sep 2021, 23:23 PM
#4
Posts: 14
per_unit_scale_historical works the same as per_unit_scale, but it's used for the entire match. If the squad dies per_unit_scale will not have an effect anymore, while historical does.
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
39 | |||||
22 | |||||
17 | |||||
1 | |||||
8 | |||||
2 | |||||
1 | |||||
1 | |||||
1 | |||||
0 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.611220.735+5
- 3.34957.860+14
- 4.1110614.644+11
- 5.276108.719+27
- 6.306114.729+2
- 7.916405.693-2
- 8.262137.657+3
- 9.722440.621+4
- 10.1041674.607-2
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1235
Board Info
853 users are online:
853 guests
0 post in the last 24h
7 posts in the last week
34 posts in the last month
7 posts in the last week
34 posts in the last month
Registered members: 49117
Welcome our newest member, topcsnvncom
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, topcsnvncom
Most online: 2043 users on 29 Oct 2023, 01:04 AM