Weapons still not stacking

Just installed last version, L96's and M249's still not stacking at all, Had them stacking last wipe although very finicky, Also found that Riot helmets do not stack

  "ItemId": -778367295,
        "Shortname": "rifle.l96",
        "HasDurability": true,
        "VanillaStackSize": 1,
        "CustomStackSize": 50
      },
      {
        "ItemId": -1812555177,
        "Shortname": "rifle.lr300",
        "HasDurability": true,
        "VanillaStackSize": 1,
        "CustomStackSize": 20
      },
      {
        "ItemId": -2069578888,
        "Shortname": "lmg.m249",
        "HasDurability": true,
        "VanillaStackSize": 1,
        "CustomStackSize": 50
      },
      {​

I am still puzzled as to what the "search" catagory is for ??  and what happens when my "favourites" stacksize is set to *say 100 and i make a weapon or anything else with a higher or lower stacksize , does it change the stacksize or ignore it ?

The categories and items inside those categories (I think some were empty) are pulled directly from Rust. If the category is empty, Rust hasn't thrown any items in that category yet. If I'm understanding correctly you're asking what happens if you set in the data file one setting, then a hard limit for another, which takes priority, configuration individual hard limit is taken first, then datafile customstacksize, then individual multipliers followed by category hard limits and multipliers. I can check again, but I saw your post before about the m249. It's stacking without issues for me. And there's nothing that would prevent one gun from stacking but not the others.

Merged post

Just confirmed every main weapon, as well as riot helmets are stacking. I'm testing without any other plugins, do you have any plugins you think might be conflicting with it? Also are you reloading the plugin after modifying the datafile, I'm sure you are, but I did change things related to that a little bit. To be fair, I'm using config overrides. Can you try a config override and see if that works?

tHlIHWtfDG3im2q.jpg AnExiledGod

The categories and items inside those categories (I think some were empty) are pulled directly from Rust. If the category is empty, Rust hasn't thrown any items in that category yet. If I'm understanding correctly you're asking what happens if you set in the data file one setting, then a hard limit for another, which takes priority, configuration individual hard limit is taken first, then datafile customstacksize, then individual multipliers followed by category hard limits and multipliers. I can check again, but I saw your post before about the m249. It's stacking without issues for me. And there's nothing that would prevent one gun from stacking but not the others.

Merged post

Just confirmed every main weapon, as well as riot helmets are stacking. I'm testing without any other plugins, do you have any plugins you think might be conflicting with it? Also are you reloading the plugin after modifying the datafile, I'm sure you are, but I did change things related to that a little bit. To be fair, I'm using config overrides. Can you try a config override and see if that works?

After telling other people in posts that data files should always be updated/edited with the plugin unloaded (saved/then reload) f or many years, i think you might be right,  :)
the issue with stacking weapons has been there (randomly) since 2.0.4 version so i reverted back to the "0.2" version which seemed to fix it a  little,
I use CustomLoot (which arms/equips bots) which has no stacking options and BetterLoot which has also no stacking options, I tried setting the stack in the section as shown .

