XCOM 2
Configure Upgrade Slots
282 Comments
Qurila 27 Feb @ 3:58pm 
With the mod it is no longer possible to place upgrades in the Spark Incinerators from Iridar's

SPARK Arsenal 3.2 (https://sp.zhabite.com/sharedfiles/filedetails/?id=2127166233&searchtext=iridar+spark)

This is probably due to the adjustments that the vanilla upgrades should only be possible for ranged weapons.

I have tried to remove parts of the mod that I think are responsible for the change to the upgrades, but without success.
Ajoule 23 Dec, 2024 @ 8:34pm 
it seems this mod no longer working or at least i couldnt get to work. it used to work before the update tho
lichen93 21 Oct, 2024 @ 6:58am 
is this compatible with loot mod?
MadMonkee10 4 Sep, 2024 @ 8:26pm 
can you add compatibility for MCM?
Dood! 17 Apr, 2024 @ 12:08am 
@Gibbler Thank you for your post. That bit of black magic finally got this to work for me and I can give melee weapons and shields 3 upgrade slots to match the LWOTC firearms.
Dogforeyals 27 Sep, 2023 @ 6:04am 
Hi guys, I may sound ignorant here (not really a tech savvy guy) I went to the config folder and I don't see the XComUpgradeSlots.ini file, maybe I'm in the wrong folder... I hope you guys can guide me. TIA
Svarty 28 Aug, 2023 @ 6:39pm 
Thanks @RustyDios :D
RustyDios 28 Aug, 2023 @ 6:28pm 
This mod will never be able to give Armour upgrade slots. It just isn't set up for it.

For that you want, maybe, Tesla's Armour Modules mod .. and a cursory glance says those name look okay
Svarty 28 Aug, 2023 @ 5:21pm 
Are these armour names correct? It doesn't seem to be working. Do I need to restart my Campaign?

GrenadierKevlarArmor
KevlarArmor
PsiOperativeKevlarArmor
RangerKevlarArmor
ReaperArmor
SharpshooterKevlarArmor
SkirmisherArmor
SparkArmor
SpecialistKevlarArmor
TemplarArmor

GrenadierPlatedArmor
HeavyPlatedArmor
LightPlatedArmor
MediumPlatedArmor
PlatedReaperArmor
PlatedSkirmisherArmor
PlatedSparkArmor
PlatedTemplarArmor
PsiOperativePlatedArmor
RangerPlatedArmor
SharpshooterPlatedArmor
SpecialistPlatedArmor

GrenadierPoweredArmor
HeavyPoweredArmor
LightPoweredArmor
MediumPoweredArmor
PoweredReaperArmor
PoweredSkirmisherArmor
PoweredSparkArmor
PoweredTemplarArmor
PsiOperativePoweredArmor
RangerPoweredArmor
SharpshooterPoweredArmor
SpecialistPoweredArmor

HeavyAlienArmor
HeavyAlienArmorMk2
LightAlienArmor
LightAlienArmorMk2
MediumAlienArmor
MediumAlienArmorMk2
Gibbler 22 Aug, 2023 @ 3:12am 
There's probably a better way to do this but copying this mod and adding it to a local file makes it load after all workshop mods so you can run this with lwotc without having to perform some voodoo magic.

Simply copy this mod from your steam workshop folder:

C: > Program Files (x86) > Steam > steamapps > workshop > content > 26850 >1171964288. That's the Configure Item Mod folder so copy that whole folder.

Open Documents > My Games > Xcom 2 WOTC > Xcom Game and create a folder. Name it anything you want and paste the copied mod into it. Im not sure if adding a z to the name makes it load last based on name but I did it anyway.
Gibbler 22 Aug, 2023 @ 3:12am 
Now open up AML and open up on the top left Options > Settings. Look for the box with "Mod Directories" and click Add and go to the folder you created and click it once then press "Select Folder". You should now have to close and restart AML but if it worked then you should have your copied mod show up in the New mod tab. Just enable it. I deleted the mod I copied so it wouldn't show it has duplicate mods.

I booted up the game and now all the items that didn't have upgrade slots now do have them. I cannot guarantee that doing this won't cause some unforeseen horrible consequences to happen to the game so tread lightly.
Mad_Monk 4 Aug, 2023 @ 1:12pm 
Is there a easy-ish way to make this mod load last ? That way its changes would overwrite everything
Rukifish 28 Jun, 2023 @ 3:52am 
is it possible to give rocket launchers grenade launcher upgrades with this mod ? will the upgrades actually take effect, like bonus explosion radius ?
RustyDios 7 Apr, 2023 @ 8:22am 
This mod can do that, it is possible your configs got reset
Zimmerson 7 Apr, 2023 @ 7:59am 
I swore this used to work for the bolt caster a while back, but now it doesn't?

Anyone know of a mod to allow the bolt caster to have attachments?
RustyDios 28 Mar, 2023 @ 3:15am 
Unfortunately that is a change needed to the code of this mod to allow melee weapons to have stuff again.

Alternatively (and my personal suggestion) there is a great Melee Attachments mod
Karamethien 28 Mar, 2023 @ 2:28am 
Does anyone know how not to disable gun mods for melee weapons? In the standard game, there are only gun mods. So melee weapons even with slots cannot add anything.
Zanten 17 Feb, 2023 @ 3:38am 
Drask posted this page 3 And it worked fine for me !

I found out where LWotC's weapon slots are configured.

Go to XcomLW_Overhaul.ini, found in C:\Program Files (x86)\Steam\steamapps\workshop\content\268500\2683996590\Config. They start being listed as:

+ItemTable=(ItemTemplateName="AssaultRifle_CV", Slots=3, Starting=true, Infinite=true, Buildable=false)

Should be able to manually change them there by editing the "Slots" value. Armor and melee weapons are also listed there. I just tested this and it works.

Works perfectly well for me Thx Drask
BOT Shit at CS 4 Jan, 2023 @ 12:31pm 
Does anyone know if this works with Grimy's Loot Mod/TLM? I think these mods already mess with upgrade slots for some items and I've been having some trouble getting this mod working for new items and I wondered if there might be a conflict.
hdaniel.1104 3 Dec, 2022 @ 9:39pm 
For the people looking the mod number is 1171964288
RustyDios 6 Nov, 2022 @ 3:22pm 
Not in this mod, but that should be in the mod that gives you armour modules
孟德擒龙 6 Nov, 2022 @ 1:09am 
Is there a way to config the number of armor upgrade slots?
techstepman 22 Oct, 2022 @ 2:36pm 
mod workshop number?
Noname 18 Oct, 2022 @ 6:12pm 
How can i RESTRICT equipping some attachment types on some weapons?
FiftyKal 13 Oct, 2022 @ 9:43am 
@small loan of a million dollars
Same issue this side, tried for Shields & combat knives as well and nothing working.

I have Slots for Spark shields from another Mod and it's still allowing gun mods on the shields there so the looks like both this mod and the Melee attachments mod not working or being blocked by another mod.
small loan of a million dollars 14 Sep, 2022 @ 11:27am 
i'm trying to use this together with robojumper's Squad Select "show upgrade only for primaries" option unchecked, and the Melee attachments mod, but i just can't get the attachment slots for the melee weapons to show up. i've made sure to add the template names for all tiers of melee to the config too. can anyone more experienced give any pointers
Proxy 14 Sep, 2022 @ 10:13am 
Also it won't let me add extra upgrade slots for pistols
Proxy 4 Sep, 2022 @ 12:49pm 
Does it work on mod weapons like Resistance firearms and weapons bundle, etc
mR.MaG0o 25 Aug, 2022 @ 9:44am 
@RustyDios
Thank you so much for a thoroughly reply, kind sir.
RustyDios 25 Aug, 2022 @ 3:52am 
The Vanilla UI scrolls at the 6+ number of slots, and yes the 5th slot sits behind the buttons
.. I highly recommend the Improved Weapon Upgrade UI mod, which fixes this issue. (And can be added mid-campaign)

There is a [vanilla un-modded attachments] max combination of 6 attachments that a weapon can have; Hair Trigger, Stock, Expanded Mag, Auto-Loader, Repeater, Scope/Laser Sight.

A weapon with 4 max slots will likely end up with 6 by the end of a campaign. This is due to breakthrough/research/continent bonus/card adding 1 slot to ALL weapons of the TIER and more breakthrough research for each individual weapon category TYPE.

Therefore more than 4 slots in this config is not needed. Unless the weapon has special upgrades (like you are using PexM, TLM, Melee/Shield Attachments, Modded Attachments)
mR.MaG0o 25 Aug, 2022 @ 12:53am 
Hey guys,
I'm finally back for a WotC run and about this mod I was wondering: In the past we had a UI checker for weapons going past 4 upgradable slots, the UI would add a scroll bar.
Right now the UI kinda breaks, the slot goes over the name and other customization options.
Since I'm just back, like just 100hours deep, is there any mod that fixes that minor problem?
Is there any "coding" reasons now why I don't see people going past 4 weapon slots?
Thanks all, happy hunting.
Frums McNoodles 11 Jun, 2022 @ 11:37am 
Any way to re-enable adding base game attachments to secondary weapons?
RustyDios 13 May, 2022 @ 1:05am 
? It already works with WOTC ?

Did you maybe miss an "L" from that ... in which case this will likely never work with LWOTC because LWOTC has it's own file for doing stuff like this, something like XComTemplateMods.. which resets any/all changes this mod might make
tobydimdiy 13 May, 2022 @ 1:01am 
Anybody can work out the way to make it works again with WOTC ?
jdc0218 30 Apr, 2022 @ 5:10pm 
\steamapps\workshop\content\268500\1171964288\Config\XComUpgradeSlots.ini

+SlotConfig = (TemplateName=AssaultRifle_CV, NumUpgradeSlots=4)

+SlotConfig = (TemplateName=VEKTORRIFLE_CV, NumUpgradeSlots=4)

+SlotConfig = (TemplateName=BULLPUP_CV, NumUpgradeSlots=4)

+SlotConfig = (TemplateName=WRISTBLADE_CV, NumUpgradeSlots=4)

+SlotConfig = (TemplateName=Cannon_CV, NumUpgradeSlots=4)

+SlotConfig = (TemplateName=Shotgun_CV, NumUpgradeSlots=4)

+SlotConfig = (TemplateName=SniperRifle_CV, NumUpgradeSlots=4)

+SlotConfig = (TemplateName=SparkRifle_CV, NumUpgradeSlots=4)
Garris 16 Feb, 2022 @ 6:40am 
How to run it on wotc? It does not work, and what is the path to ini if there is something you need to prescribe yourself?
MetroM4 15 Feb, 2022 @ 4:32am 
@James Stone I had the same issue too. Turns out yeah Primary Secondaries does conflict with this. Even if it wasn't stated in AML.
moikka434 7 Feb, 2022 @ 9:55am 
@Drask you are the MVP of my week, thanks
Drask 7 Feb, 2022 @ 7:20am 
I found out where LWotC's weapon slots are configured.

Go to XcomLW_Overhaul.ini, found in C:\Program Files (x86)\Steam\steamapps\workshop\content\268500\2683996590\Config. They start being listed as:

+ItemTable=(ItemTemplateName="AssaultRifle_CV", Slots=3, Starting=true, Infinite=true, Buildable=false)

Should be able to manually change them there by editing the "Slots" value. Armor and melee weapons are also listed there. I just tested this and it works.
James Stone 6 Feb, 2022 @ 1:36pm 
Alright, final update since I really don't get what is wrong: What I said before turns out wasn't correct. Pistols and Shields get the upgrade slots, but the Alien Hunter weapons don't, despite being in the .ini. Something tells me this might be a problematic interaction with Primary Secondaries but at this point I don't really know
James Stone 6 Feb, 2022 @ 1:31pm 
Still not sure if it isn't ABW doing it, but with deeper research it shouldn't because it doesn't really change melee weapons. I've added the +slotconfig to all melee weapons and still nothing. Pistols and shields, it's fine, but anything melee refuses to be upgraded
James Stone 6 Feb, 2022 @ 6:50am 
I'm not getting any mod slots for swords, shields or pistols. I suspect this is because A Better Weaponry is overriding it. What can I do to make Configure Weapon Slots take precedence over A Better Weaponry?
RustyDios 1 Feb, 2022 @ 11:37am 
@Karma
Why it doesn't work with LWOTC ? There could be a myriad of reasons considering the size and scope of the overhaul, LWOTC could be changing any number of things to make this not work.

I don't play LWOTC myself so have never looked into why it doesn't work. Iwould suggest contacting the fine members of the LWOTC Discord for guidance.
CRUNCH 1 Feb, 2022 @ 11:29am 
@RustyDios, may be u now why its doesnt work?(:xcom2psiop:
crow.bait 31 Jan, 2022 @ 4:39am 
And the Wiki threads on Reddit are very convenient. I did some 300+ mods for L4D2 and it was a real challenge to get info on what was to be done. And thanks again for the correction.
RustyDios 31 Jan, 2022 @ 2:20am 
I'm glad you got it working, using the correct template names :)
Have fun getting weapon attachments for your stuff.
crow.bait 31 Jan, 2022 @ 2:18am 
And thanks for correction. I was wrong.
crow.bait 31 Jan, 2022 @ 2:15am 
...for Iridar's excellent Bayonet.
crow.bait 31 Jan, 2022 @ 2:14am 
Yes.

+SlotConfig = (TemplateName=Sword_CV, NumUpgradeSlots=4)
+SlotConfig = (TemplateName=Sword_MG, NumUpgradeSlots=4)
+SlotConfig = (TemplateName=Sword_BM, NumUpgradeSlots=4)

That seems to do the trick.

Thanks RustyDios.

I use the mod to add a slot for that Iridar's excellent Bayonet.
RustyDios 31 Jan, 2022 @ 1:32am 
if you want further reading I refer to this article on the modding wiki: https://www.reddit.com/r/xcom2mods/wiki/index/template_names

I was only trying to help you :)