Crafting Controller

Moved

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

5/5, 72 likes
  1. Getting the following:
    Code:
    [Oxide] 19:31 [Error] Failed to call hook 'OnXpEarn' on plugin 'CraftingController v2.4.4' (InvalidCastException: Cannot cast from source type to destination type.)
    [Oxide] 19:31 [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.version shows:
    [Oxide] 19:33 [Info] Oxide 2.0.2149 for Rust 942.65 (1470)
     
    Last edited by a moderator: Jul 11, 2016
  2. Wulf

    Wulf Community Admin

    Make sure you are using the latest version of the plugin, 2.4.4 is not the latest.
     
  3. Though i had the newest version my bad.
     
  4. I installed latest version and now i get this too
    Code:
    <filename unknown>:0
      at System.Convert.ChangeType (System.Object value, System.Type conversionType) [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
    (19:46:25) | [Oxide] 11:46 [Error] Failed to call hook 'OnXpEarn' on plugin 'CraftingController v2.4.5' (InvalidCastException: Value is not a convertible object: BasePlayer to System.UInt64)
    (19:46:25) | [Oxide] 11:46 [Debug]   at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in
     
  5. To be fair though Wulf.

    Code:
    (15:41:58) | [Oxide] 15:41 [Info] CraftingController was compiled successfully in 2195ms
    (15:41:59) | [Oxide] 15:41 [Info] Loaded plugin Crafting Controller v2.4.5 by Mughisi
    (15:42:00) | [Oxide] 15:41 [Error] Failed to call hook 'OnXpEarn' on plugin 'CraftingController v2.4.5' (InvalidCastException: Value is not a convertible object: BasePlayer to System.UInt64)
    (15:42:00) | [Oxide] 15:41 [Debug]   at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0
      at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x00000] in <filename unknown>:0
     
  6. [Oxide] 21:48 [Error] Failed to call hook 'OnXpEarn' on plugin 'CraftingController v2.4.5' (InvalidCastException: Value is not a convertible object: BasePlayer to System.UInt64)
    [Oxide] 21:48 [Debug] at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0
    at System.Convert.ChangeType (System.Object value, System.Type conversionType)
    [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[] arg
     
  7. Wulf

    Wulf Community Admin

    If you get that, then you're not updated with Oxide.
     

  8. Please all make sure that you are using the latest version of both Oxide (2.0.2149)
    and CraftingController (2.4.5).

    Edit: Fekkin Wulf a millisecond in front of me ;D
     
  9. That Sir is a very good point and I was unaware of the changes. Doing that now.
    [DOUBLEPOST=1468264625][/DOUBLEPOST]Also appears there was a server update.

    Server Update | Updates server to latest version and disables Oxide. (Last Updated 2016-07-10 13:29:14)
     
  10. so i downloaded it installed it but bulk craft does not work
     
  11. Wulf

    Wulf Community Admin

    Yes, the server update was yesterday shortly before the Oxide update was released.
    [DOUBLEPOST=1468269074,1468269057][/DOUBLEPOST]
    Check your oxide/logs for errors and make sure that you have Oxide running by using the oxide.version chat or console command.
     
  12. Hi guys, I just updated the plugin.
    I´m running the last version of CraftingController, Oxide and Rust.

    I noticed that when I craft 1 by 1, its intacraft. But when I place a queue of, lets say, 10 cupboards, its 100% crafting time.

    Thanks in advance.

    Le Dieu
     
  13. it says it loaded the plugin and instant craft works its just bulk craft thats not working i think it might be sometrhing wrong in the config file but im not sure
     
  14. Line 575
    replace
    private object OnXpEarn(ulong id, float amount, string source)
    by
    private object OnXpEarn(BasePlayer player, float amount, string source)
     
  15. [Oxide] 14:21 [Error] Failed to call hook 'OnXpEarn' on plugin 'CraftingController v2.4.5' (InvalidCastException: Value is not a convertible object: BasePlayer to System.UInt64)
    [Oxide] 14:23 [Error] Failed to call hook 'OnXpEarn' on plugin 'CraftingController v2.4.5' (InvalidCastException: Value is not a convertible object: BasePlayer to System.UInt64)
     
  16. Wulf

    Wulf Community Admin

    Update Oxide and Rust, you're outdated.
     
  17. You shouldn't replace that, you should update your Oxide to the latest version...