XCOM 2
[WOTC] Visual Attachments for Pistols (Supports Coil, Laser and Primary Secondaries)
101 Comments
3D Master 3 May @ 4:21pm 
I assume this supercedes your previous mod that essentially does the same, and I can remove the older one, right?
Epic Dovahkiin 26 Sep, 2024 @ 7:57pm 
to clear the user config (which i recommend doing if your mods don't work as expected and before every new campaign) go to (whatever drive you use in my case it's the C drive)\Users\(user name)\Documents\My Games\XCOM2 War of the Chosen\XComGame and delete the config folder then using the 2k launcher with mods disabled launch the game which will restore user config to a vanilla state
Epic Dovahkiin 26 Sep, 2024 @ 7:35pm 
(putting this here because i can't edit @MrDespresso the reason i can't help you if you don'tuse aml is because steam lists all workshop items as a folder with a string of numbers within another folder that's also numbered which in turn represents the game which (on top of the 2k launcher not liking mods) is why i suggest only ever using AML)
Epic Dovahkiin 26 Sep, 2024 @ 7:26pm 
show in explorer* my bad
Epic Dovahkiin 26 Sep, 2024 @ 7:25pm 
@MrDespresso if you don't use AML you absolutely should (and i cannot help you there) otherwise right click on the mod in AML (in this case true primary secondaries) and click "open in explorer" then go to config and then XComTruePrimarySecondaries.ini
MrDespresso 25 Sep, 2024 @ 10:51pm 
I know that in the discussions tab, there are instructions as to what to do if you have flying attachments to your pistols but where is the location of the mod folder? I don't think that this has been addressed yet.
rene.hanke 25 Sep, 2024 @ 11:30am 
Is it normal that when you want to equip attachments to pistols, there are no images in the item descriptions? Iridar's Autopistol Overhaul has got these.

Additionally, the pistols do not get these little icons on the left side of their picture (Loadout menu) that show the equipped attachments which the Autopistol Overhaul provides as well.

Is this a bug or a known issue?

Any way to fix this?
Epic Dovahkiin 17 Sep, 2024 @ 2:55pm 
so for everyone having issues of floating visuals either do some ini tweaking in TPS (check discussions) or try clearing your user config
Kinsect 6 Nov, 2023 @ 5:41pm 
I've been getting that same issue as well with the floating rifle-like attachments
not only that but one of the wio scope rifle attachments clip into itself with the laser sight attachment and reaper scope
Jaylo 29 Aug, 2023 @ 12:43pm 
Same here.
What i am seeing is when using LWOTC and TPS, CNV, MG and presumably BM pistol attachements all show fine but LS and Coil attachments don't show up because these two tiers seem to be named differently between TPS. and LWOTC.

When adding this mod, LS and Coil pistol attachments now show up fine but some CNV, MG and presumably BM attachments are now displaced.
Raidar V. 24 Aug, 2023 @ 11:09am 
Yeah, after deleting and reinstalling the mods it should be patching, the mod has broken visuals.
Elster 17 Apr, 2023 @ 6:56am 
I can also confirm the reports of floating attachments on conventional and mag pistols (haven't unlocked beam yet). Doesn't seem to be affecting the TLP Visual Attachments Redux pistols, though, or the laser/coil pistols when I reskin them.
vulgar_monkey 10 Apr, 2023 @ 1:09pm 
Ok, looks like WIOs config was taking precedence over most slots (which makes sense and I shouldve thought of sooner), but confusingly wasnt applying to the bog-standard T1 pistol (the revolver), which I assume is being overwritten by the primary secondary mod/s,

Sorry for the comment spam! Hopefully might be of some use to others at least. :)
vulgar_monkey 10 Apr, 2023 @ 11:43am 
Ah, nm, the renamed TLP weapons are from the vis attachments REDUX. :)
Probably not related to the pistol thing then - sounds like that might be to do with Prototype Armory?
vulgar_monkey 10 Apr, 2023 @ 10:36am 
To confirm, I'v e recently been running into the same problem as below with displaced attachments under TPS, but have no such issue with regular PS. Assuming some sort of compatibility issue there - not sure if TPS updated recently?

Only other issue I am seeing re pistols is that the TLE pistol is listed as 'fully upgraded' by default and has no slots. I should note that all my TLE weapons are listed as 'xcom rifle/pistol/shotgun/etc' which iirc might be the result of another mod (I forget what vanilla stuff looks like now tbh, think they were originally named 'legacy' weapons right?), but all non-pistol TLE 'xcom' variants seem to have slots as usual.
Plemous 16 Mar, 2023 @ 12:58am 
Thanks for your work !
I'm encountering a visual bug : attachments are displayed "far" from the pistols on my campaign (ie. the suppressor floats in front of the gun, or the laser sight floats over it). Do you have any idea what might be causing it ? I'm using proficiency classes with TPS, dedicated pistol slot, and WIO. I think the problem appears for my gunslingers and phalanx (I'm not using pistols on other classes for now)
RakkoHug~<3 19 Nov, 2022 @ 10:40am 
Oh, Pardon me, Vee, What I meant was that rifle attachment shows up as well as pistol attachment simultaneously. Rifle part shows up floating in air. :)

