ReplaceOnBroken

Replaces the active broken item with a not broken item if in inventory

Total Downloads: 3,280 - First Release: Jun 25, 2015 - Last Update: Feb 16, 2017

5/5, 13 likes
  1. Code:
    (11:57:02) | [Oxide] 11:57 [Error] Failed to call hook 'OnLoseCondition' on plugin 'ReplaceOnBroken v2.0.0' (NullReferenceException: Object reference not set to an instance of an object)
    (11:57:02) | [Oxide] 11:57 [Debug]   at Oxide.Plugins.ReplaceOnBroken.OnLoseCondition (.Item oldItem, System.Single& amount) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ReplaceOnBroken.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
    (11:58:45) | [Oxide] 11:58 [Error] Failed to call hook 'OnLoseCondition' on plugin 'ReplaceOnBroken v2.0.0' (NullReferenceException: Object reference not set to an instance of an object)
    (11:58:45) | [Oxide] 11:58 [Debug]   at Oxide.Plugins.ReplaceOnBroken.OnLoseCondition (.Item oldItem, System.Single& amount) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ReplaceOnBroken.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
    (11:58:57) | [Oxide] 11:58 [Error] Failed to call hook 'OnLoseCondition' on plugin 'ReplaceOnBroken v2.0.0' (NullReferenceException: Object reference not set to an instance of an object)
    (11:58:57) | [Oxide] 11:58 [Debug]   at Oxide.Plugins.ReplaceOnBroken.OnLoseCondition (.Item oldItem, System.Single& amount) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ReplaceOnBroken.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
    That's all that is. I don't know what exactly broke.
     
  2. Same problem
     
  3. Seems to work, but same problem.
     
  4. Any update with the above information?
     
  5. Wulf

    Wulf Community Admin

    Wulf updated ReplaceOnBroken with a new update entry:

    2.1.0

     
  6. Still has an error:

    Code:
    [08/28/2016 17:07:57] [Oxide] 17:07 [Error] Failed to call hook 'OnLoseCondition' on plugin 'ReplaceOnBroken v2.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    [08/28/2016 17:08:04] [Oxide] 17:08 [Error] Failed to call hook 'OnLoseCondition' on plugin 'ReplaceOnBroken v2.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    [08/28/2016 17:08:12] [Oxide] 17:08 [Error] Failed to call hook 'OnLoseCondition' on plugin 'ReplaceOnBroken v2.1.0' (NullReferenceException: Object reference not set to an instance of an object)
     
  7. works but spams console...
    Code:
    [Oxide] 22:08 [Error] Failed to call hook 'OnLoseCondition' on plugin 'ReplaceOnBroken v2.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 22:08 [Debug]  at Oxide.Plugins.ReplaceOnBroken.OnLoseCondition (.Item oldItem, System.Single& amount) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ReplaceOnBroken.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
     
    Last edited by a moderator: Sep 9, 2016
  8. Any fix??? :(
    it works but spams the console so badly i cant see when my other plugins have issues that need addressing.
    also i am worried it will effect the server in some way like lag etc. so i went ahead and took it off but i really like it and hope ya can fix the problem soon. thanks!
     
  9. Wulf

    Wulf Community Admin

    Not yet, I can't reproduce it myself yet so hard to fix without.
     
  10. Code:
    20:37 [Error] Failed to call hook 'OnLoseCondition' on plugin 'ReplaceOnBroken v2.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    20:37 [Debug]   at Oxide.Plugins.ReplaceOnBroken.OnLoseCondition (.Item oldItem, System.Single& amount) [0x00000] in <filename unknown>:0 
      at Oxide.Plugins.ReplaceOnBroken.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 
    
    I figure out what couse this errors. It happens when player throwing an axe or pick axe by pressing right and then left mouse button. I use the latest version of oxide and this plugin
     
  11. Code:
    (22:37:24) | [Oxide] 22:37 [Error] Failed to call hook 'OnLoseCondition' on plugin 'ReplaceOnBroken v2.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    (22:37:24) | [Oxide] 22:37 [Debug]   at Oxide.Plugins.ReplaceOnBroken.OnLoseCondition (.Item oldItem, System.Single& amount) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ReplaceOnBroken.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
     
  12. Wulf

    Wulf Community Admin

    Try with the latest Oxide snapshot when you get a chance and see if that helps.
     
  13. [Oxide] 02:53 [Error] Failed to call hook 'OnPlayerConnected' on plugin 'RustCore
    v1.0.0' (ArgumentException: failed to convert parameters)
     
  14. Wulf

    Wulf Community Admin

    That isn't related to this plugin, but fixed in the next snapshot.
     
  15. it's true. oxide version: 2.0.2487.
     
  16. Code:
    [Oxide] 09:18 [Error] Failed to call hook 'OnLoseCondition' on plugin 'ReplaceOnBroken v2.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 09:18 [Debug]   at Oxide.Plugins.ReplaceOnBroken.OnLoseCondition (.Item oldItem, System.Single& amount) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ReplaceOnBroken.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
    Is it possible that these error messages are caused by latency between the client and the server?
     
  17. Wulf

    Wulf Community Admin

    Wulf updated ReplaceOnBroken with a new update entry:

    2.1.1

     
  18. replaces broken tool/weapon with random loot from inventory.