LimeBench [Unmaintained]
Discussion in 'Plugin Support' started by Deicide666ra, Jun 19, 2015.
-
Is there a way to block specific item from being crafted?
im ujsing blueprintmanager to give players all bp's but they also get "Smoke Rocket WIP!!!!" and i dont want them to be able to craft it -
-
there is no "userCraftable" option in itemconfig and blueprint manager has no option for that
-
-
thanks
-
-
-
Code:
[Oxide] 12:10 AM [Error] Failed to call hook 'OnItemCraftFinished' on plugin 'L.I.M.E. Bench' (NullReferenceException: Object reference not set to an instance of an object) [Oxide] 12:10 AM [Debug] at Oxide.Plugins.LimeBench.AdjustCraftingTime (.BasePlayer player, .ItemBlueprint bp, .ItemCraftTask task) [0x00000] in <filename unknown>:0 at Oxide.Plugins.LimeBench.OnItemCraftFinished (.ItemCraftTask task, .Item item) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
Code:void OnItemCraftFinished(ItemCraftTask task, Item item) { BasePlayer player = task.owner; var crafter = player.inventory.crafting; if (crafter.queue.Count == 0) return; AdjustCraftingTime(player, crafter.queue.First().blueprint, task); }
Last edited by a moderator: Aug 8, 2015 -
Are you using the latest version mak?
By removing this function, players can queue a bunch of stuff in their base and then go out of cupboard range and the crafting time will not revert back to the "outside cupboard range" rate. The error is occuring in AdjustCraftingTime which is also called when a task is created, so you might get the same issue somewhere else!
I recommend putting it back and finding what item is causing this, it's quite possible some items could cause issues, I haven't tested them all and they did some changes to blueprints with the skins and all, might be the skinned items that cause this I'll have to investigate. If anyone can tell me what item(s) cause this error I'd be interested to know! -
-
Edit: can't remember if its in-game or short name for the command "ammo.rocket.smoke"Last edited by a moderator: Aug 10, 2015 -
How would i add more than one item to the config file with the blacklist bulk crafting , like atm its tis "bulkCraftBlacklist": [ "spear.wooden" ], how would i add another item to this ?
-
You can validate the json file with www.jsonlint.com -
[Oxide] 3:45 PM [Warning] CallHook 'OnItemCraft' on plugin 'L.I.M.E. Bench' took: 12139ms [Oxide] 3:45 PM [Warning] CallHook 'OnItemCraft' on plugin 'L.I.M.E. Bench' took average: 722ms caused a crash do you think this is related to weapons?
-
-
Dude how do you get the bulk crafting working?
-
-
Cheers man, all gravy!
-
This doesnt seem to work with the new Skins implemented. When you craft something with a skin it does the vanilla version of it