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

Flashlights not stacking

Jakmeister999

New member
I'm trying to update my Large Stack mod for Ver. 1.0. But for some reason, the flashlights won't stack when I change the Stacknumber. I can stack other tools such as paint brushes, wiring tools, even buckets, but not the flashlights. I just can't figure out why. Does anybody able to help?

Thanks heaps

 
I'm trying to update my Large Stack mod for Ver. 1.0. But for some reason, the flashlights won't stack when I change the Stacknumber. I can stack other tools such as paint brushes, wiring tools, even buckets, but not the flashlights. I just can't figure out why. Does anybody able to help?

Thanks heaps
Post your code that you are trying to change it and maybe we can see if you got an error somewhere there

 
Post your code that you are trying to change it and maybe we can see if you got an error somewhere there
<set xpath="/items/item[@name='meleeToolFlashlight02']/property[@name='Stacknumber']/@value">50</set>

It was the same code that works on A21, and I've checked multiple times that the item code for the flashlight is the same

 
Last edited by a moderator:
Post your code that you are trying to change it and maybe we can see if you got an error somewhere there


I straight up edited my items.xml file so it would stack to 10 and it also did not work

 
Last edited by a moderator:
I will check when I get home from work today (as I don't have the files in front of me).  The fact you can get other single items to stack means that you have the capability to do so in V1.0, but something is different with the flashlights now that prevent stacking.  Once I can open up the config files, I might be able to track down the difference.

 
Not sure if this will be big enough to see especially if on a phone.

Also what is affecting it may be in another file.

image.png

 
Last edited by a moderator:
Not sure if this will be big enough to see especially if on a phone.

Also what is affecting it may be in another file.


It's difficult to see even on a laptop - though that might be because my eyes are a lot older now.

I didn't see anything that jumped out at me, but it might be as you noted.  I will pull up the files when I get home to see if I notice anything (or maybe someone else with more experience sees this thread and provides input).  Heck, I will even do this before I start playing 7D2D  😉

 
Didn't test, but I'd bet it is because the Power Attack effect group isn't set to tiered=false like the other effect group.

 
Didn't test, but I'd bet it is because the Power Attack effect group isn't set to tiered=false like the other effect group.


You are 100% correct.  Adding tiered=false or even just removing the power attack effect group allows you to stack the item now

 
so instead of

<effect_group name="Power Attack">

is should be

<effect_group name="Power Attack" tiered="false">

?

 
Thank you so much for identifying the issue, but sorry to be a novice, how do I code it in a mod so it'll modify it for the game?  

 
Last edited by a moderator:
<setattribute xpath="//item[@name='meleeToolFlashlight02']/effect_group[@name='Power Attack']" name="tiered">false</setattribute>




Should work, but can't test right now at work

 
<setattribute xpath="//item[@name='meleeToolFlashlight02']/effect_group[@name='Power Attack']" name="tiered">false</setattribute>




Should work, but can't test right now at work
Yes. That seems to be working. Thank you so much for everyone's help. 🙂

 
Back
Top