EventManager

Moved

Total Downloads: 10,609 - First Release: Dec 16, 2014 - Last Update: Apr 19, 2018

4.92857/5, 56 likes
  1. reload EventManager
    Then reload the event
    example reload GunGame
     
  2. console -> reload EventManager

    here the Text.

    [Oxide] 18:49 [Error] Error while compiling EventManager.cs(156,64): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
     
  3. Here you go heres a temporary fix this should work if after you add this plugin and your event plugin doesnt work tell me which event and ill give you a fixed file glad to help trying to be of use on this website cause i want to help people that had the same problems i did
    [DOUBLEPOST=1479665912][/DOUBLEPOST]
    Hey i was wondering how do you make plugins?
     

    Attached Files:

  4. You are not running the latest please update
     
  5. Hello, I may need help withg the autoevent...There is some detailed giude? It seems to be all were should be but it says that no event were initialized...
     
  6. I have on my server the new Update....
     
  7. Then upload the one you have as that error says you dont or you have not deleted your config from the 2.0.0 update
     
  8. Ok thx :) Sorry..
     
  9. What new update my server is fully updated too it still works
     
  10. is working for you the auto event?
     
  11. Code:
    (20:30:18) | [Oxide] 12:30 [Error] Failed to call hook 'OnServerInitialized' on plugin 'GunGame v0.4.1' (NullReferenceException: Object reference not set to an instance of an object)
    (20:30:18) | [Oxide] 12:30 [Debug]   at Oxide.Plugins.GunGame.CheckValidSet () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GunGame.OnServerInitialized () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GunGame.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
    Also, I've set up my Team dm and DM events but cant add them to auto events, when I click the event in event config it does nothing.

    EDIT: It's if you've renamed the event, works fine if you leave the name as default.

    EDIT2: Ok, it likes if I rename it to Deathmatch_Guns but not "Deathmatch (Guns)"
     
    Last edited by a moderator: Nov 20, 2016
  12. "AutoCancel": true, 1 - 2 - 3 pvp arena started
    player /event leave and pvp arena not worked

    "AutoCancel": false, ??

    all the time manager restart?

    AutoEvent


    Code:
    {
      "Announce_Event": false,
      "AnnounceDuring_Event": false,
      "AnnounceEvent_Interval": 1800,
      "Battlefield_Timer": 1200,
      "Default_Gamemode": "GunGame",
      "Default_Spawnfile": "gg",
      "KillDeserters": true,
      "Messaging_MainColor": "#FF8C00",
      "Messaging_MsgColor": "#939393",
      "Required_AuthLevel": 1,
      "UseClassSelector_Default": true,
      "UseEconomicsAsTokens": false,
      "z_AutoEvents": {
        "AutoCancel": true,
        "AutoCancel_Timer": 0,
        "GameInterval": 10,
        "z_AutoEventSetup": [
          {
            "CloseOnStart": false,
            "EventMode": 1,
            "GameType": "Last Man Standing",
            "Kit": "gladiator",
            "MaximumPlayers": 5,
            "MinimumPlayers": 2,
            "Spawnfile": "gladiator",
            "TimeLimit": 0,
            "TimeToJoin": 15,
            "UseClassSelector": false,
            "ZoneID": 65798204
          },
          {
            "CloseOnStart": false,
            "EventMode": 1,
            "GameType": "Deathmatch",
            "Kit": "admin",
            "MaximumPlayers": 8,
            "MinimumPlayers": 2,
            "Spawnfile": "dm",
            "TimeLimit": 0,
            "TimeToJoin": 30,
            "UseClassSelector": false,
            "ZoneID": 27160033
          },
          {
            "CloseOnStart": false,
            "EventMode": 1,
            "GameType": "GunGame",
            "Kit": "admin",
            "MaximumPlayers": 12,
            "MinimumPlayers": 2,
            "Spawnfile": "gg",
            "TimeLimit": 0,
            "TimeToJoin": 30,
            "UseClassSelector": false,
            "ZoneID": 55931748
          },
          {
            "CloseOnStart": true,
            "EventMode": 1,
            "GameType": "ChopperSurvival",
            "Kit": "admin",
            "MaximumPlayers": 5,
            "MinimumPlayers": 1,
            "Spawnfile": "vert",
            "TimeLimit": 0,
            "TimeToJoin": 30,
            "UseClassSelector": false,
            "ZoneID": 2319323
          }
        ]
      }
    }
     
  13. Reloading the plugin so the events are registered properly is very clunky

    Code:
    (21:32:32) | [Oxide] 13:32 [Error] [Event Manager] Event game not registered: ArenaDeathmatch
    (21:32:32) | [Oxide] 13:32 [Error] [Event Manager] Event game not registered: ArenaDeathmatch
    (21:32:32) | [Oxide] 13:32 [Error] [Event Manager] Event game not registered: TeamDeathmatch
    (21:32:32) | [Oxide] 13:32 [Error] [Event Manager] No valid event config selected for autoevent : #0
    (21:32:32) | [Oxide] 13:32 [Error] [Event Manager] No valid event config selected for autoevent : #1
    this after making some tweaks following some successful events
    [DOUBLEPOST=1479677707][/DOUBLEPOST]
    Code:
    (21:34:49) | [Oxide] 13:35 [Error] [Event Manager] Error generating a default event config for game: ArenaDeathmatch
    Invalid spawnfile selected
    Invalid kit selected
    (21:34:49) | [Oxide] 13:35 [Info] [Event Manager] Registered event game: ArenaDeathmatch
    (21:34:49) | [Oxide] 13:35 [Info] Loaded plugin TeamDeathmatch v0.3.0 by k1lly0u
    (21:34:49) | [Oxide] 13:35 [Error] [Event Manager] Error generating a default event config for game: TeamDeathmatch
    At the moment I gotta reload individual event plugins for it to work, V2 all you had to reload was EventManager and the rest would follow suit, no idea why it's saying I don't have config
     
    Last edited by a moderator: Nov 20, 2016
  14. Why the hell is it when i shoot someone in the head it goes through there head please help this is dumb
     
  15. EDIT, server restart fixed errors seen after transitioning from V2 to V3
     
    Last edited by a moderator: Nov 21, 2016
  16. The invalid Spawnfile and kit selected warnings are due to inside ArenaDeathmatch.json has default properties, change them to your server values and those will go away. It is only telling you that it is trying to creat a default event config, but it cannot because the values inside the JSON file are invalid.

    I reload EMInterface and everything else follows suit, not EventManager.
     
  17. Ok, thanks, got it working, although I notice the bug of people's inventory being cleared after an event ends is much more prevalent in V3 than V2

    Something weird with CTF, the match seems to be instantly over as soon as you join and you just get spat back out again, says team A won etc. Time limit and score limit are all there so shouldnt be doing it. Have removed it from auto events for the time being,

    Code:
        "CaptureTheFlag_1": {
          "CloseOnStart": false,
          "DisableItemPickup": true,
          "UseClassSelector": false,
          "MinimumPlayers": 2,
          "MaximumPlayers": 20,
          "ScoreLimit": 10,
          "RespawnTimer": 0,
          "GameRounds": 0,
          "EnemiesToSpawn": 0,
          "EventType": "CaptureTheFlag",
          "Kit": "teamdm",
          "WeaponSet": null,
          "Spawnfile": "teamdm_a",
          "Spawnfile2": "teamdm_b",
          "ZoneID": "31914013",
          "GameMode": 0,
          "RespawnType": 0,
          "SpawnType": 0
    Ah I see others have raised the CTF and the respawning with nothing issue. Think it's back to V2 yet again :( Man I wish the bugs would get ironed out as I love the GUI and overlays of V3.

    Anyone got a working V2 CTF?
     
    Last edited by a moderator: Nov 21, 2016
  18. Is it possible to make the players to be automatically placed in the event immediately as the entered the game, and that would not end Event and was always open. Thanks in advance for your reply
     
  19. Hello, I doone all as is write but when I type the autolauch command in the console this is what I got

    > event launch deathmach
    [Oxide] 05:09 [Error] Failed to call hook 'ccmdEvent' on plugin 'EventManager v2.0.24' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 05:09 [Debug] at Oxide.Plugins.EventManager.AutoEventNext () [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EventManager.LaunchEvent () [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EventManager.ccmdEvent (.Arg arg) [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 name, System.Object[] args) [0x00000] in <filename unknown>:0