Login

russian armor

SWS Cannot use ability on this target.

27 Dec 2021, 03:58 AM
#1
avatar of FLS_FalcoN

Posts: 20

Hello, I'm struggling with the SWS Halftrack currently, with which I can't convert it to any other building.
It simply says over both the Tier 2 and 3 Buildings that it "Cannot Use Ability On This Target", thus not allowing me to convert it. So far for OKW I have only messed around with Pios and Volks, simply copy and pasted the HQ and the SWS halftrack, and edited the army files so my custom pios spawned in straight away, my question is what is the requirement stopping the SWS from converting? I've gone through (as far as I know) all of the references and abilities yet I can not find a solution, perhaps it believes it needs to be targeted like a panzerfaust? That's my best guess from the in game message, anyways, I'd really appreciate some help on this.

Thank you <444>3
5 Jan 2022, 22:28 PM
#2
avatar of General_Starlord

Posts: 38

Do you mind if I ask what you mean by copy and paste the HQ and SWS.
Do you mean you cloned them?
6 Jan 2022, 13:03 PM
#3
avatar of FLS_FalcoN

Posts: 20

Do you mind if I ask what you mean by copy and paste the HQ and SWS.
Do you mean you cloned them?


Yes I mean I cloned it, from what I gathered some things break if they are cloned but not renamed? is this one of these issues?
7 Jan 2022, 00:25 AM
#4
avatar of General_Starlord

Posts: 38

I usually find its the other way round. Cloning something and then renaming it can break it.
My only suggestion really is to clone all the okw buildings and their construction abilities, as they may have been changed by Relic and we cant see the changes cause the tools are so out of date.
If you clone them it will set them up in your mod as they appear in the tools and that might fix it.
7 Jan 2022, 01:17 AM
#5
avatar of FLS_FalcoN

Posts: 20

I usually find its the other way round. Cloning something and then renaming it can break it.
My only suggestion really is to clone all the okw buildings and their construction abilities, as they may have been changed by Relic and we cant see the changes cause the tools are so out of date.
If you clone them it will set them up in your mod as they appear in the tools and that might fix it.


