Login

russian armor

Modding Commander Abilities

3 Nov 2016, 17:37 PM
#1
avatar of Planet Smasher
Senior Modmaker Badge

Posts: 632 | Subs: 1

In response to this post:

jump backJump back to quoted post3 Nov 2016, 16:20 PMArtigo
Hello again Planet Smasher, how did you go about modifying the Commander abilities? Did you clone the Tiger call_in and just replace the UI elements and squad it calls in?

For OKW support commanders I'm wanting to give them the SturmTiger over the KT, but I wasn't sure if changing the UI Icon would affect the in-game commander's CP abilities.

It's usually best to make a new ability for stuff like that. There's two general steps in adding it to a commander:

1. Go to the "army" category, clone the army that should get it, open "abilities" and add it to the list.

2. Give it the proper requirements:

a) "required_resource" with a CP value, with "reason" set to "usage".
(Unless it should come at 0CP, then you obviously don't need this.)

b) Each commander is basically defined by the five upgrades it grants to the player when chosen; the rest is just fluff. You can find these by going to the category "inventory -> commander", then clicking on "Go To Reference" for each entry in "commander_abilities" and finally looking at the value for "upgrade".

For example, Elite Troops Doctrine gives these upgrades:

attributes\upgrade\german\commander\passive\stormtroopers
attributes\upgrade\german\commander\passive\jaeger_light_infantry
attributes\upgrade\german\commander\passive\panzer_tactician
attributes\upgrade\german\commander\passive\tiger_tank_ace
attributes\upgrade\german\commander\passive\blinding_grenades

If you want to add an ability to this commander, simply give the ability a "required player_upgrade" with an upgrade that is unique to the commander. In this case, that would be either the "tiger_tank_ace" or "blinding_grenades". You should set "reason" to "usage_and_display" here.

Some commanders don't have a single ability that is unique to them. For example, Jaeger Armor Doctrine gives you these upgrades:

attributes\upgrade\german\commander\passive\heavy_at_mine
attributes\upgrade\german\commander\ability\recon_plane
attributes\upgrade\german\commander\passive\stationary_los_gain
attributes\upgrade\german\commander\ability\stuka_bombing_run_upgrade
attributes\upgrade\german\commander\passive\elefant_unlock

All of these are available in other commanders. You can still add abilities to Jaeger Armor Doctrine by using a combination of upgrades only found here: While both "heavy_at_mine" and "recon_plane" are found in other commanders, none of them has both. So you would add the following:

required_all_in_list (reason: usage_and_display)
--required_player_upgrade: heavy_at_mine (reason: usage_and_display)
--required_player_upgrade: recon_plane (reason: usage_and_display)

For commander abilities that have other components, such as squad weapon upgrades or units unlocked in base buildings, you have to add the same requirements to those.

Sometimes, you will also want to remove another commander ability. That works in a similar way. If the ability is only available in a single commander (or you want to remove it from all the commanders that have it), you can simply remove it from the army's ability list. If you only want to remove it from one commander, use the same required_player_upgrade (or combination of them) described above, but set "is_present" to False.

(Didn't want to discuss this in my mod's thread. I hope that's alright!)
3 Nov 2016, 18:15 PM
#2
avatar of Artigo

Posts: 80

Thank you for this!
19 Nov 2019, 09:11 AM
#3
avatar of Rigwaz

Posts: 57

I watched Paavo Benet's tutorial videos and the video on Modifying Existing Armies mentions

"If you want to have abilities that the race starts with just remove any requirements that would be commander related."

- So in essence you could clone the army on the army page and delete abilties like ambush camouflage (and in unit upgrade portions set the required value from true to false) to make it default on a unit? You would also need to replace those abilities that were deleted on a per commander basis I assume.


or "you could make use of the group secondary which sits above the normal commander abilities if you wanted to just add them all here [army abilties]"

He does not however mention how to add group secondaries. How exactly do you use them?


I'm not sure if I was doing something wrong but I was not able to give a commander 9 abilities for example. Does that only work by using group secondaries?
19 Nov 2019, 09:53 AM
#4
avatar of SneakEye
Senior Modmaker Badge

Posts: 817 | Subs: 5

jump backJump back to quoted post19 Nov 2019, 09:11 AMRigwaz
He does not however mention how to add group secondaries. How exactly do you use them?

I'm not sure if I was doing something wrong but I was not able to give a commander 9 abilities for example. Does that only work by using group secondaries?

To make an ability a group secondary:
Set in the ability 'ui_group' to: group_secondary.

This will only position the ability above the commander abilities. If it wasn't visible before, then it will not be visible with this change. Can you create a new thread with a little more details about what you tried so far?
1 user is browsing this thread: 1 guest

SHOUT IT OUT!

No ProfanityNumber of ShoutsRefresh Shout Box
Lady Xenarra: @Willy Pete The lack of April Fools this year is odd lol
Today, 01:34 AM
Willy Pete: @Rosbone not dead yet. when that happens the font will switch to Papyrus :*(
Today, 00:16 AM
dasheepeh: it was an honor guys :guyokay:
Yesterday, 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:
Yesterday, 20:29 PM
Rosbone: @dasheepeh I guess that means this site is officially dead :guyokay:
Yesterday, 20:19 PM
dasheepeh: no comic sans font for april 1st this year?
Yesterday, 19:56 PM
Willy Pete: @Lady Xenarra this you? https://i.imgflip.com/3e4thi.jpg
Yesterday, 02:53 AM
Lady Xenarra: Does anyone else think that USF needs buffs? It feels like they’re on life support sometimes
Yesterday, 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
Last Thursday, 15:46 PM
Rosbone: It is also good they left it free until after the free to play weekend. Points for that.
Last Thursday, 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.
Last Thursday, 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.
Last Thursday, 09:30 AM
Willy Pete: Re-releasing free DLC so they can charge new players money for it. Brilliant marketing strategy :clap:
Last Thursday, 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
Nickbn: and again someone else replies. I mean come on guys. Give @adamírcz a chance
22 Mar 2025, 14:00 PM
Willy Pete: @Nickbn you didn't ask a question, and this is a chat box...
20 Mar 2025, 13:11 PM
Nickbn: @Rosbone it's incredibly rude to speak on someone elses behalf, especially when a question is directly adressed to them. I understand your passion for the subject at hand but I want to hear from him.
20 Mar 2025, 10:16 AM
Rosbone: @Nickbn No, I am just saying people should not be using any Relic owned forum since they have proven they ban anyone who says true things about Coh3.
18 Mar 2025, 19:01 PM
Nickbn: @Rosbone do you speak on his behalf? I didn't know. In that case keep us updated please.
18 Mar 2025, 16:47 PM

Livestreams

unknown 5
unknown 12
Russian Federation 9
United States 4

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

419 users are online: 1 member and 418 guests
aerafield
1 post in the last 24h
11 posts in the last week
81 posts in the last month
Registered members: 53140
Welcome our newest member, 98win98win
Most online: 2043 users on 29 Oct 2023, 01:04 AM