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. Wulf

    Wulf Community Admin

    AnExiledGod submitted a new resource:

    Replace On Broken - Replaces your active broken item with a not broken item if in inventory.

    Read more about this resource...
     
  2. Hmm odd, I'll look into it tomorrow (well technically today, if I ever go to bed...)
    [DOUBLEPOST=1435299713][/DOUBLEPOST]Could you provide more information? I can't reproduce on my local server. If you're not sure, I'll try on my live server tomorrow.
     
  3. i get that error anytime the plugins does something, so if i useup an item and it replaces it, that error shows in console
     
  4. That's interesting. It doesn't happen on my local. I might have to do some live testing on my server heh. The only difference between my local and live is my local only has 1 player.
     
  5. Code:
    [Oxide] 4:10 PM [Error] Failed to call hook 'OnLoseCondition' on plugin 'Replace On Broken' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 4:10 PM [Debug]   at Oxide.Plugins.ReplaceOnBroken.OnLoseCondition (.Item item, System.Single& amount) [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
     
  6. AnExiledGod updated Replace On Broken with a new update entry:

    Fixed Console Errors

     
  7. BaK

    BaK

    Doesn't have updater compatibility. I added it to this version.
     
  8. needs update
    Code:
    12:14 AM [Error] Failed to call hook 'OnLoseCondition' on plugin 'Replace On Broken' (NullReferenceException: Object reference not set to an instance of an object)
    12:14 AM [Debug]   at Oxide.Plugins.ReplaceOnBroken.OnLoseCondition (.Item item, System.Single& amount) [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 
     
  9. Requests:
    • add permissions
    • add ability to exclude items
    • add weapons option to replace on ammo empty
    • add candle hat replace on fuel empty.
     
  10. Simple Request:
    • re-activate the switched item(slot) in the slot before the active was broken :)
    Greetings
     
  11. Like Isuelt said please add those.
     
  12. Any fix for this ? ^^
    Code:
    (14:49:09) | [Oxide] 14:49 [Error] Failed to call hook 'OnLoseCondition' on plugin 'ReplaceOnBroken v1.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    (14:49:09) | [Oxide] 14:49 [Debug] at Oxide.Plugins.ReplaceOnBroken.OnLoseCondition (.Item item, 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: Aug 5, 2016
  13. Wulf

    Wulf Community Admin

    Do you happen to know what happened when you got this error?

    So just making the new item be held?

    I'm not sure how to handle the last two yet, but the first two I'll be adding shortly.
     
  14. My players say it works, so i think this arrive every times when items broke, and are replace in belt

    it spams as hell, but isn't an issue who make the plugin not working ^^
     
  15. Wulf

    Wulf Community Admin

    I haven't been able to reproduce it yet with my updated version, so we'll see how it goes I guess.
     
  16. All right !
    Now i know the problem is only from my config, so I'll investigate.


    Thanks for your time !!
     
  17. Wulf

    Wulf Community Admin

    Wulf updated ReplaceOnBroken with a new update entry:

    2.0.0

     
  18. Code:
    (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
     
  19. Wulf

    Wulf Community Admin

    Could you show the error above that too please? Also, do you happen to know which item broke when that error happened?