I have cloned all of them (including the ones left over from the old OKW base system in case there's sone weird stuff there) as far as I know, the problem is there is so many, such as the way it "kills" the sws and replaces it with the base building but I might have missed some, any I should 100% look for in case I missed it, or is there any way to restart work on only one nation? I have already worked on USF and UKF so I'd hate to restart the progress on them. I tried replacing the cloned SWS and base buildings with the standard ones as well the ability references but not even that worked.
7 Jan 2022, 04:33 AM
#6
avatar of Sie_Sayoka
Modmaker Badge

Posts: 103 | Subs: 1

The SWS halftrack has all the relevant references within the squad category. You will want to look for ability and loadout extensions and reference those accordingly.

To diagnose the problem why the ability cannot be used, label the requirements so you know which requirement is not being fulfilled.

I have looked at the ability requirements and none of them have the string "Cannot Use Ability On This Target". I'm unsure if this is because the mod tools are outdated or because its a default message of some target requirement within the ability not being met.

If you can still not diagnose the issue then start by deleting requirements until it works.
8 Jan 2022, 23:50 PM
#7
avatar of FLS_FalcoN

Posts: 20

The SWS halftrack has all the relevant references within the squad category. You will want to look for ability and loadout extensions and reference those accordingly.

To diagnose the problem why the ability cannot be used, label the requirements so you know which requirement is not being fulfilled.

I have looked at the ability requirements and none of them have the string "Cannot Use Ability On This Target". I'm unsure if this is because the mod tools are outdated or because its a default message of some target requirement within the ability not being met.

If you can still not diagnose the issue then start by deleting requirements until it works.


Hi, I made sure all preferences were properly connected, and then tried deleting every requirement for the ability, yet it still does not let me convert the SWS. Same message too, it could be that the tools are just that badly out of date, but I also don't remember relic changing the SWS in anyway for the past 2 years so I really don't know what's going on here. As I asked before, any way to restart my work just on OKW?
9 Jan 2022, 03:50 AM
#8
avatar of Sie_Sayoka
Modmaker Badge

Posts: 103 | Subs: 1

That's weird.

For clarification is the ability's button greyed out or are you able to click the button and have the ghost image of the halftrack?

When you cloned the SWS halftrack was it in the sbps or ebps category?

Is the pbgid (number at the bottom) the same as the non-cloned version?

To 'restart' your progress there's 2 options.

Copy/paste the "extensions" by clicking on the extensions line of the attributes version and pasting it over the extensions line of your clone.

Delete your cloned SWS halftrack. If a dialogue box is opened saying x instances will also be affected don't delete it. Find all references (via right click) and replace them with the original versions first. Then you can delete it.
9 Jan 2022, 04:45 AM
#9
avatar of FLS_FalcoN

Posts: 20

That's weird.

For clarification is the ability's button greyed out or are you able to click the button and have the ghost image of the halftrack?

When you cloned the SWS halftrack was it in the sbps or ebps category?

Is the pbgid (number at the bottom) the same as the non-cloned version?

To 'restart' your progress there's 2 options.

Copy/paste the "extensions" by clicking on the extensions line of the attributes version and pasting it over the extensions line of your clone.

Delete your cloned SWS halftrack. If a dialogue box is opened saying x instances will also be affected don't delete it. Find all references (via right click) and replace them with the original versions first. Then you can delete it.


It is completely greyed out yeah, doesn't let me select it. I cloned both the sbps and ebps, the pbgid is different as whenever a new id is created, nothing strange there. It seems like the there is code which either broke or is simply proving how outdated these tools are, like wise with the mechanized support group, which it is still referenced in game but nowhere (as far as I know) to be seen in the tools. Luckily I figured a work around for that, "restarting" progress the way you explained has worked for now, which suggests maybe I made a mistake somewhere, regardless, thank you for your support, and good to know there's a way of beginning all over again.
9 Jan 2022, 07:55 AM
#10
avatar of SneakEye
Senior Modmaker Badge

Posts: 817 | Subs: 5

It is completely greyed out yeah, doesn't let me select it.

This happens when the action list in the ability is empty or the list has actions which have 0 duration.
Does the construct_action still have a correct link to your entity?
12 Jan 2022, 08:31 AM
#11
avatar of FLS_FalcoN

Posts: 20


This happens when the action list in the ability is empty or the list has actions which have 0 duration.
Does the construct_action still have a correct link to your entity?


The links were fine, it did have 0 duration though, which did fix it thank you very much.

One thing if you don't mind SneakEye, is there any way to change what weapons are available at the weapon racks in the Forward Assembly? I'm trying to give OKW the Forward Assembly, my problem is the link between the Forward Assembly itself and the weapon racks as they're a separate entity.

I have all of the slot_item stuff done and whatnot, it's just the link between the two entities that I don't understand. My Pioneers build the new OKW Forward Assembly but it still comes with the PIAT and Bren LMG.
12 Jan 2022, 09:26 AM
#12
avatar of SneakEye
Senior Modmaker Badge

Posts: 817 | Subs: 5

The links were fine, it did have 0 duration though, which did fix it thank you very much.

Nice!

One thing if you don't mind SneakEye, is there any way to change what weapons are available at the weapon racks in the Forward Assembly? I'm trying to give OKW the Forward Assembly, my problem is the link between the Forward Assembly itself and the weapon racks as they're a separate entity.

I have all of the slot_item stuff done and whatnot, it's just the link between the two entities that I don't understand. My Pioneers build the new OKW Forward Assembly but it still comes with the PIAT and Bren LMG.

The Forward Assembly spawns the weapon racks through an apply_stamp_action in construction_ext/on_construction_actions. However, these stamps cannot be modded. If you make a custom structure, then you need to remove that apply_stamp_action and use spawn_entity_action instead. Set permanent to False, duration to 9999 and player_owned to True; that will automatically delete it when the Forward Assembly dies.
12 Jan 2022, 10:40 AM
#13
avatar of FLS_FalcoN

Posts: 20


The Forward Assembly spawns the weapon racks through an apply_stamp_action in construction_ext/on_construction_actions. However, these stamps cannot be modded. If you make a custom structure, then you need to remove that apply_stamp_action and use spawn_entity_action instead. Set permanent to False, duration to 9999 and player_owned to True; that will automatically delete it when the Forward Assembly dies.


That explains why I could never find anything linked to the stamps, useful to know, once again thank you, works just as I needed it to.
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
Last Wednesday, 01:34 AM
Willy Pete: @Rosbone not dead yet. when that happens the font will switch to Papyrus :*(
Last Wednesday, 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
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

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

433 users are online: 433 guests
0 post in the last 24h
9 posts in the last week
72 posts in the last month
Registered members: 53399
Welcome our newest member, Mccaffer
Most online: 2043 users on 29 Oct 2023, 01:04 AM