Something funky is going on with 3.1.4. When I change values and reload my vanilla values go NUTS. I did about 5 reload while redoing the config and found that my vanilla values were up in the millions! HALP.
Otherwise, thanks! This is an awesome mod!!
Multiplier Not Multiplying, Vanilla Values Muliplying every reloadFixed
Can anyone else reproduce? I confirmed, under multiple scenarios that this issue doesn't happen in v3.1.4 on my local server. I need confirmation, because I can't replicate. And I want everyone reporting to be 110% sure they're using v3.1.4, or I'll waste my time fixing a bug that doesn't exist.
I see the same as OP on my server
Also the multipliers arent working. Ive set resources to 100000, but hqm is still only 1
Try setting a proper modifier, like 10, 20 or 50. Does your config reflect the category multiplier? Did you restart? Are you sure your using the latest version?Btw @Mynus doesn't matter. VanillaStackSize value can be whatever. Hopefully changes in next update fix it. Next server restart they'll be repopulated with normal values. You can check the data file vanilla-defaults.json if you need the reference in the meantime.
Its pretty standard.. Tried removing all config files and reload the plugin.
This is the config file from the config folder:
{
"RevertStackSizesToVanillaOnUnload": true,
"AllowStackingItemsWithDurability": true,
"HidePrefixWithPluginNameInMessages": false,
"GlobalStackMultiplier": 1,
"CategoryStackMultipliers": {
"Weapon": 1,
"Construction": 1,
"Items": 1,
"Resources": 100,
"Attire": 1,
"Tool": 1,
"Medical": 1,
"Food": 1,
"Ammunition": 1,
"Traps": 1,
"Misc": 1,
"All": 1,
"Common": 1,
"Component": 1,
"Search": 1,
"Favourite": 1,
"Electrical": 1,
"Fun": 1
},
"IndividualItemStackMultipliers": {},
"IndividualItemStackHardLimits": {},
"VersionNumber": {
"Major": 3,
"Minor": 1,
"Patch": 4
}
}This is part of the config file in the data folder:
{
"ItemId": -1581843485,
"Shortname": "sulfur",
"HasDurability": false,
"VanillaStackSize": 100000000,
"CustomStackSize": 0
},
{
"ItemId": 1523195708,
"Shortname": "targeting.computer",
"HasDurability": false,
"VanillaStackSize": 6400000,
"CustomStackSize": 0
},
{
"ItemId": -1779180711,
"Shortname": "water",
"HasDurability": false,
"VanillaStackSize": 1,
"CustomStackSize": 0
},
{
"ItemId": 2048317869,
"Shortname": "skull.wolf",
"HasDurability": false,
"VanillaStackSize": 100000,
"CustomStackSize": 0
},
{
"ItemId": -151838493,
"Shortname": "wood",
"HasDurability": false,
"VanillaStackSize": 100000000,
"CustomStackSize": 0
}
],The vanilla stack size file:
"mask.balaclava": 1,
"mask.bandana": 1,
"maxhealthtea": 1000000,
"maxhealthtea.advanced": 1000000,
"maxhealthtea.pure": 1000000,
"meat.boar": 2000000,
"meat.pork.burned": 2000000,
"meat.pork.cooked": 2000000,
"metal.facemask": 1,
"metal.fragments": 100000000,
"metal.ore": 100000000,
"metal.plate.torso": 1,
"metal.refined": 10000000,
"metalblade": 2000000,
"metalpipe": 2000000,
"metalspring": 2000000,
"minihelicopter.repair": 1, You're saying, a multiplier of 100k is standard? It's standard for servers to have a stone stack rate of 100,000,000 million? Must be one hell of a gather rate. Only issue I see in anything you posted is the VanillaStackSize, which is mistakenly updated on plugin reload (because your vanilla defaults file I'm assuming hasn't generated? Unless there's something else I've missed, I've got a fix ready I have to test I can check).
I can tell your 100,000 multiplier is working correctly, because when the plugin is hotloaded it sets VanillaStackSize to the games currently defined stack size for that item, regardless of if it's actually vanilla stackrate, until you restart your server so the plugin can read the actual vanilla default stack size which is only available during server start. VanillaStackSize being huge has no side effect except stack sizes will be reverted incorrect if the plugin is unloaded.
Wood should be stacking just fine.
lol, no.. I used your plugin for quite some time and set resources to 100k multiplier.
Before copying parts of the config files. I unloaded the plugin, removed all config files in plugins and data related to stacksizecontroller.
Loaded back in the plugin and thats what came out of it.
Only thing i changed is the 100 multiplier in the config file on top.
So 100 million is coming some where else, no clue where.. Gather rate is 3x.
The vanilla default file is the one in the bottom. It gets generated on load, but all messed up.
Everything is stacking, but to insane numbers.
So you say a restart is going to fix the vanilla default file?
I removed the old version from my server, did a server restart, added v3.1.4 and set the multiplier to 2 for resources. Wood stacked to 2,000 then I set it to 3, it stacked to 3,000 then I set it back to 2 and it went back down to 2,000. Seems to be working fine for me. I seem to be having a few minor issues but I'm gonna wait till after the next server restart to see if it resolves on it's own.
Gotcha thanks :)
Might be misconfiguration for me then..
The 100 million was coming from you setting a multiplier of 100,000, which multiples the vanilla stack of 1,000 by 100,000. A multiplier is not the same as a hard limit
Confirmed working as intended, configured incorrectly.
I hadn't changed the config yet and every time I reloaded the plugin vanilla sizes multiplied. I'll try it again.
A good plugin. Due to a bug, I can't return the stacks to the standard state, now I have everything for 5 000 000. Successful update.
UPD: rollback to version 2.0.4 on which everything works fine
So after re-downloading, reinstalling and trying again with minimal changes, I had to remove it from my server. It was causing some things to not stack at all, and all other to only stack to vinally no matter what I set the multipliers to. For example bandages: I set medical to 10 saved and reloaded the mod. Nothing changed. Still only stacks to 3.
I don't understand what's changed. I've used this mod for years.
I am getting the same issues as OP and others have posted.
1) Mod loads calmly, no exceptions or errors reported.
2) console commands succesfully update the config file
3) oxide.reload StackSizeController does not work
4) oxide.unload StackSizeController then oxide.reload StackSizeController has no effect
5) We've attempted multiple restarts, server is setup for daily restart and I've done by hand while focusing on this
6) Oddly enough, when we started the server Thursday, this was one of the first mods I loaded. and it worked.
Am currently running or attemping to run:
C:\rustserver\oxide\plugins>dir /b
Authentication.cs
Backpacks.cs
BuildingWorkbench.cs
DangerousTreasures.cs
FuelGauge.cs
FurnaceSplitter.cs
Inbound.cs
InfoPanel.cs
NoDecay.cs
Pets.cs
RaidableBases.cs
StackSizeController.cs
VehicleLicence.cs
ZLevelsRemastered.cs
I am going to unload mods and see if I can find a problematic one...
Hello, i like your plugin a lot, have been using it for years now. My issue is, since update of march 2021, moving water between containers kicks people off the server. What am i doing wrong? When i managed to find some sort of fix, put the general sstacks to 2, the give/take buttons work in reverse. Thank you for your reply/help.
- 1
- 2