Jump to content

Stack Modifier Bug ... increased sizes on plugin reload.

Can't Reproduce 2.2.1

HighOnTek
HighOnTek

Posted

Khan,

When your plugin is reloaded, its adding another set modifier to the existing one.

Example: I run a 3x server, I use 3x stacks. Ammo: Rockets would be stack 9, which works on first install. However I am finding that if I do a oxide.reload * or oxide.reload StackModifier ... the new stack size becomes 18, I do again it becomes 27. When you physically look at the GUI for stack modifier it shows that it should be 9, however this is not the case when you stack in inventory... it is 27, and if I reload again it would become 36 and so on, so forth,

It does not do this for server restarts, just for manual reloads so its an odd one. Any idea why, and can you code it in such a way that on reload it basically resets stacks to what they've been set to in the GUI.

Khan

Posted (edited)

Are you sure their isn't like a plugin conflict of some kind? Have you tested this with all other plugins unloaded & then reloading stackmodifier ?

Edited by Khan
HighOnTek

Posted

I don't have any other plugin that modifies stacks, so not sure why another plugin would make this one restack another set stack, on the last stack just by reloading this plugin. Are you aware of any other plugins that can cause conflicts with yours?

Arnolds Hemmelis

Posted (edited)

After restart Stacks resets to default  & this section not working 

 "Category Stack Multipliers": {

    "Attire": 1,

    "Misc": 1,

    "Items": 1,

    "Component": 1,

    "Ammunition": 2,

    "Construction": 5,

    "Traps": 5,

    "Electrical": 5,

    "Fun": 5,

    "Food": 10,

    "Resources": 10,

    "Tool": 1,

    "Weapon": 1,

    "Medical": 10

Edited by Arnolds Hemmelis
HighOnTek

Posted

Khan I have a NEW server, nothing else on it yet ... installed StackModifier and sure enough as I am tweaking stacks and reloading your plugin it is stacking stack sizes in game, but not in the settings.

Example: 3x server

Wood shows stack size of 3000 because I've set the category resources to 3 modifier... but when I reloaded the plugin a couple times, now I have a stack size of 9000 in game, but in the GUI it still shows stack should be 3000. This is clearly broken bud, and using stackmodifier.reset did nothing ... I even unloaded the plugin, reloaded and my stack sizes are pooched even without this plugin.  I noticed in your config you removed the REVERT TO VANILLA option, I even tried adding it manually and it did nothing.

Definitely warrants further investigation bud.

Khan

Posted

You'd have to provide the config you've setup as I am un-able to re-produce any such issues.

+ I only support oxide so if you are using carbon it will not work & I don't support it currently.

Khan

Posted

Changed Status from Pending to Can't Reproduce

HighOnTek

Posted

StackModifier.json

Just load your plugin, set it up as normal ... then reload it in console a few times... check your set stack sizes. You will see it go from 3x (if that's what you started with) to 6x, 9x, 12x, 15x ... it will jump in increments of 3 with each reload. I have to apply your update sometime today, I'll let you know how that goes and if I have same problem because will require a reload ... not a restart, but a plugin reload.

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.