I need to make XP zero for crafting - getting this error, please help. Config is set as below:Code:s.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 [Oxide] 15:46 [Error] Failed to call hook 'OnXpEarn' on plugin 'CraftingController v2.4.4' (InvalidCastException: Cannot cast from source type to destination type.) [Oxide] 15:46 [Debug] at Oxide.Plugins.CraftingController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 [Oxide] 15:46 [Error] Failed to call hook 'OnXpEarn' on plugin 'CraftingController v2.4.4' (InvalidCastException: Cannot cast from source type to destination type.) [Oxide] 15:46 [Debug] at Oxide.Plugins.CraftingController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename
Code:{ "Messages": { "BlockedItem": "{0} has already been blocked!", "BlockSucces": "{0} has been blocked from crafting.", "CraftBlockedItem": "{0} is blocked and can not be crafted!", "CurrentCraftingRate": "The crafting rate is set to {0}%.", "InvalidItem": "{0} is not a valid item. Please use the name of the item as it appears in the item list. Ex: Camp Fire", "ModifyCraftingRate": "The crafting rate is now set to {0}%.", "ModifyCraftingRateError": "The new crafting rate must be a number. 0 is instant craft, 100 is normal and 200 is double!", "ModifyCraftingRateItem": "The crafting rate for {0} is now set to {1}%.", "NoBlockedItems": "No items have been blocked.", "NoItemRate": "You need to specify an item and a new crafting rate for this command.", "NoItemSpecified": "You need to specify an item for this command.", "NoPermission": "You don't have permission to use this command.", "ShowBlockedItems": "The following items are blocked: ", "UnblockItem": "{0} is not blocked!", "UnblockSucces": "{0} is no longer blocked from crafting." }, "Options": { "BlockedItems": [ "Small Stash" ], "CompleteCurrentCraftingOnShutdown": true, "CraftingExperienceRate": 0.0, "CraftingRate": 0.0, "IndividualCraftingRates": {}, "InstantCraftForAdmins": true, "InstantCraftForModerators": true }, "Settings": { "ChatPrefix": "Crafting Controller", "ChatPrefixColor": "#008000ff" } }
Crafting Controller
Moved
Total Downloads: 52,437 - First Release: Oct 29, 2014 - Last Update: Apr 19, 2018
- 5/5, 72 likes
-
Wulf Community Admin
-
I literally reinstalled it and this happens. I am 110% sure my server, oxide and Rust.io are up to date. As is my client.
Code:[Oxide] 21:47 [Info] CraftingController was compiled successfully in 1943ms [Oxide] 21:47 [Info] Loaded plugin Crafting Controller v2.4.4 by Mughisi > reload CraftingController [Oxide] 21:48 [Info] Unloaded plugin Crafting Controller v2.4.4 by Mughisi [Oxide] 21:48 [Info] Loaded plugin Crafting Controller v2.4.4 by Mughisi [Oxide] 21:48 [Error] Failed to call hook 'OnXpEarn' on plugin 'CraftingController v2.4.4' (InvalidCastException: Cannot cast from source type to destination type.) [Oxide] 21:48 [Debug] at Oxide.Plugins.CraftingController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 31.23.236.165:15137/76561198208919955/Leito joined [windows/76561198208919955] [Oxide] 21:49 [Error] Failed to call hook 'OnXpEarn' on plugin 'CraftingController v2.4.4' (InvalidCastException: Cannot cast from source type to destination type.) [Oxide] 21:49 [Debug] at Oxide.Plugins.CraftingController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 [Oxide] 21:49 [Error] Failed to call hook 'OnXpEarn' on plugin 'CraftingController v2.4.4' (InvalidCastException: Cannot cast from source type to destination type.) [Oxide] 21:49 [Debug] at Oxide.Plugins.CraftingController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 [Oxide] 21:49 [Error] Failed to call hook 'OnXpEarn' on plugin 'CraftingController v2.4.4' (InvalidCastException: Cannot cast from source type to destination type.) [Oxide] 21:49 [Debug] at Oxide.Plugins.CraftingController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 [Oxide] 21:49 [Error] Failed to call hook 'OnXpEarn' on plugin 'CraftingController v2.4.4' (InvalidCastException: Cannot cast from source type to destination type.) [Oxide] 21:49 [Debug] at Oxide.Plugins.CraftingController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
-
Wulf Community Admin
-
EDIT: Crafting XP is diminishing, which is great. FacePunch made it so the more you craft of any one item, the less experience you gain from crafting it. This is similar to other RPGs and was completely necessary. We should be good to go now, regardless of modding the XP gained, thank you.Last edited by a moderator: Jul 15, 2016 -
[Oxide] 19:58 [Error] Failed to call hook 'OnXpEarn' on plugin 'CraftingController v2.4.4' (InvalidCastException: Cannot cast from source type to destination type.)
[Oxide] 19:58 [Debug] at Oxide.Plugins.CraftingController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
[DOUBLEPOST=1468541700][/DOUBLEPOST]Code:[Oxide] 20:12 [Debug] at Oxide.Plugins.CraftingController.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
-
When crafting x-amount of items, I only seem to earn XP for the first one and none for the rest thereafter. Using XP booster and Crafting Controller latest on the latest build of oxide. Is this a desired functionality as implemented by FP, or is it a bug?
-
Wulf Community Admin
-
There seems to be an issue where CraftingController is granting entire XP levels even if the rate is set to 100.0, or if XpBooster is disabled.
Is anyone else getting this? -
-
Wulf Community Admin
[DOUBLEPOST=1468608997,1468608970][/DOUBLEPOST] -
-
-
Wulf Community Admin
-
-
-
Wulf Community Admin
[DOUBLEPOST=1468609415,1468609383][/DOUBLEPOST] -
will give that a try.
-
Thanks Wulf, fixing now. Please can you advise once this is restored to normal?
[DOUBLEPOST=1468609955][/DOUBLEPOST]For anyone else having this issue, use XpBooster - set the multipliers to 0.01. Seems to be working OK on my server.
Thanks again Wulf, bet the last couple of days have been crazy for you. -
I just commented out the hook in CraftingController.