So far it only seems to happen for Conventional pistol + repeater.
Veehementia  [author] 19 Nov, 2022 @ 7:14am 
@RakkoHug What do you mean "rifle repeater attachments"? As you can see in the screenshot, the conventional pistol uses the same rifle repeater model but scaled down to size. I don't see the issue?
RakkoHug~<3 18 Nov, 2022 @ 7:46pm 
Vee, I am getting what appears to be rifle repeater attachments on conventional pistols. Has there been a report previously?
Wolfram 11 Aug, 2022 @ 5:05pm 
does this also make attachments visible on autopistols?
Jess 4 Jul, 2022 @ 12:04am 
The update works great thanks a lot @Veehementia and @MrMister your a legend mate your fix for the primary secondary duplicates works too. Thanks a lot to both of you! :D
MrMister 3 Jul, 2022 @ 7:37am 
In any case, thank you for the update, I really apprecieate it!

If you reeeeaally wanted to you could re-release the mod to solve that TPS priority conflict, but that's a bit like getting a new flashlight when the old one's batteries stop working.
MrMister 3 Jul, 2022 @ 7:33am 
@Veehementia LS and CG pistols' visual upgrades now working great with both LWOTC and Dual Wielded Pistols, thanks!

The only problem with using the mods as-is now is that the duplicate misaligned attachements for vanilla tiers are back.

I'm 90% sure that the problem stems from this mod being older than True Primary Secondaries.

If I copy the 6 "-ArchetypeReplacements" lines from your XComTruePrimarySecondaries.ini into another, younger-than-TPS, mod's XComTruePrimarySecondaries.ini, like Mod Jam's, without doing any changes to them, then the duplicate attachements are gone and it works fine.

I've tried any and all combinations of unsubbing, resubbing and ini purging I could think of, since you say the subscription order matters, but alas.
Veehementia  [author] 3 Jul, 2022 @ 6:00am 
@MrMister Update is up.
Veehementia  [author] 3 Jul, 2022 @ 5:52am 
@MrMister K. Should be up in a matter of minutes. Also doing some much needed cleanup of the code + fixing Laser pistol animation issue.
MrMister 3 Jul, 2022 @ 5:38am 
Yep, that should do it. You're missing the closing parenthesis though.

Just for reference, here it is copypasted from my working config:

+ArchetypeReplacements=(TemplateName=Pistol_CV, GameArchetype="Conv.Archetype.WP_Pistol_CV", COPY_DONOR_ATTACHMENTS=True, HIDE_ACCEPTOR_ATTACHMENTS=True)
Jess 3 Jul, 2022 @ 5:03am 
@MrMister
So it should look like this?

+ArchetypeReplacements=(TemplateName=Pistol_CV, GameArchetype="Conv.Archetype.WP_Pistol_CV", NumUpgradeSlots=1)COPY_DONOR_ATTACHMENTS=True HIDE_ACCEPTOR_ATTACHMENTS=True

Sorry im bad at this sort of thing
MrMister 3 Jul, 2022 @ 4:23am 
This should not create any problems for players without LWOTC. As proof to this claim, I see that you already did this very thing but for "Pistol_CL", to account for whatever coilgun tier mod out there uses the _CL naming convention for coils instead of _CG, and that hasn't caused any problems for players without the Pistol_CL template, has it?

I've tried doing this myself to avoid annoying you, but I can't manage to get modbuddy to rebuild your scripts.


Soooo could you please do this little itty bitey update please? If you want I can even provide you with the changed full contents of the file so you just have to copypaste them.
MrMister 3 Jul, 2022 @ 4:23am 
Hey @Veehementia , the reason one can't simply use WSR to make the attachements show up in LWOTC's laser and coil pistols is that the Pisto_LS and Pistol_CG templates are never created in a proper LWOTC installation.

What I think could work is if you duplicate every line in X2DownloadableContentInfo_WOTC_Pistol_Attachments.uc that references "Pistol_LS" and "Pistol_CG" templates, and replace these terms in the new lines with "LWPistol_LS" and "LWPistol_CG".
MrMister 3 Jul, 2022 @ 2:13am 
@Jess not the laser and cg yet, no.
Jess 3 Jul, 2022 @ 1:02am 
@MrMister
Thanks mate ill give that a go, do you know how to get it to work with LWOTC?
MrMister 2 Jul, 2022 @ 3:36pm 
FYI, all you need to do to make it work with Dual Wielded Pistols is add the COPY_DONOR_ATTACHMENTS=True and HIDE_ACCEPTOR_ATTACHMENTS=True flags to all six +ArchetypeReplacements lines in XComTruePrimarySecondaries.ini. I've tested this in a LWOTC Mod Jam environment and now vanilla-tier pistols use these mod's visuals correctly.

The problem was that it adds the new attachements without removing the old ones.