"IndividualItemStackMultipliers": {},
  "CategoryStackHardLimits": {
    "Weapon": 20,
    "Construction": 200,
    "Items": 1000,
    "Resources": 600000,
    "Attire": 100,
    "Tool": 500,
    "Medical": 500,
    "Food": 2000,
    "Ammunition": 1000,
    "Traps": 500,
    "Misc": 500,
    "All": 100,
    "Common": 100,
    "Component": 500,
    "Search": 100,
    "Favourite": 100,
    "Electrical": 20,
    "Fun": 0

                                                    

what do you mean by fix it a little? Does it sometimes stack, but sometimes doesn't? Forgot to mention, do the weapons have different durability? If the guns been fired even once, I believe that changes the durability value which doesn't permit stacking because it'd repair the guns. Otherwise I think it'd have to be a plugin hook conflict for it to work inconsistently.

F6zImABAZmSYJwE.jpg AnExiledGod

what do you mean by fix it a little? Does it sometimes stack, but sometimes doesn't? Forgot to mention, do the weapons have different durability? If the guns been fired even once, I believe that changes the durability value which doesn't permit stacking because it'd repair the guns. Otherwise I think it'd have to be a plugin hook conflict for it to work inconsistently.

Every problem (I) have with stacking has been endlessly repeated in posts , The problem with version 2.0.4 was that they would not stack at all (as well as some other items) So i reverted back to version 2.0.2 and which remedied the problem a little, Most items would stack but when it came to weapons some would always stack Ak47, Spas12, pistols, but Rocket launchers would not stack at all, M249's and L96's would not stack until i placed them in the backpack,  but sometimes would not stack in backpack but would stack in large chest, * dont forget these two weapons are not craftable so that might have something to do with it (?) ,
Now with the latest version : They (M249/L96/RocketLaunchers) are back to not stacking anywhere, all these weapons have not been fired, reloaded,used in any way but have been reclaimed from loot, airdrops, Guarded crates, NPC loot or dangerous treasure lootbox , Weapons with attachments (same) used to stack with no problems but now sometimes do not .
Now i find that some items have lost "health" when you pick them up and you have to repair them before stacking such as simple lights, test generators, jackhammers etc but once repaired there is no problem

**Just installed latest version and found an oddity , checked for stacking again with L96's and M249's , I tried to move one M249 to large chest and it didnt stack but when i moved another from the chest to inventory it unloaded and stacked but after repeated attempts with others it would not repeat this, I tried unloading them but still wont repeat and dont stack at all,



Merged post

I want to try adding those items to the individual hard limits section but keep getting error in json (something simple like me)
"IndividualItemStackHardLimits": {
		"ItemId": 1588298435,
		"Shortname": "rifle.bolt",
		"HasDurability": true,
		"VanillaStackSize": 1,
		"CustomStackSize": 50
	},
  {
		"ItemId": -1215753368,
		"Shortname": "flamethrower",
		"HasDurability": true,
		"VanillaStackSize": 1,
		"CustomStackSize": 5
	},
	{
		"ItemId": -1123473824,
		"Shortname": "multiplegrenadelauncher",
		"HasDurability": true,
		"VanillaStackSize": 1,
		"CustomStackSize": 100
	},
	{
		"ItemId": -778367295,
		"Shortname": "rifle.l96",
		"HasDurability": true,
		"VanillaStackSize": 1,
		"CustomStackSize": 50
	},
	{
		"ItemId": -1812555177,
		"Shortname": "rifle.lr300",
		"HasDurability": true,
		"VanillaStackSize": 1,
		"CustomStackSize": 20
	},
	{
		"ItemId": -2069578888,
		"Shortname": "lmg.m249",
		"HasDurability": true,
		"VanillaStackSize": 1,
		"CustomStackSize": 50
	},
	{
		"ItemId": 442886268,
		"Shortname": "rocket.launcher",
		"HasDurability": true,
		"VanillaStackSize": 1,
		"CustomStackSize": 20
	},
	{
		"ItemId": 528668503,
		"Shortname": "flameturret",
		"HasDurability": true,
		"VanillaStackSize": 1,
		"CustomStackSize": 50
	},
	{
		"ItemId": -282113991,
		"Shortname": "electric.simplelight",
		"HasDurability": true,
		"VanillaStackSize": 1,
		"CustomStackSize": 200
	}
}
"VersionNumber": {
	"Major": 3,
	"Minor": 2,
	"Patch": 1
}
}


Error: Parse error on line 54:
...omStackSize": 50	} {		"ItemId": -12157
----------------------^
Expecting 'EOF', '}', ',', ']', got '{

​

I'll have to test with storages again, but I think this has to be a plugin conflict. I have a few hundred plugins sitting around, ill load them all in the morning and see if I can reproduce.

Merged post

Individual item stack limits doesn't work that way. That's datafile stuff. Check the configuration example on the plugin page. It shows a item ID example. You can use a shortname instead if you want just wrap it in quotes.

Merged post

I'll try to improve description further and include some default individual stack limits, not sure what, maybe dummy entries.

ygjITG29XSFbHzO.jpg AnExiledGod

oI'll have to test with storages again, but I think this has to be a plugin conflict. I have a few hundred plugins sitting around, ill load them all in the morning and see if I can reproduce.

