HooksExtended

Over 200 new hooks to reduce boiler-plate and save time

Total Downloads: 1,446 - First Release: Dec 14, 2016 - Last Update: Apr 11, 2018

5/5, 8 likes
  1. Calytic

    Calytic Community Admin Community Mod

    Calytic submitted a new resource:

    HooksExtended - Over 100 new hooks to reduce boiler-plate and save time

    Read more about this resource...
     
  2. Love it! My only suggestion is to add more if you can!
     
  3. Calytic

    Calytic Community Admin Community Mod

    Calytic updated HooksExtended with a new update entry:

    0.0.11

     
  4. hi
    can you give me pleas more information about this plugin
    if i make all config false the plugins will be work?
     
  5. nvm my post ^^
     
  6. Is there anything special I need to do in my Plugin to get this to work. Do I need to call EnableHook?
     
  7. Wulf

    Wulf Community Admin

    There is only one plugin that actually uses this plugin. What are you using from this plugin?
     
  8. I'm trying to write my own plugin that uses some of these hooks.
     
  9. Wulf

    Wulf Community Admin

    You should be able to just add them like any other hook in Oxide.
     
  10. Hi,

    i'm getting this error into the Oxide log file.

    Code:
    18:07 [Error] Failed to call hook 'EnableHook' on plugin 'HooksExtended v0.0.11' (NullReferenceException: Object reference not set to an instance of an object)
    18:07 [Stacktrace]   at Oxide.Plugins.HooksExtended.ConfigureHook (System.String hookName, Boolean setting, Boolean save) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.HooksExtended.EnableHook (System.String hookName, Boolean save) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.HooksExtended.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 
    Any clue ?

    Thanks
     
  11. MiikaaQC ; Just pull it out of plugins and config. Then put it ( HooksExtended.cs) back in again. This time, work with the .json config file and change only 1 thing at at time and load it until you figuered out the problem. And with what. Sometimes you wait long time on here for answers and Im just self learning and new to this. Only way is to fix it yourself and add one thing at a time that your unsure of it's Meaning. The developers are pretty vague when describing their work that has taken them weeks or months to finish. You would think they would make it that much easier to Understand in a: plain simple explanation. How to use this cool plugin. Some .json config's offer to change things that I have no clue of what they're talking about. "Just Tell Me What It Does"!!!!! Anyway my friend. Trial and error. You gotta do what you gotta do. Especially if your renting a server. Hope there's new changes in PR this year! I need; "Terminology for Coding for Dummies 101"
     
    Last edited by a moderator: Jan 30, 2017
  12. HooksExtended - Failed to compile: HooksExtended.cs(1061,34): error CS0150: A constant value is expected

    ---

    Please change BaseNPC to BaseNpc
     
  13. Calytic

    Calytic Community Admin Community Mod

    Calytic updated HooksExtended with a new update entry:

    0.0.12

     
  14. Failed to call hook 'OnPlayerInit' on plugin 'HooksExtended v0.0.12' (ArgumentException: An element with the same key already exists in the dictionary.)
     
  15. latest rust/oxide update is producing this error on player connect:

    Code:
    (09:43:24) | ExType: TargetInvocationException
    (09:43:24) | Failed to call hook 'OnPlayerInit' on plugin 'HooksExtended v0.0.12' (ArgumentException: An element with the same key already exists in the dictionary.)
    (09:43:24) | at System.Collections.Generic.Dictionary`2[BasePlayer,Oxide.Plugins.HooksExtended+PlayerProfile].Add (.BasePlayer key, Oxide.Plugins.PlayerProfile value) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Hash`2[BasePlayer,Oxide.Plugins.HooksExtended+PlayerProfile].Add (.BasePlayer key, Oxide.Plugins.PlayerProfile value) [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
     
  16. Hi @Calytic , getting an error after the latest oxide update:

    Code:
    ExType: TargetInvocationException
    Failed to call hook 'OnPlayerInit' on plugin 'HooksExtended v0.0.12' (ArgumentException: An element with the same key already exists in the dictionary.)
      at System.Collections.Generic.Dictionary`2[BasePlayer,Oxide.Plugins.HooksExtended+PlayerProfile].Add (.BasePlayer key, Oxide.Plugins.PlayerProfile value) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Hash`2[BasePlayer,Oxide.Plugins.HooksExtended+PlayerProfile].Add (.BasePlayer key, Oxide.Plugins.PlayerProfile value) [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 
     
  17. Calytic

    Calytic Community Admin Community Mod

    Calytic updated HooksExtended with a new update entry:

    0.1.0

     
  18. Nice work!
    Any chance of differentiating between Scientists (NPCApex?), Murderers and Zombies for the NPC hooks?
     
  19. Calytic

    Calytic Community Admin Community Mod

    Calytic updated HooksExtended with a new update entry:

    0.1.1

     
  20. Calytic

    Calytic Community Admin Community Mod

    Calytic updated HooksExtended with a new update entry:

    0.1.2