• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Impossible to stack flashlights now?

FramFramson

Well-known member
I've run my own stack size mod which makes a few modest changes here and there since A21 and back then it had stacking flashlights and at some point in 1.0 that stopped working.

Here's the line I use:

<set xpath="/items/item[@name='meleeToolFlashlight02']/property[@name='Stacknumber']/@value">5</set> <!-- Default 1 -->




As far as I can tell, the item is still called 'meleeToolFlashlight02', including that exact capitalization.

There are no errors when loading the mod. I've checked the config dump and the line appears to be applying correctly and without errors, as this line in the config dump shows:

<property name="Stacknumber" value="5">
<!--Attribute "value" replaced by: "MongCustom_Reasonable_Stack_Tweaks"-->
</property>




And yet, when you load the game, the flashlight simply will not stack. Others have tried and see the same results.

At first someone guessed that maybe it was because it's technically a melee item, yet torches stack in the vanilla game just fine??? This is baffling.

 
Does the flashlight's effect group have a "tiered=false" in the opening bit? If it doesn't that will prevent stacking. Not at pc to check but can later. 

 
Does the flashlight's effect group have a "tiered=false" in the opening bit? If it doesn't that will prevent stacking. Not at pc to check but can later. 
Yes it does

Code:
    <effect_group name="meleeToolFlashlight02" tiered="false">
 
Just checked, that group does, but there is a Power Attack effect group below it that doesn't. If you add the tiered="false" to it as well they will stack.


Would that disrupt anything else though?

I guess it would be okay because you specifically mean the power attack effect group within just the flashlight item code, correct?

 
Would that disrupt anything else though?

I guess it would be okay because you specifically mean the power attack effect group within just the flashlight item code, correct?
Yeah, it would only affect the flashlight, but it shouldn't really do anything other than allow stacking.

 
Back
Top