EventManager

Moved

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

4.92857/5, 56 likes
  1. Hi all,
    MAybe silly question, once plugin is installed I have the zones, kits etc all ready - I then use in console event.game deathmatch and it retuns with "This Game Deathmatch isn't registered, did you reload the game after loadeding Event - core?"

    Any suggestions?
     
  2. offers better read the description of the plugin
     
  3. I was being a bannana - once i added Teamdeathmatch it worked, I thought deathmatch was part of the events plugin. I presume it was seperate.
     
  4. Hi all,

    I have a little(big) pb with this Plugins.

    when I did the first time, everything has to work perfectly.

    But since 2 days my impossible to change the config file "Eventmanager.json" after a few seconds , the file back to its original state and when I did event.launch he said:

    [Oxide] 11:27 [Info] [Event Manager] No Events were successfully initialized, check that your events are correctly configured in AutoEvents - Config

    My File :
    Code:
    {
      "AutoEvents - Activate": True,
      "AutoEvents - Announce Open Interval": 300,
      "AutoEvents - Config": {
        "0": {
          "closeonstart": "false",
          "gametype": "Deathmatch",
          "maxplayers": "30",
          "minplayers": "5",
          "spawnfile": "arene",
          "timelimit": "1800",
          "timetojoin": "600"
        },
        "1": {
          "closeonstart": "false",
          "gametype": "GunGame",
          "maxplayers": "30",
          "minplayers": "5",
          "spawnfile": "arene",
          "timelimit": null,
          "timetojoin": "600"
        },
        "2": {
          "closeonstart": "True",
          "gametype": "Choppersurvival",
          "maxplayers": "30",
          "minplayers": "5",
          "spawnfile": "arene",
          "timelimit": null,
          "timetojoin": "600"
        }
      },
      "AutoEvents - Event cancel timer": 600,
      "AutoEvents - Interval between 2 events": 1800,
      "Broadcast - Broadcast join message during a round": false,
      "Broadcast - Join message interval": 300,
      "Default - Game": "Choppersurvival",
      "Default - Spawnfile": "arene",
      "Messages - Error - Multiple players found": "Plusieurs joueurs trouvé",
      "Messages - Error - No players found": "Aucun joueur trouvé",
      "Messages - Event - Begin": "L'Événement : {0} est sur le point de commencer !",
      "Messages - Event - Cancelled": "L'événement a été annulé !",
      "Messages - Event - Closed": "L'inscription à l'événement est maintenant fermé !",
      "Messages - Event - End": "Tous les joueurs repop , {0} a pris fin !",
      "Messages - Event - Join": "{0} a rejoint l' événement !  (Total Players: {1})",
      "Messages - Event - Left": "{0} a quitté l' événement ! (Total Players: {1})",
      "Messages - Event - MaxPlayersReached": "L'événement {0} a atteint les joueurs max. Vous ne pouvez pas rejoindre pour l'instant",
      "Messages - Event - MinPlayersReached": "L'événement {0} a atteint le minimum de joueurs et va commencer dans { 1 } secondes",
      "Messages - Event - Opened": "L'événement est maintenant ouvert : {0}, Pour rejoindre : /event_join",
      "Messages - Event - Pre-End": "L'Événement : {0} est maintenant terminée, en attente pour les joueurs de respawn à la maison!",
      "Messages - Event Error - Already Closed": "L'événement est déjà fermé .",
      "Messages - Event Error - Already Joined": "Vous êtes déjà dans l' événement.",
      "Messages - Event Error - Already Opened": "L'événement est déjà ouvert.",
      "Messages - Event Error - Already Started": "L'événement a déjà commencé ",
      "Messages - Event Error - Close&End": "L'événement doit être fermé et fini avant d'utiliser cette commande.",
      "Messages - Event Error - No Games Undergoing": "L'événement n'est pas en cours.",
      "Messages - Event Error - No SpawnFile": "Un fichier de spawn doit d'abord être chargé.",
      "Messages - Event Error - Not In Event": "Vous n'êtes pas dans l' événement.",
      "Messages - Event Error - Not Registered Event": "Ce jeu {0} est pas enregistré, avez-vous rechargez le jeu après le chargement du Core?",
      "Messages - Event Error - Not Set": "L'événement doit d'abord être choisi.",
      "Messages - Event Error - SpawnFile Is Null": "Le spawnfile ne peut pas être définie sur null",
      "Messages - Permissions - Not Allowed": "Vous n'êtes pas autorisé à utiliser cette commande",
      "Messages - Reward - Current": "Vous avez {0} jetons",
      "Messages - Reward - Doesnt Exist": "Cette récompense n'existe pas",
      "Messages - Reward - GUI Message": "Vous avez actuellement <color=green>{0}</color> jetons.",
      "Messages - Reward - Help": "/reward \"RewardName\" Amount",
      "Messages - Reward - Message": "Vous avez actuellement {0} jetons pour le /reward shop",
      "Messages - Reward - Negative Amount": "Le montant à acheter ne peut pas être 0 ou négatif.",
      "Messages - Reward - Not Enough Tokens": "Vous ne disposez pas de suffisamment de jetons pour acheter {1} de {0}.",
      "Messages - Reward - Reward Description": "Reward Name: {0} - Cost: <color={4}>{1}</color> - {2} - Amount: {3}",
      "Messages - Status - Closed & End": "Il n'y a actuellement aucun événement",
      "Messages - Status - Closed & Started": "L'événement {0} a déjà commencé , il est trop tard pour rejoindre.",
      "Messages - Status - Open": "L'événement {0} est actuellement ouvert pour l'inscription : / event_join",
      "Messages - Status - Open & Started": "L'événement {0} a commencé , mais il est encore ouvert: /event_join",
      "Settings - authLevel": 1,
    }

    sorry for my english, i 'm french and does not speak very well ;-)

    Thank you for you anwser
     
  5. Hi Reneb,

    In Event Manager is it possible in the config to change the following:

    Allow Sleeping bags to be used in events, is there string in the config where I am able to change this?
     
  6. You were able to get Teamdeathmatch to work as an auto event?
     
  7. Hi Gystlez,

    Testing it today - I will let you know if I achieve completion, what timezone are you in? Do you use TS - we may be able to help each other?
     
  8. I'm in PST. I have TS yes. Feel free to add me on steam or we can message each other our TS. :)
     
  9. Is this the correct mod to Run the GunGame and other events?

    Thanks
     
  10. Yes it please note when running event manager and registering the game type, it is case sensitive.
     
  11. Need some help, can't get my auto event timers to work properly...they just don't seem to end the event....i get this error here

    [Oxide] 22:35 [Error] Failed to run a 600.00 timer in 'EventManager v1.2.20' (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)
    [Oxide] 22:35 [Debug] at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
    at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
    at System.String.Format (System.String format, System.Object arg0) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EventManager.CancelEvent (System.String reason) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EventManager.<OnEventStartPostAutoEvent>m__6 () [0x00000] in <filename unknown>:0
    at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0

    {
    "AutoEvents - Activate": true,
    "AutoEvents - Announce Open Interval": 60,
    "AutoEvents - Config": {
    "0": {
    "closeonstart": "false",
    "gametype": "GunGame",
    "maxplayers": "50",
    "minplayers": "0",
    "spawnfile": "arena1",
    "timelimit": "2700",
    "timetojoin": "30"
    },
    "1": {
    "closeonstart": "false",
    "gametype": "Battlefield",
    "maxplayers": "50",
    "minplayers": "0",
    "spawnfile": "arena1",
    "timelimit": 2700,
    "timetojoin": "30"
    }
    },
    "AutoEvents - Event cancel timer": 2700,
    "AutoEvents - Interval between 2 events": 30,
    "Broadcast - Broadcast join message during a round": true,
    "Broadcast - Join message interval": 120,
    "Default - Game": "GunGame",
    "Default - Spawnfile": "arena1",
    "Messages - Error - Multiple players found": "Multiple players found",
    "Messages - Error - No players found": "No players found",
    "Messages - Event - Begin": "Event: {0} is about to begin!",
    "Messages - Event - Cancelled": "The Event was cancelled!",
    "Messages - Event - Closed": "The Event entrance is now closed!",
    "Messages - Event - End": "All players respawned, {0} has ended!",
    "Messages - Event - Join": "{0} has joined the Event! (Total Players: {1})",
    "Messages - Event - Left": "{0} has left the Event! (Total Players: {1})",
    "Messages - Event - MaxPlayersReached": "The Event {0} has reached max players. You may not join for the moment",
    "Messages - Event - MinPlayersReached": "The Event {0} has reached min players and will start in {1} seconds",
    "Messages - Event - Opened": "The Event is now open for : {0} ! Type /event_join to join!",
    "Messages - Event - Pre-End": "Event: {0} is now over, waiting for players to respawn before sending home!",
    "Messages - Event Error - Already Closed": "The Event is already closed.",
    "Messages - Event Error - Already Joined": "You are already in the Event.",
    "Messages - Event Error - Already Opened": "The Event is already open.",
    "Messages - Event Error - Already Started": "An Event game has already started.",
    "Messages - Event Error - Close&End": "The Event needs to be closed and ended before using this command.",
    "Messages - Event Error - No Games Undergoing": "An Event game is not underway.",
    "Messages - Event Error - No SpawnFile": "A spawn file must first be loaded.",
    "Messages - Event Error - Not In Event": "You are not currently in the Event.",
    "Messages - Event Error - Not Registered Event": "This Game {0} isn't registered, did you reload the game after loading Event - Core?",
    "Messages - Event Error - Not Set": "An Event game must first be chosen.",
    "Messages - Event Error - SpawnFile Is Null": "The spawnfile can't be set to null",
    "Messages - Permissions - Not Allowed": "You are not allowed to use this command",
    "Messages - Reward - Current": "You have {0} tokens",
    "Messages - Reward - Doesnt Exist": "This reward doesn't exist",
    "Messages - Reward - GUI Message": "You currently have <color=green>{0}</color> tokens.",
    "Messages - Reward - Help": "/reward \"RewardName\" Amount",
    "Messages - Reward - Message": "You currently have {0} for the /reward shop",
    "Messages - Reward - Negative Amount": "The amount to buy can't be 0 or negative.",
    "Messages - Reward - Not Enough Tokens": "You don't have enough tokens to buy {1} of {0}.",
    "Messages - Reward - Reward Description": "Reward Name: {0} - Cost: <color={4}>{1}</color> - {2} - Amount: {3}",
    "Messages - Status - Closed & End": "There is currently no event",
    "Messages - Status - Closed & Started": "The Event {0} has already started, it's too late to join.",
    "Messages - Status - Open": "The Event {0} is currently opened for registration: /event_join",
    "Messages - Status - Open & Started": "The Event {0} has started, but is still opened: /event_join",
    "Settings - authLevel": 1
    }
     
  12. Coopaloop,

    Have you tried launching the auto-event with only one event set-up? This would a be a great starting method, do you also have all three plugins added in to work, i.e Battlefield & GunGame?
     
  13. I have problems after a server restart: Everything works fine. Except the kit is gone. I always have to assign event.kit again.
     
  14. I have edited EventManager to be able to take "kit" : "example" as a config option in the AutoEvent config, it assigns the kit on event start so you can have multiple instances of deathmatch setup with different kits each time. If anyone wants it I'll post it, or if the plugin authors want to add my changes in I'm just here to contribute. <3 Backup your config before loading the plugin, the new kit entry should write to the default config.
    Just rename it to remove the _AutoKit part of the name (So it's EventManager.cs) and it will load right up.

    Example Config:

    Code:
    "AutoEvents - Config": {
        "0": {
          "closeonstart": "false",
          "gametype": "Deathmatch",
          "kit": "assault",
          "maxplayers": "10",
          "minplayers": "1",
          "spawnfile": "dm_small1_sf",
          "timelimit": "60",
          "timetojoin": "30"
        },
        "1": {
          "closeonstart": "false",
          "gametype": "Deathmatch",
          "kit": "bows",
          "maxplayers": "10",
          "minplayers": "1",
          "spawnfile": "dm_small2_sf",
          "timelimit": "60",
          "timetojoin": "30"
        }
      },
     

    Attached Files:

  15. I'll hopefully have some time this weekend to finish testing the update. This is already included plus a bunch of new features
     
  16. The plug is fantastic, minus a few bug. Thank you for all your work k1llyOu ! :)

    The ONLY issue that is difficult to work around is player leaving the event with LOW THIRST and HUNGER values, this is especially a pain with Rusts new hunger and food system, some people are starving to death after events before they can get home for foods.

    Getting quite a few complaints from Arena goers.
    Any Temp fix or has anybody found a way around this yet?
    Thank you
     
    Last edited by a moderator: Apr 29, 2016
  17. The game has two of these errors

    (10:54:23) | [Oxide] 10:54 [Info] Loaded plugin Event Manager v1.2.20 by Reneb

    (10:54:23) | [Oxide] 10:54 [Info] [Event Manager] Registered event game: Last Man Standing

    (10:54:23) | [Oxide] 10:54 [Error] Failed to call hook 'OnSelectEventGamePost' on plugin 'GunGame v0.3.4' (NullReferenceException: Object reference not set to an instance of an object)

    (10:54:23) | [Oxide] 10:54 [Error] Failed to call hook 'RegisterGame' on plugin 'GunGame v0.3.4' (NullReferenceException: Object reference not set to an instance of an object)

    Last Man standing is not even loaded or set up in the manager.

    I would be grateful for any help here, thanks

    Llathrum
     

    Attached Files:

  18. k1lly0u updated Event Manager with a new update entry:

    2.0.0

     
  19. Updated and the time limit seems to work weirdly, I think it's working but the countdown is incorrect as it goes into the negative
     
  20. What did you set the time to? Is it for auto events or battlefield?