I don't think adding those flags would affect non-DualWieldedPistols users, so if you want you can update the mod and add those flags by default, and you'll stop further comments about this problem.
Jess 2 Jul, 2022 @ 2:05am 
Can you please update this to work with LWOTC? Ive tried getting it to work myself but havent had any luck at all, from what people say in the comments its not compatible with dual pistols either.
onestrongbow GocleCD 26 Jun, 2022 @ 5:59pm 
oh my bad , it's because of dual pistols that uses their own attachments too
onestrongbow GocleCD 26 Jun, 2022 @ 5:18pm 
same as @brandon
brandon980604 10 Mar, 2022 @ 12:42pm 
Attachments spawn away from the pistol for some reason and I did follow the instructions. Could it be a mood conflict?
Zoinho1 16 Nov, 2021 @ 9:15am 
Could you do visual attachments for Spark cannon too?
aciel.samael 14 Sep, 2021 @ 1:09pm 
Understood, Thank you for the confirmation.
Veehementia  [author] 14 Sep, 2021 @ 1:51am 
aciel.samael No. The only thing you can do is equip attachments while a pistol is set up as a secondary/DPS weapon and then see if you can put the already modified gun into your US.
aciel.samael 13 Sep, 2021 @ 8:13pm 
Didn't see it mentioned, but is there a way to get these to work with Utility Slot Sidearms [WOTC]?
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1194081262
Jaylo 19 Mar, 2021 @ 11:46am 
@Veehementia Would these be the correct entries for WSR?

+WEAPON_REPLACEMENT=(ACCEPTOR_TEMPLATE=LWPistol_LS, DONOR_TEMPLATE=Pistol_LS, COPY_DONOR_ATTACHMENTS=true)
+WEAPON_REPLACEMENT=(ACCEPTOR_TEMPLATE=LWPistol_LS_Primary, DONOR_TEMPLATE=Pistol_LS_Primary, COPY_DONOR_ATTACHMENTS=true)
+WEAPON_REPLACEMENT=(ACCEPTOR_TEMPLATE=LWPistol_CG, DONOR_TEMPLATE=Pistol_CG, COPY_DONOR_ATTACHMENTS=true)
+WEAPON_REPLACEMENT=(ACCEPTOR_TEMPLATE=LWPistol_CG_Primary, DONOR_TEMPLATE=Pistol_CG_Primary, COPY_DONOR_ATTACHMENTS=true)
Veehementia  [author] 19 Mar, 2021 @ 10:52am 
@Jaylo I do not plan to update any of my mods for LWOTC. You can however use WSR to fix this by swapping the "LWPistol_LS" and "LWPistol_CG" templates with their normal counterparts (PIstol_LS, Pistol_CG)
Jaylo 19 Mar, 2021 @ 7:20am 
Would it be possible to update this for the latest LWOTC as laser and coil pistols are now named "LWPistol_LS" and "LWPistol_CG" and not Pistol_LS, Pistol_CG anymore.
Wet Dog Squad 23 Nov, 2020 @ 11:14am 
Just your mod that adds visuals to Shiremct's Overhaul, and Dual Wielded Pisto—
...oh.

I just checked the description for the Dual Wielding mod and apparently it adds visual attachments to pistols, I didn't know that. RIP, thanks for helping me see the obvious.
Veehementia  [author] 23 Nov, 2020 @ 10:25am 
@Lynry sounds like a mod conflict to me. Do you have any other mods that add visual attachments for pistols?
Wet Dog Squad 23 Nov, 2020 @ 9:30am 
I'm getting a weird bug where the conventional pistol is using the coil pistol's upgrade graphics, and they're all really displaced (the expanded magazine and repeater, for example, are floating in front of the gun and the stock is clipping through the revolver's grip). I've encountered this bug on three separate fresh installs (one of which was on an entirely different computer) and I can't figure out what's causing it.
SoloCross 15 Nov, 2020 @ 9:14pm 
Is there a way to make certain attachments unequippable? Wanna do that to Shiremct´s Bipods cause Bipods on a pistol is a bit silly and they have no visual anyway.
Aerodious 4 Nov, 2020 @ 6:37am 
@Veehementia
Thanks for the quick response!
I'll go with your "Better Visual Attachments" and make the configuration. I appreciate the list of options and detailed run down.

Peace
Veehementia  [author] 4 Nov, 2020 @ 4:35am 
@Aerodius
Theoretically, it would be possible to add the function to disable components. But I won't do for several reasons:
1 - You can do it yourself via WSR if you so desire.
2 - I set the TLP DLC as a requirement for a reason. It means it's needed.
3 - There are other versions of this mod that fulfill the same purpose, made by me. Look at "Complete Pistols Overhaul" (of which you can disable the stat changes to only have the attachments show up) or "Better Visual Attachments for Primary Secondaries" (which you can configure to also affect normal pistols via WSR) (2/2)
Veehementia  [author] 4 Nov, 2020 @ 4:34am 
@Aerodious
So. The "strange light purple hue" you mention is the game failing to find (and load) textures. Which is likely since you do not have the TLP DLC, which is the one certain models pull the textures from. It's not a bug, you're missing a requirement.

The reflex is partly my mistake. Its textures are taken from the Alien Hunters DLC, which I forgot to add as a requirement when I added those in later down the road. That's my bad, sincere apologies. I'll correct the mistake now. (1/2)