Login

russian armor

New construction order in HQs?

3 Jan 2020, 03:21 AM
#1
avatar of hamonteixeira

Posts: 21

Hello. I'm starting to make a mod there, but I can't change the order of upgrades and soldiers at the beginning of construction in HQ by AI.
For example, I want western german SWS truck to be built in the second or third position in the build order of the HQ, but I can't modify the build order in ia economy and SWS is always available in last position. I have already tried to change the priority, but I was unsuccessful and need help. Thx.
3 Jan 2020, 14:54 PM
#2
avatar of SneakEye
Senior Modmaker Badge

Posts: 817 | Subs: 5

The position of units in a structure is located in the 'ebps' category. Select the hq, then in spawner_ext/spawn_items/1. spawn_item/ui_position.
Position 21 means: row 2 and colomn 1. 11 is top left, 34 in bottom right.

Upgrades have their own position. In the category 'upgrade', in your upgrade/ui_position.

Upgrades which are located in the 3x4 grid have 'ui_group' set to 'command_panel'. Then the 'ui_position' means row/column. The ui_group 'unit_upgrade_panel' means the upgrade is positioned left of the 3x4 grid. The ui_position then means the priority, ordered from low to high.
3 Jan 2020, 20:42 PM
#3
avatar of hamonteixeira

Posts: 21

Thanks for the help, but like I was wondering how to make a higher priority to get SWS out first in the build order of the HQ similar to what happens to the British who first do UPGRADES and then send units to the battlefield.
4 Jan 2020, 09:57 AM
#4
avatar of SneakEye
Senior Modmaker Badge

Posts: 817 | Subs: 5

oh sorry, I misunderstood your question.

Those priorities can be set in ai_economy\complete\default. Add the units to the 'squads' list. All units which are not present in that list use the default 'default_squad_utility'. The utility value is the priority.

Global upgrades have similar lists 'player_upgrades' and 'default_player_upgrade_utility'.
4 Jan 2020, 16:16 PM
#5
avatar of hamonteixeira

Posts: 21

I tried to set a much higher priority to try to make SWS squad be manufactured first, but AI always makes several soldiers before creating the first SWS.
Also I have a problem with FLAK placement because it is created several times in a row by engineers even with very low priority valor and this makes the AI overall evolution slower.
5 Jan 2020, 00:43 AM
#6
avatar of KiwiBirb

Posts: 789

The ai is stupid I don’t think you can do much to help it, judging by how it currently behaves
5 Jan 2020, 12:06 PM
#7
avatar of hamonteixeira

Posts: 21

Really I think it's some code flaw in AI, but I would like suggestions to work around the problem. I tried to create a new sbps, but was unsuccessful.
5 Jan 2020, 15:16 PM
#8
avatar of SneakEye
Senior Modmaker Badge

Posts: 817 | Subs: 5

The AI often drives me crazy, but I have a workaround to influence them a little. I added 1 upgrade to all 5 HQ's. That upgrade has position -1 (invisble) and no hotkey. I added the upgrade to the economy which utility 1000. It is called 'is_ai'. The AI normally buys it within 1 minute in the match.

This upgrade can be used to lock units for example (requires NOT: player upgrade). Or to limit them to one or two on the field. A human player will not be able to buy this upgrade.
5 Jan 2020, 15:43 PM
#9
avatar of hamonteixeira

Posts: 21

The AI often drives me crazy, but I have a workaround to influence them a little. I added 1 upgrade to all 5 HQ's. That upgrade has position -1 (invisble) and no hotkey. I added the upgrade to the economy which utility 1000. It is called 'is_ai'. The AI normally buys it within 1 minute in the match.

This upgrade can be used to lock units for example (requires NOT: player upgrade). Or to limit them to one or two on the field. A human player will not be able to buy this upgrade.


I can't do one new upgrade alone. Could you send some prints for me to try to do the same?
5 Jan 2020, 16:00 PM
#10
5 Jan 2020, 16:34 PM
#11
avatar of hamonteixeira

Posts: 21

How do I make this upgrade limit the number of flaks in hq?
5 Jan 2020, 16:34 PM
#12
avatar of hamonteixeira

Posts: 21

How do I make this upgrade limit the number of flaks in hq?
5 Jan 2020, 17:59 PM
#13
avatar of SneakEye
Senior Modmaker Badge

Posts: 817 | Subs: 5

In the sbps of the flak:

5 Jan 2020, 18:05 PM
#14
avatar of hamonteixeira

Posts: 21

Awesome!thank you my friend.Do you have any ideas for getting SWS out first?
0 user is browsing this thread:

SHOUT IT OUT!

No ProfanityNumber of ShoutsRefresh Shout Box
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
Rosbone: To be fair, it was a thank you to early fans right? They said it was not free for long and it would become a pay DLC at some point.
27 Mar 2025, 09:30 AM
Willy Pete: Re-releasing free DLC so they can charge new players money for it. Brilliant marketing strategy :clap:
27 Mar 2025, 04:31 AM
Soheil: Coh2 still broken server ?
25 Mar 2025, 18:27 PM
Rosbone: Congrats to Relic. Looks like Coh3 has finally usurped Coh2 s the popular Coh. You smell terrific. :snfQuinn:.
24 Mar 2025, 02:46 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

371 users are online: 371 guests
1 post in the last 24h
5 posts in the last week
39 posts in the last month
Registered members: 53793
Welcome our newest member, bk88cash
Most online: 2043 users on 29 Oct 2023, 01:04 AM