Crafting Controller

Moved

Total Downloads: 52,437 - First Release: Oct 29, 2014 - Last Update: Apr 19, 2018

5/5, 72 likes
  1. 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
    I need to make XP zero for crafting - getting this error, please help. Config is set as below:
    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"
      }
    }
     
  2. Wulf

    Wulf Community Admin

    Re-download 0.4.5, you likely have a modified verison.
     
  3. 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
     
    and more. It keeps going.
     
  4. Wulf

    Wulf Community Admin

    2.4.4 is outdated, 2.4.5 is the latest.
     
  5. You're right, that fixed the errors, but they can still gain XP crafting, even with it at zero in the config. I need to change that. We don't want XP from players crafting, it tends to be exploited.


    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
  6. [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
     
  7. 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?
     
  8. Wulf

    Wulf Community Admin

    That's an issue with the OnXpEarn hook and how Rust processes the XP, fixing in the next Oxide update.
     
  9. 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?
     
  10. Seeing some really weird stuff. Wasn't getting craft XP before the latest oxide build, with XpBooster on 7x and CC on 100.00 - and now everyone on my server is level 40+ in a matter of minutes.
     
  11. Wulf

    Wulf Community Admin

    Lower the rate to much much lower, the OnXpEarn hook was fixed to always boost now.
    [DOUBLEPOST=1468608997,1468608970][/DOUBLEPOST]
    You're outdated with the plugin.
     
  12. I've removed XpBooster and CC is now set to 1.0; still getting bare XP haha. Can I do negative float on the CraftingExperienceRate var? :D
     
  13. Same problem not using XPBooster.
     
  14. Wulf

    Wulf Community Admin

    Which Oxide version are you on?

    Crafting Controller boosts XP too. XP will not be more than normal without a plugin modifying it.
     
  15. [Oxide] 20:59 [Info] Oxide 2.0.2181 for Rust 947.38 (1475)
     
  16. Yeah, Crafting Controller is the only plugin I have modifying XP, I'm just not clear on what to set it to get a vanilla value. Really only using Crafting Controller for the instacraft.
     
  17. Wulf

    Wulf Community Admin

    You'd need to set to like... 0.0001 or something to avoid massive XP right now, it's pretty much raw XP when using the hook right now.
    [DOUBLEPOST=1468609415,1468609383][/DOUBLEPOST]
    Hard to tell right now, normally 1.0 would be but the hook is a bit overpowering right now due to the lack of scale with it.
     
  18. Thanks :) will give that a try.
     
  19. 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.
     
  20. I just commented out the hook in CraftingController.