EventManager

Moved

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

4.92857/5, 56 likes
  1. Did you delete your config before updating?
     
  2. Reneb , Killyou...


    I have some errors...

    I set the Event, All worked perfect,
    I set DeathMatch and GunGame, perfectly running with 15 users.
    All nice without errors and warnings.

    BUT...
    When I changed the RESPAWN style, from NONE to TIMER:
    I set 2 seconds for timer, Works fine...

    Then I add 1 second for set 3 seconds.

    And from that moment all the Timers on Oxide are broken, and the players dont WakeUp when die. Just fix the situation Disconnecting.
    and right now Im having this errors:

    STarting with this:

    Code:
    (00:59:36) | [Oxide] 22:59 [Error] Failed to call hook 'OnEventPlayerDeath' on plugin 'ArenaDeathmatch v1.2.1' (NullReferenceException: )
    (00:59:36) | [Oxide] 22:59 [Debug]   at (wrapper managed-to-native) UnityEngine.Behaviour:get_enabled ()
      at Oxide.Plugins.EventManager.AddUI (Oxide.Game.Rust.Cui.CuiElementContainer element) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager.UpdateMessages (Boolean destroyed) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager.PopupMessage (System.String message) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ArenaDeathmatch.AddKill (.BasePlayer player, .BasePlayer victim) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ArenaDeathmatch.OnEventPlayerDeath (.BasePlayer victim, .HitInfo hitinfo) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ArenaDeathmatch.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
    (00:59:36) | [STARS] AndresZorro[1014423/76561198276001739] fired invalid projectile: Missing ID (24)
    (00:59:37) | [Oxide] 22:59 [Error] Failed to run a 1.00 timer in 'EventManager v3.0.21' (NullReferenceException: )
    (00:59:37) | [Oxide] 22:59 [Debug]   at (wrapper managed-to-native) UnityEngine.Behaviour:get_enabled ()
      at Oxide.Plugins.EventManager.AddUI (Oxide.Game.Rust.Cui.CuiElementContainer element) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager.UpdateMessages (Boolean destroyed) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager.DestroyUpdate () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager.DestroyPopupUI (Oxide.Plugins.MessageData element) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager+MessageData.StartDestroy () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager+MessageData.<StartDestroy>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
    (00:59:45) | [Oxide] 22:59 [Error] Failed to call hook 'OnEventPlayerDeath' on plugin 'ArenaDeathmatch v1.2.1' (NullReferenceException: )
    (00:59:45) | [Oxide] 22:59 [Debug]   at (wrapper managed-to-native) UnityEngine.Behaviour:get_enabled ()
      at Oxide.Plugins.EventManager.AddUI (Oxide.Game.Rust.Cui.CuiElementContainer element) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager.UpdateMessages (Boolean destroyed) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EventManager.PopupMessage (System.String message) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ArenaDeathmatch.AddKill (.BasePlayer player, .BasePlayer victim) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ArenaDeathmatch.OnEventPlayerDeath (.BasePlayer victim, .HitInfo hitinfo) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ArenaDeathmatch.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
    then this:

    Code:
    (01:00:30) | [Oxide] 23:00 [Error] Failed to run a 60.00 timer in 'PlaytimeTracker v0.1.31' (NullReferenceException: )
    (01:00:30) | [Oxide] 23:00 [Debug]   at (wrapper managed-to-native) UnityEngine.Component:get_transform ()
      at Oxide.Game.Rust.Libraries.Covalence.RustPlayer.Position () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.CheckPosition (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.AddTime (IPlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker.ResetTimer (IPlayer player, Boolean isNew) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.PlaytimeTracker+<ResetTimer>c__AnonStorey0.<>m__1 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
    And after that... I tried to modify Classes and get this error:

    Code:
    (01:05:41) | [Oxide] 23:05 [Error] Failed to call hook 'ccmdAddClass' on plugin 'EMInterface v1.0.1' (ArgumentException: An element with the same key already exists in the dictionary.)
    (01:05:41) | [Oxide] 23:05 [Debug]   at System.Collections.Generic.Dictionary`2[System.String,System.String].Add (System.String key, System.String value) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EMInterface.GetKitItems (System.String kit) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EMInterface.ccmdAddClass (.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    I tried the following
    Reload EventManager
    get me working again the Classes changer and stuff on the interface...
    but the Timer Error are still present and totaly broke the PlaytimeTracker (serverreward plugin associated, that pay for time playing at server)


    I hope this "debug" help you to improve this amazing plugin
     
  3. Did you change it whilst the match was being played?
     
  4. No, I think not,
    realy Now I dont remember,
    But the first change on Respawn timer 0 to 2 seconds works fine.
    But when I added the 1 second later was the problem.

    Realy I think Was while the event joining time... I am not sure now, sorry
     
  5. Auto events does not work
    Auto events created
    But without EMInterfake run TimedEvent

    All the time to run in the game arena
    I want to automate

    "All: 05.19.AM: oxide.reload GunGame",
    "All: 05.20.AM: oxide.reload ArenaDeathmatch",
    "All: 05.21.AM: oxide.reload LastManStanding",
    "All: 05.22.AM: oxide.reload TeamDeathmatch",
    "All: 05.23.AM: oxide.reload EventManager",
    "All: 05.24.AM: event launch",
    "All: 06.00.AM: oxide.reload EventManager",
    "All: 06.01.AM: event launch",

    Arena does not work TimedEvent on the new version EventManager


    older version EventManager restart 1:00
    launch event

    event.jpg — RGhost — файлообменник

    Automatically launch the arena each hour
    Without going into the game

    Code:
    12:51 AM [Debug] Plugin compilation is already queued: EventManager (0.094 ago)
    00:51 [Info] EventManager, EMInterface, GunGame, LastManStanding, TeamDeathmatch and ArenaDeathmatch were compiled successfully in 11328ms
    00:51 [Warning] Calling 'Unload' on 'ArenaDeathmatch v1.2.1' took 204ms
    00:51 [Info] Unloaded plugin ArenaDeathmatch v1.2.1 by Reneb
    00:51 [Warning] Calling 'Unload' on 'GunGame v0.4.1' took 204ms
    00:51 [Info] Unloaded plugin GunGame v0.4.1 by k1lly0u
    00:51 [Warning] Calling 'Unload' on 'LastManStanding v2.0.1' took 203ms
    00:51 [Info] Unloaded plugin LastManStanding v2.0.1 by k1lly0u
    00:51 [Warning] Calling 'Unload' on 'TeamDeathmatch v0.3.2' took 205ms
    00:51 [Info] Unloaded plugin TeamDeathmatch v0.3.2 by k1lly0u
    00:51 [Info] [Event Manager] Saved player statistics
    00:51 [Warning] Calling 'Unload' on 'EventManager v3.0.21' took 450ms
    00:51 [Info] Unloaded plugin Event Manager v3.0.21 by Reneb / k1lly0u
    00:51 [Warning] Calling 'Unload' on 'EMInterface v1.0.1' took 541ms
    00:51 [Info] Unloaded plugin Event Manager Menu Interface v1.0.1 by k1lly0u
    00:51 [Debug] GunGame plugin is waiting for requirements to be loaded: EventManager
    00:51 [Debug] LastManStanding plugin is waiting for requirements to be loaded: EventManager
    00:51 [Debug] TeamDeathmatch plugin is waiting for requirements to be loaded: EventManager
    00:51 [Debug] ArenaDeathmatch plugin is waiting for requirements to be loaded: EventManager
    00:51 [Info] Loaded plugin Event Manager v3.0.21 by Reneb / k1lly0u
    00:51 [Warning] Calling 'OnServerInitialized' on 'EventManager v3.0.21' took 613ms
    00:51 [Info] Loaded plugin ArenaDeathmatch v1.2.1 by Reneb
    00:51 [Info] Loaded plugin TeamDeathmatch v0.3.2 by k1lly0u
    00:51 [Warning] Calling 'OnServerInitialized' on 'TeamDeathmatch v0.3.2' took 300ms
    00:51 [Info] Loaded plugin LastManStanding v2.0.1 by k1lly0u
    00:51 [Info] Loaded plugin GunGame v0.4.1 by k1lly0u
    00:51 [Warning] Calling 'OnServerInitialized' on 'GunGame v0.4.1' took 1473ms [GARBAGE COLLECT]
    00:51 [Info] Loaded plugin Event Manager Menu Interface v1.0.1 by k1lly0u
    00:51 [Warning] Calling 'OnServerInitialized' on 'EMInterface v1.0.1' took 690ms
    00:51 [Error] [Event Manager] Error generating a default event config for game: ArenaDeathmatch
    Invalid spawnfile selected
    Invalid kit selected
    00:51 [Info] [Event Manager] Registered event game: ArenaDeathmatch
    00:51 [Info] [Event Manager] Registered event game: TeamDeathmatch
    00:51 [Info] [Event Manager] Registered event game: LastManStanding
    00:51 [Error] [Event Manager] Error generating a default event config for game: GunGame
    Invalid spawnfile selected
    00:51 [Info] [Event Manager] Registered event game: GunGame
    00:51 [Warning] [Event Manager] --- Validating all event configs and auto events ---
    00:51 [Warning] [Event Manager] --- Finished event validation ---
    00:51 [Info] [Event Manager Menu Interface] You must set the event game first
    oxide.reload EventManager event launch

    Code:
    {
      "Event_List": {
        "GunGame_1": {
          "CloseOnStart": false,
          "DisableItemPickup": true,
          "UseClassSelector": false,
          "MinimumPlayers": 2,
          "MaximumPlayers": 12,
          "ScoreLimit": 0,
          "RespawnTimer": 0,
          "GameRounds": 0,
          "EnemiesToSpawn": 0,
          "EventType": "GunGame",
          "Kit": null,
          "WeaponSet": null,
          "Spawnfile": "gg",
          "Spawnfile2": null,
          "ZoneID": "55931748",
          "GameMode": 0,
          "RespawnType": 0,
          "SpawnType": 0
        },
        "LastManStanding_1": {
          "CloseOnStart": false,
          "DisableItemPickup": true,
          "UseClassSelector": false,
          "MinimumPlayers": 2,
          "MaximumPlayers": 5,
          "ScoreLimit": 0,
          "RespawnTimer": 0,
          "GameRounds": 0,
          "EnemiesToSpawn": 0,
          "EventType": "LastManStanding",
          "Kit": "gladiator",
          "WeaponSet": null,
          "Spawnfile": "gladiator",
          "Spawnfile2": null,
          "ZoneID": "65798204",
          "GameMode": 0,
          "RespawnType": 0,
          "SpawnType": 0
        },
        "ArenaDeathmatch_1": {
          "CloseOnStart": false,
          "DisableItemPickup": true,
          "UseClassSelector": false,
          "MinimumPlayers": 2,
          "MaximumPlayers": 8,
          "ScoreLimit": 20,
          "RespawnTimer": 0,
          "GameRounds": 0,
          "EnemiesToSpawn": 0,
          "EventType": "ArenaDeathmatch",
          "Kit": "admin",
          "WeaponSet": null,
          "Spawnfile": "dm",
          "Spawnfile2": null,
          "ZoneID": "27160033",
          "GameMode": 0,
          "RespawnType": 0,
          "SpawnType": 0
        },
        "TeamDeathmatch_1": {
          "CloseOnStart": false,
          "DisableItemPickup": true,
          "UseClassSelector": false,
          "MinimumPlayers": 1,
          "MaximumPlayers": 8,
          "ScoreLimit": 20,
          "RespawnTimer": 0,
          "GameRounds": 0,
          "EnemiesToSpawn": 0,
          "EventType": "TeamDeathmatch",
          "Kit": "admin",
          "WeaponSet": null,
          "Spawnfile": "tdma",
          "Spawnfile2": "tdmb",
          "ZoneID": "97243718",
          "GameMode": 0,
          "RespawnType": 0,
          "SpawnType": 0
        }
      },
      "Classes": [],
      "AutoEvent_Config": {
        "GameInterval": 1,
        "AutoCancel": false,
        "AutoCancel_Timer": 0,
        "AutoEvent_List": [
          {
            "EventConfig": "GunGame_1",
            "TimeLimit": 15,
            "TimeToJoin": 30,
            "TimeToStart": 30
          },
          {
            "EventConfig": "LastManStanding_1",
            "TimeLimit": 15,
            "TimeToJoin": 30,
            "TimeToStart": 30
          },
          {
            "EventConfig": "ArenaDeathmatch_1",
            "TimeLimit": 15,
            "TimeToJoin": 30,
            "TimeToStart": 30
          },
          {
            "EventConfig": "TeamDeathmatch_1",
            "TimeLimit": 15,
            "TimeToJoin": 30,
            "TimeToStart": 30
          }
        ]
      }
    }
    Create no timers to start up if ?
    "ScoreLimit": 20, 2-4 kill arena off
     
    Last edited by a moderator: Dec 26, 2016
  6. Kill
    can you add a feature,
    when the Event is sets on AutoEvents
    you have the announce about the Event is open for join,
    but sometimes just Joins 1 or 2 and the event is cancelled,
    and people just see "The event was cancelled"... will be great to show
    "the event was cancelled because there is not the mininum players to start (x/x)"
    and when the Event is announced, can be better to advice that the Event will start only if reach X amount of players.
    :)

    what you think?
     
  7. delete msg
     
    Last edited by a moderator: Dec 28, 2016
  8. Is there a way to change the default messages? I have changed the .cs file and changed the messages but it doesn't seem to alter anything, event after I have unloaded and reloaded.


    Edit: Found it ;) lang folder.
     
    Last edited by a moderator: Dec 27, 2016
  9. Love the new interface and setup, Great job dude.

    Would it be possible to integrate Human NPC so players can only open the GUI by interacting with an NPC?, much like the server rewards store.
     
  10. delete msg
     
    Last edited by a moderator: Dec 28, 2016
  11. Hi, don't know if this is the right thread to post.

    I have loot boxes (tier 1-3) (or I can use normal boxes) spreaded all over my arena. Are there a way to "refill" those loot boxes every time the event is started? So that every time the event is started there are random items in the loot boxes every time.
     
  12. Hi,

    I have multiple loot boxes spreaded all over my arena. Can the Event Manager plugin "refill" all the loot boxes inside the specified zone? Thus randomizing the loot every time the event start. If not.
    Are there any other plugin that can accomplish that goal?

    Thank you
     
  13. EventManager is not able for this, but you can use Replenish Plugin and replenish those loot boxes - i use it also :)
     
  14. Thank you soo much
     
  15. Can the Zone manager in the Event manager make it that a building can be broken in the event, then be reset after the event is over?
     
  16. Use this - Replenish for Rust | Oxide. One thing you need to consider though is /trade, as it's not blockable in zones, although you could unload the plugin during events.

    Edit - Just realised someone replied to this. No it can't, but you could just design it around weak structures like wood/twigs or use the copy and paste plugin. Copy-Paste for Rust | Oxide. Unsure if it works with replenish as the boxes get an ID.
     
    Last edited by a moderator: Dec 28, 2016
  17. I was also thinking about that, and I think it should be possible, but I think it will work a lil bit glitchy because once in a while rust respawns them randomly.

    Besides this, everything is working how it should on my server, got all events in 1 big custom arena, included respawn timers set to 3, no problems at all.
    Always make sure you check all settings 2-3 times before posting, Do not run this plugin if you think it's easy to maintain and set up!
    Keep in mind, that this is a game within a game, and will cost you at least 2 hours a week maintenance, building, choosing spawns locations, making sure all the names in config are right, spawnpoint setup to random or consecutive.

    I understand many people want this running, but not everyone has the skills to run it. If your one of those people, please think about how many time the maker is busy offline fixing for next update, and don't get agitated here.
    Comparing to the complexity of this plugin, it's realy user-friendly to set up, but you need to learn yourself some skills for this.

    This is no blame or something, just see some posts of people that reacting in a way that wont help them further ;)

    I also want to ask the peeps that knows perfectly how it works to spend a lil time sometimes to check whats been said here and see if they can help.
    Together, we can do more that 1 that needs to debug, update, answer questions and have at least 5 other plugins they maintain.

    So, this is what I see last months, just wanted to share my opinion!
    Happy new year everybody ;)
     
  18. /event join,No reaction,Why?
     
  19. Rick, you need to use EMIInterface now and then click on Admin and open the event.
     
  20. Open, when I enter /event join, tip: you are in the event, but I'm still in place