HelpText

Allows people to use /help to get help info from plugins

Total Downloads: 1,353 - First Release: May 25, 2015 - Last Update: Jul 8, 2016

5/5, 3 likes
  1. Mughisi updated HelpText with a new update entry:

    1.0.3

     
  2. Doesn't seem to be working anymore.
    It crashes at line 43
    Code:
    var oxidecommands = ChatCommands.GetValue(cmd);
     
  3. Wulf

    Wulf Community Admin

    Which Oxide build are you using?
     
  4. 2.0.2902

    EDIT - Sorry wrong version
    [DOUBLEPOST=1484772449][/DOUBLEPOST]Updated to most recent version and still nothing.
     
    Last edited by a moderator: Jan 18, 2017
  5. Wulf

    Wulf Community Admin

    Are you getting any errors?
     
  6. Code:
    15:21 [Error] Failed to call hook 'Help' on plugin 'HelpText v1.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    15:21 [Stacktrace]   at Oxide.Plugins.HelpText.ReadOxideCommands () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.HelpText.Help (CodeHatch.Engine.Networking.Player player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.HelpText.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. I should have a fix for it locally, I'll try to upload it tomorrow when I have some time
     
  8. Does the fix work? If so I'd be very happy if you could update/post it.
     
  9. Sorry completely forgot about posting it, attaching it to this post as I don't know if the changes I made since then are still valid and I can't test it right now.
     

    Attached Files:

  10. Doesn't seem to be working I'm afraid. It also seems to have caused oxide to stop logging but that might be coincidence.
     
  11. I know what went wrong with your plugin.
    Code:
    private readonly FieldInfo ChatCommands = typeof (Command).GetField("chatCommands", BindingFlags.NonPublic | BindingFlags.Instance);
    Should have been
    Code:
    private readonly FieldInfo ChatCommands = typeof (Command).GetField("ChatCommands", BindingFlags.NonPublic | BindingFlags.Instance);