XCOM 2
111 ratings
Inventory Slot Weight Toggler for LWOTC
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
146.895 KB
Nov 29, 2020 @ 10:31am
Sep 22, 2022 @ 5:48am
8 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Inventory Slot Weight Toggler for LWOTC

Description
I re-wrote basically this entire mod. Now it actually DOES something.

This mod is pretty small and basic in what it does, so maybe I can keep the description brief this time. Inventory Slot Weight Toggler will prevent the SmallItemWeight ability used by Long War of the Chosen from applying to any items in the Ammo Slot, Grenade Slot, Primary Weapon Slot, Secondary Weapon Slot, Spark Grenade Slot (used by Spark Arsenal), Auxiliary Slot (ditto), or Vest Slot (used by the Vest Slot mod). Each of those 7 can be toggled off, or back on again, in this mod's XComSlotOptions.ini. All of them are set to TRUE by default. This feature is implemented by an ability, "IgnoreSlotWeight", which is applied to all "Soldier" character templates using OPTC.

By default, the ability's icon is not visible in tactical, but the correct Mobility value will be. The Mobility value you see in the armory does NOT take this mod into consideration, do not be fooled by it. Making the correct Mobility value show in the armory is not something that is going to be possible at this time.

In addition to making things easier on your Grenadiers, Combat Engineers and Infantry, this will also allow you to use pistols in the Primary (or Secondary) slot without suffering the mobility penalty, assuming you have a mod that lets you do so, such as either version of Primary Secondaries. One could theoretically even add weight to other weapons that would fit in as primary slot, secondary slot OR pistol slot choices (Autopistols or Sawed-Off Shotguns perhaps), and they would only apply the weight penalty when in the pistol slot.

Long War of the Chosen is the only requirement. Don't ask me about a version for regular WOTC, as there would be no point (SmallItemWeight is a LW2/LWOTC only thing).

Credits:

- Favid for making the Extended Perk Pack and more specifically the Strong Back ability, which I used to re-write this mod.
- RustyDios for helping me make the code more efficient and helping me get rid of the ability icon in tactical.
- Clibanarius for suggesting the idea.
51 Comments
Tide Pod Connoisseur Feb 13 @ 4:59pm 
mod isn't working for me, I am going to manually edit the item weight in the LWOTC ini but just thought I would bring it to attention
SpookyJumpscare Sep 23, 2023 @ 7:01am 
Heyya @Alyfox, I actually found what is causing that issue for you! I've been doing a ton of digging to find it myself because it has been driving me nuts.
The change is actually in ModJam, likely for long war, if it's not that overwriting it then you are going to want to look for it in the config of true primary secondaries.

The ModJam overwrite is in... Config/True Primary Secondaries/XCom TruePrimarySecondaries.ini
And the base config for TruePrimarySecondaries is in.. Config/XCom TruePrimarySecondaries.ini (The bottom most one in the config list if you are using the AML)

This service being rendered I am now off to update the LWOTC thread in the actual TruePrimarySecondaries steam page
Alyfox Aug 22, 2023 @ 7:55pm 
Hullo! I am having an issue where having a Pistol in either/both Primary or Secondary slot (using TruePrimarySecondaries and Dual Wield Pistols) will give the -1 mobility (or -2 if a pistol in both slots, of course). I don't know if its a mod conflict somewhere or not, Ive been poking through various configs trying to figure this out, but since my "creating mods" experience is nil I feel kinda out of my element.

It has me wondering if maybe the way TPS modifies things is conflicting, but like I said no clue. I'm kinda tempted to just change pistol weights to 0 for the moment, but what I'd ideally like would be for having a pistol in the primary slot giving a mobility bonus, like an SMG does, but thats outside the scope of this mod. Right *now* I just want to get it to the point where they are not causing encumbrance in primary/secondary.

if there is further info I can provide, just let me know I'll do my best
Raf's Jun 17, 2023 @ 6:25pm 
Nvm found an old thread talking about it, it's XComLW_Overhaul.ini, search "item config", other wise use text replace to switch all "Weight=1" to "Weight=0".
Raf's Jun 17, 2023 @ 5:59pm 
"@Layth36 It's not a config thing. If you wanted to add utility slots, you might as well just change the weight value of every item to 0 (which is something you can do via config in LWOTC itself, and Mod Jam and whatever else you're running that uses LWOTC's SmallItemWeight system)."

Where would I find the settings file with the item weights? As far as I know LWOTC has like 50 ish config files, and utility slots is the main reason I found this mod.
VS-lockon May 23, 2023 @ 6:05am 
oh so it not ammo for soldiers sad not just Spark why i'm sad because it hard to get a ammo pocket for soldiers at best i get is three utility slots and 2 them filled with ammo clip so my soldiers can reload bc i wanted limited ammo the other slot for a shield vest that form Long War of the Chosen so it would be nice if i could fine a mod that made it a bit easier get ammo pocket right now only way i can get a ammo pocket is finding a weapon attachment or hoping my Soldier gets the part or if my Soldier get their leg shot off
Kiruka  [author] May 22, 2023 @ 9:44pm 
@captain_uzzaih Auxiliary Slot is from Iridar's Spark Arsenal mod.
VS-lockon May 22, 2023 @ 7:31am 
Auxiliary Slot where that mod?
Kiruka  [author] Jan 8, 2023 @ 4:50am 
Regarding armor reducing Mobility, the only one I can think of that does that is the Metion Battlesuit from the Custodian Pack, and it doesn't use SmallItemWeight for that function.
Layth36 Nov 6, 2022 @ 7:33am 
@4rrakis They don't? That's odd because my soldiers have -1 mobility and I thought the armor was the reason since I already disabled all utility items' weights. Hmm guess I'll have to look into it again, I might've missed something..