Merged post

Individual item stack limits doesn't work that way. That's datafile stuff. Check the configuration example on the plugin page. It shows a item ID example. You can use a shortname instead if you want just wrap it in quotes.

Merged post

I'll try to improve description further and include some default individual stack limits, not sure what, maybe dummy entries.

Ok i will try this out and see how it goes (validates ok)

{
  "RevertStackSizesToVanillaOnUnload": false,
  "AllowStackingItemsWithDurability": true,
  "HidePrefixWithPluginNameInMessages": false,
  "DisableDupeFixAndLeaveWeaponMagsAlone": false,
  "GlobalStackMultiplier": 1.0,
  "CategoryStackMultipliers": {
    "Weapon": 20.0,
    "Construction": 200.0,
    "Items": 1000.0,
    "Resources": 600000.0,
    "Attire": 100.0,
    "Tool": 500.0,
    "Medical": 500.0,
    "Food": 2000.0,
    "Ammunition": 1000.0,
    "Traps": 500.0,
    "Misc": 1000.0,
    "All": 1000.0,
    "Common": 100.0,
    "Component": 500.0,
    "Search": 1.0,
    "Favourite": 100.0,
    "Electrical": 20.0,
    "Fun": 1.0
  },
  "IndividualItemStackMultipliers": {},
  "CategoryStackHardLimits": {
    "Weapon": 20,
    "Construction": 200,
    "Items": 1000,
    "Resources": 600000,
    "Attire": 100,
    "Tool": 500,
    "Medical": 500,
    "Food": 2000,
    "Ammunition": 1000,
    "Traps": 500,
    "Misc": 500,
    "All": 100,
    "Common": 100,
    "Component": 500,
    "Search": 100,
    "Favourite": 100,
    "Electrical": 20,
    "Fun": 0
  },
  "IndividualItemStackHardLimits": {
    "electric.simplelight": 200,
    "flameturret": 50,
    "rocket.launcher": 20,
    "lmg.m249": 50,
    "rifle.lr300": 20,
    "rifle.l96": 50,
    "multiplegrenadelauncher": 100,
    "flamethrower": 5,
    "rifle.bolt": 50
  },
  "VersionNumber": {
    "Major": 3,
    "Minor": 2,
    "Patch": 1
  }
}


* had to edit previous example as i had the ".0" included in hard and individual stack numbers and although json accepted it "newtonsoft" error came up , but above example compiles ok and i managed to stack a few m249's, will see how it goes the rest of the night,

I'll play around with it and see if I can get that fixed in the next release.

BlkhfYnj1UIfZxj.jpg AnExiledGod

I'll play around with it and see if I can get that fixed in the next release.

M249's, L96's and Rocket launchers still dont stack, i am not sure if it because you cannot craft them as i used to stack them , i am checking for health when i try to stack them but unlike other items that will stack once health is restored they do not,

I tested stacking loot from at least 25 airdrops yesterday and found an anomoly !
I could successfully stack all m249's, L96's, Flame Turrets, Simple Lights and Multirocket launchers when i picked them up from airdrops, 5 signals = 10-20 pods so altogether between 50-100 pods,  But
When picking them up from loot (containers, npc's and bots) they would only occassionaly stack. when stacking into chests the weapons that were already stacked would stack with chest stacked items but unstacked single items would not form a stack in the chest or backpack,
It is kinda weird but though not urgent i thought it might be something others are encountering,

SRXmFaqbTd74w4Q.jpg pookins

I tested stacking loot from at least 25 airdrops yesterday and found an anomoly !
I could successfully stack all m249's, L96's, Flame Turrets, Simple Lights and Multirocket launchers when i picked them up from airdrops, 5 signals = 10-20 pods so altogether between 50-100 pods,  But
When picking them up from loot (containers, npc's and bots) they would only occassionaly stack. when stacking into chests the weapons that were already stacked would stack with chest stacked items but unstacked single items would not form a stack in the chest or backpack,
It is kinda weird but though not urgent i thought it might be something others are encountering,

Still the same after last update just picked up 6 flame turrets that would not stack so i recycled them and then created 6 replacements which stacked and was able to add to existing stack (?)