Hi,
After this new update hit my server got some weird bug with ammunition researching. Somehow ammunition research gives me between 50k and 200k ammo bp's. It depends on which ammo. Tested on pistol bullet which was 50k and rocket which was 200k.
I have no clue what plugin is causing this.
Here some screenshots.
I tried unloading all plugins and even without plugins the bug persist. I contacted Helk from FP and he confirmed its modded only its not on vanilla. I think its a bug in Oxide itself.
Researching gives more than it should
Discussion in 'Rust Discussion' started by Chuck1992, Aug 19, 2016.
-
Attached Files:
Last edited by a moderator: Aug 19, 2016 -
-
Wulf Community Admin
I had a few people test with all of Oxide's research hooks disabled, and they still had the issue. With Oxide not touching any other researching spots, I don't see how it can be the cause.
-
This is because of stacksizecontroller i believe.
-
I really don't know but its none of the plugins cause i tested with all plugins loaded and after that i did in console unload * and checked everything was unloaded. And still it gave me 50k pistol bullet bp's
And its for sure not StacksizeController cause when i try to stack it, it stacks to like 1000Last edited by a moderator: Aug 19, 2016 -
Calytic Community Admin Community Mod
The Fix.
1. Download & install ItemConfig for Rust | Oxide
2. Open config/ItemConfig.json
3. Change blueprintStackSize for every item to the amount of blueprints players should receive for researching the item
4. Reload ItemConfig
The default formula used for ammunition is: (stackSize / craftedAmount) * 2
Non-ammo blueprintStackSize is based on rarity:
Common: 20
Uncommon: 15
Rare: 10
Very Rare: 5 -
-
Calytic Community Admin Community Mod
ItemConfig is dynamic and doesn't need to be changed to work.
-
Imagine Rust introducing a bug that sets the stack size of one particular item to a very large unintended number: You'd likely still be able to fix the issue with StackSizeController, even when it was updated before the Rust update. -
I'll reply back when i tested it and will post the results. Cause its kinda absurd that i need to use a plugin for something thats not related to any other plugin but the plugin manager itself.
Its not Rust which is confirmed by the devs. And its not my plugins which i can confirm cause i disabled all of them and it ran vanilla with just only oxide. -
And like said in my previous post, i ran the server pretty much vanilla to test it out without ANY plugin loaded besides oxide itself. So there is going something wrong between Rust and oxide that gives me this bug. I am not here to blame anyone for this stupid bug, i am just here to get this fixed and acknowledged.
Edit: Just tested it and like i thought this is no fix @Calytic Tnx for your try tho.
There is no real settings that gives me the option how many bp's i can get from one bullet.Last edited by a moderator: Aug 19, 2016 -
-
The issue you are having is in fact with StackSizeController or any other plugin that changes the stacksize of items. Basically what happens is when researching an item is that it calculates the amount of blueprints it should give.
Code:int amount = researchItem.info.Blueprint.blueprintStackSize != -1 ? researchItem.info.Blueprint.blueprintStackSize : this.GetBlueprintStacksize(researchItem));
Code:public int GetBlueprintStacksize(Item sourceItem) { int num = this.RarityMultiplier(sourceItem.info.rarity); if (sourceItem.info.category == ItemCategory.Ammunition) { num = Mathf.FloorToInt((float)sourceItem.info.stackable / (float)sourceItem.info.Blueprint.amountToCreate) * 2; } return num; }
-
[DOUBLEPOST=1471614932][/DOUBLEPOST]Then i got a 2nd good question. Why does this only apply on bullets and not on medical suppliments? if i research a syringe it literally gives me the vanilla amount of syringe bp's. This only occurs with ammo and nothing else. And i do have custom stacksize for medical suppliments aswellLast edited by a moderator: Aug 19, 2016 -
-
[DOUBLEPOST=1471616928][/DOUBLEPOST]Tested it like u said and it worked it gives me 3 rockets now. But now im thinking its based on its rarity right.
I use BetterLoot. Can it maybe that causing the issue? Cause that alters rarity of items(finding them actually).
Might be a wild guess, not that good in understanding how these plugins work.
Not sure if it only works with unloading but so far i see it has only to do with stacksize controller indeed. I already notified the plugin developer thru the support page of its plugin and gave him the link of this thread.Last edited by a moderator: Aug 19, 2016 -
-
Calytic Community Admin Community Mod
I was incorrect, the reading is dynamic but not the writing.
Attached Files:
-
-
Code:
void OnServerInitialized() { permission.RegisterPermission("stacksizecontroller.canChangeStackSize", this); var dirty = false; var itemList = ItemManager.itemList; foreach (var item in itemList) { if (item.condition.enabled && item.condition.max > 0) { continue; } if (Config[item.displayName.english] == null) { Config[item.displayName.english] = item.stackable; dirty = true; } item.stackable = (int)Config[item.displayName.english]; } if (dirty == false) { return; } PrintWarning("Updating configuration file with new values."); SaveConfig(); }
-
Calytic Community Admin Community Mod
-
Make blueprints not stackable.