Switching Commander Abilities
Posts: 3
Posts: 756 | Subs: 8
Posts: 632 | Subs: 1
abilities\west_german\modal_ability\dispatch_ability\mg34_dispatch
To make it disappear in-game, I changed the ui_position to -1; that worked. I then made a copy of the Ostheer recon plane:
abilities\german\modal_ability\commander_ability\stuka_air_recon
With the name changed to:
abilities\west_german\modal_ability\commander_ability\luftwaffe_stuka_air_recon
In the requirements, I changed the required_player_upgrade from:
upgrade\german\commander\ability\recon_plane
To:
upgrade\west_german\commander\ability\mg34_dispatch
Since that unlocks at 1CP and both the upgrade and the ability for the recon plane normally unlock at 4CP, I figured that I wouldn't need to change anything else. The other requirements are basically just '4CP' and 'no blizzard' and I obviously kept those.
But it doesn't appear in-game, so I must be doing something wrong. Does the ui_position have any significance apart from the fact that it shouldn't be set to -1? Do I maybe need to clone the MG34 dispatch ability, keep the name and change it to send a recon plane?
Any help is appreciated!
Posts: 756 | Subs: 8
Posts: 756 | Subs: 8
Posts: 632 | Subs: 1
abilities\west_german\modal_ability\dispatch_ability\mg34_dispatch
Then I copied the ability_bag from:
abilities\german\modal_ability\commander_ability\stuka_air_recon
And pasted into the former. As before, I then changed the required_player_upgrade from recon_plane to mg34_dispatch. In-game, the MG34 ability was gone, but the recon plane was still not visible.
I then opened the XML in Notepad++ and changed the pgbid (which was copied from stuka_air_recon as well, for some reason) back to the one from mg34_dispatch. This did not help either.
Next, I changed the ui_position from 40 to 101, as another ability in OKW Luftwaffe doctrine has it set to 40 already. I also removed the required_player_upgrade entirely. It's still not showing up in-game, though.
Any ideas? Are there any other IDs still pointing to some Ostheer commanders? Do I need to create the new ability completely 'by hand', even if I actually want a straight copy?
Posts: 756 | Subs: 8
Posts: 632 | Subs: 1
UniqueID contains an ID which is already used pbgid, c:\coh2stuff\instances\abilities\west_german\modal_ability\dispatch_ability\mg34_dispatch.xml, old 14326 new 1073741832.
Then it changes the pbgid from 14326 (MG34) to 1073741832. Recon normally has 80. And that's even though I copy-pasted only the ability_bag, not the pbgid as well.
Posts: 756 | Subs: 8
Posts: 94
I ask because I've also been having trouble with abilities seemingly randomly not showing up after cloning them and changing the required_player_upgrade. Seems like there's something going on behind the scenes.
Posts: 756 | Subs: 8
Commander Abilities reference Abilities.
You cannot create or even edit Commanders OR Commander Abilities.
You CAN create and edit Abilities.
Therefore, you can edit the Abilities that are referenced by Commander Abilities, to the point where they are essentially like new Abilities.
So, make sure you are right clicking on the Ability in a Commander Ability and selecting "Go to reference". That way, you are editing the right ability. Other than that, it is up to actions and requirements. If any actions are invalid (like referencing null for something), the ability will not show up.
Posts: 94
Edit: Okay, so one of the ones I had a problem with is recoup_losses, which is referenced directly because it's a newer one. I thought it might not be b/c for some reason it still uses an upgrade.
So what I'm wondering specifically then is, what makes already existing abilities which are NOT referenced directly show up, and new abilities (created by a modder) not show up?
Posts: 756 | Subs: 8
Keep in mind that, in order for your ability to be considered an "edit" (meaning it replaces the existing one), it must have the same name, path, AND pbgid.
Edit: Actually, I guess they do not all reference Abilities. Interesting. Well, there is a list of abilities in the army_bag, so check there. Those are ones that are unlockable with upgrades given by the Commander Ability.
Posts: 94
With this I have enough to work with to make pretty much any commander ability alteration I can think of (the only problem before was that I wanted to have more total abilities than there currently is).
Posts: 632 | Subs: 1
Posts: 3
Yeah, I think I've got it.
Sorry for taking soooo... long to respond, I had only just checked this tread less than a month ago and was surprised (and delighted) to see all the responses. I think I understand how the system works and have made many more changes other than this one. Glad to have this help more than just me.
P.S. Is it possible to give commanders 6 or more abilities since they originally only have 5?
Posts: 94
Posts: 632 | Subs: 1
You can even put abilities in there that don't have anything to do with commanders at all.
Edit: Too late
Posts: 3
It certainly is. I believe it's only limited by the amount of space in the UI (which, obviously, is not a lot).I was pretty sure that was the case. I've seen a community map that featured the troops training ability available to all players on the map, but that was made possible by scar coding unique to that map. And the way how the king tiger was switched to a dispatch ability that was added to what would be the 6th ability position, I presume.
Sure, why not? Just put them all in army_bag/abilities and give them appropriate requirements. I use required_all_in_list containing several required_player_upgrade that only one commander has in that combination.So I'd clone a 6th ability and in the requirements add the upgrade requirements of all the other abilities of that specific commander. Also, the 6th ability should be one that has the highest command point requirement, since it would require the activation of all previous abilities, yes?
Posts: 632 | Subs: 1
So I'd clone a 6th ability and in the requirements add the upgrade requirements of all the other abilities of that specific commander.
Yes, that works. But you don't really have to use all of them as long as you have an upgrade or a combination of upgrades that only your desired commander has.
Also, the 6th ability should be one that has the highest command point requirement, since it would require the activation of all previous abilities, yes?
CP requirements are stored in two places: The ability's own requirements as well as the required commander upgrade's requirements. So one of the two should actually be redundant.
Let's say you want to add an ability to OKW Luftwaffe at 1CP, doesn't matter what exactly it is. Our requirements will be:
required_resource (1CP)
required_player_upgrade (attributes\upgrade\west_german\commander\ability\fallschrimjager_dispatch)
That's already enough, because no other commander has Fallschirmjäger. But the upgrade for Fallschirmjäger has a required_resource at 3CP. So you would also need to clone that upgrade, keep the name and remove the required_resource. But that's alright, because the Fallschirmjäger ability also has the CP requirement, so it should still work fine.
Livestreams
79 | |||||
2 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.655231.739+15
- 2.842223.791+5
- 3.940410.696+6
- 4.35459.857-1
- 5.599234.719+7
- 6.278108.720+29
- 7.307114.729+3
- 8.645.928+5
- 9.10629.785+7
- 10.527.881+18
Replay highlight
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Board Info
10 posts in the last week
28 posts in the last month
Welcome our newest member, Citrano
Most online: 2043 users on 29 Oct 2023, 01:04 AM