EMInterface

Moved

Total Downloads: 4,154 - First Release: Dec 24, 2016 - Last Update: Apr 21, 2017

5/5, 10 likes
  1. ok thank you it is working now
     
  2. @Wulf , Im trying to start a ArenaDeathmatch, and I get this error. I think i recall it saying that my spawnfile and kits were invalid as well.
    What could i be doing wrong you think? I created 5 kits with guns, clothing, ammo in each, and i created a spawnfile with 10 spawn points in it and saved it.

    Failed to call hook 'ccmdControls' on plugin 'EMInterface v1.0.5' (NullReferenceException: Object reference not set to an instance of an object)

    at Oxide.Plugins.EventManager.SetEventDetails () [0x00000] in :0 at Oxide.Plugins.EventManager.OpenEvent () [0x00000] in :0 at Oxide.Plugins.EMInterface.ccmdControls (.Arg arg) [0x00000] in :0 at Oxide.Plugins.EMInterface.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in :0
     
  3. (17:29:01) | Failed to call hook 'cmdEventMenu' on plugin 'EMInterface v1.0.5' (KeyNotFoundException: The given key was not present in the dictionary.)

    (17:29:01) | at System.Collections.Generic.Dictionary`2[System.String,System.String].get_Item (System.String key) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.EMInterface.CreateMenuMain (.BasePlayer player) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.EMInterface.OpenMenu (.BasePlayer player) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.EMInterface.cmdEventMenu (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.EMInterface.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  4. Outdated config delete config and reload
     
  5. Would it be possible to add a countdown to /event so players can see how long until the next auto event?
     
  6. Failed to call hook 'ccmdChangeElement' on plugin 'EMInterface v1.0.5' (KeyNotFoundException: The given key was not present in the dictionary.)
    at System.Collections.Generic.Dictionary`2[System.String,Oxide.Plugins.EventManager+EventSetting].get_Item (System.String key) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EMInterface.EventControl (.BasePlayer player) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EMInterface.ccmdChangeElement (.Arg arg) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EMInterface.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0

    my config delete and reload but continue error help me...
     
  7. Can not load the plugin.I uploaded it and started with oxide.reload but it is not installed
     
  8. can we enable auto events after restart? it disables after restarts.?
     
  9. Yes you can. I can't remember but I think it's in json file
     
  10. Hello, been getting this error the last month since i added this on to the server. Never has it worked yet for me.

    (13:08:09) | Failed to call hook 'ccmdControls' on plugin 'EMInterface v1.0.5' (NullReferenceException: Object reference not set to an instance of an object)

    (13:08:09) | at Oxide.Plugins.EventManager.SetEventDetails () [0x00000] in <filename unknown>:0

    at Oxide.Plugins.EventManager.OpenEvent () [0x00000] in <filename unknown>:0

    at Oxide.Plugins.EMInterface.ccmdControls (.Arg arg) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.EMInterface.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0

    EDIT: I reloaded all my plugins assoiciated, and I found arenadeathmatch wasnt loading
    , so so i reloaded just that one, and It works now!
     
    Last edited by a moderator: May 21, 2017
  11. When players on my server try to open an event they can vote but next screen the words are overlapping, any ideas? Thank you
    [DOUBLEPOST=1496003131][/DOUBLEPOST]Even trying to set up auto events all the writing is over lapping each other
     
  12. Hello, if I type on event, then create I am not able to choose a type, why?
     
  13. When you create event you have to choose before you create it if you haven't downloaded event you won't and added to you plugins you won't be able to do that
     
  14. I dowloaded all the 3 events, but that do not appear to the possible events...
     
  15. Failed to call hook 'cmdEventMenu' on plugin 'EMInterface v1.0.5' (KeyNotFoundException: The given key was not present in the dictionary.)

    at System.Collections.Generic.Dictionary`2[System.String,System.String].get_Item (System.String key) [0x00000] in :0 at Oxide.Plugins.EMInterface.CreateMenuMain (.BasePlayer player) [0x00000] in :0 at Oxide.Plugins.EMInterface.OpenMenu (.BasePlayer player) [0x00000] in :0 at Oxide.Plugins.EMInterface.cmdEventMenu (.BasePlayer player, System.String command, System.String[] args) [0x00000] in :0 at Oxide.Plugins.EMInterface.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in :0
     
  16. same thing here, after today's update.

    16:07 [Error] Failed to call hook 'cmdEventMenu' on plugin 'EMInterface v1.0.5' (KeyNotFoundException: The given key was not present in the dictionary.)
    16:07 [Stacktrace] at System.Collections.Generic.Dictionary`2[System.String,System.String].get_Item (System.String key) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EMInterface.CreateMenuMain (.BasePlayer player) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EMInterface.OpenMenu (.BasePlayer player) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EMInterface.cmdEventMenu (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EMInterface.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  17. After I accidentally deleted an event then recreated it, then reloaded the mod, I started having the same issue everybody else is reporting.

    Code:
    (15:47:19) | [Oxide] 15:47 [Error] Failed to call hook 'cmdEventMenu' on plugin 'EMInterface v1.0.5' (KeyNotFoundException: The given key was not present in the dictionary.)
    (15:47:19) | [Oxide] 15:47 [Stacktrace]   at System.Collections.Generic.Dictionary`2[System.String,System.String].get_Item (System.String key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EMInterface.CreateMenuMain (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EMInterface.OpenMenu (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EMInterface.cmdEventMenu (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EMInterface.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    this exception is thrown whenever I (as an admin) use the /event command and other players (non admins) use the /event command
     
  18. is it possible to run 2 events at the same time? because i have several arenas, and it would be nice to run games on arenas simultaneously. thx
     
  19. Tried deleting all the event related mods I had, all the config files, and all the data files. Downloaded new copies of each mod, installed them, and still get this issue. Also get the follow error whenever any player disconnects from the server. But that is with EventManager.
    Code:
    (21:35:23) | [Oxide] 21:35 [Error] Failed to call hook 'OnPlayerDisconnected' on plugin 'EventManager v3.0.73' (NullReferenceException: Object reference not set to an instance of an object)
    (21:35:23) | [Oxide] 21:35 [Stacktrace]   at Oxide.Plugins.EventManager.OnPlayerDisconnected (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
  20. Figured out what is causing this error. I put a debug output line of code right before the first line of CreateMenuMain(). Here is the output.
    Code:
    [Event Manager Menu Interface] UIColors=System.Collections.Generic.Dictionary`2[System.String,System.String]  UIColors.Count=0
    This shows that the UIColors dictionary doesn't have any colors added to it. I poked around where colors get added, and they only get added in the OnServerInitialized() function. The Loaded() function doesn't add the colors to the dictionary, so if something is changed or reset, you get this error and the only fix is to do a server restart or add the needed code to the Loaded() function.