Deathmatch

Deathmatch event for EventManager

Total Downloads: 5,203 - First Release: Dec 16, 2014 - Last Update: May 21, 2017

4.84/5, 25 likes
  1. Code:
    [Oxide] 11:04 PM [Error] Failed to call hook 'OnEventPlayerDeath' on plugin 'Arena Deathmatch' (InvalidOperationException: Collection was modified; enumeration operation may not execute.)
    [Oxide] 11:04 PM [Debug] at System.Collections.Generic.List`1+Enumerator[Oxide.Plugins.ArenaDeathmatch+DeathmatchPlayer].VerifyState () [0x00000] in <filename unknown>:0 at System.Collections.Generic.List`1+Enumerator[Oxide.Plugins.ArenaDeathmatch+DeathmatchPlayer].MoveNext () [0x00000] in <filename unknown>:0 at Oxide.Plugins.ArenaDeathmatch.CheckScores () [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 (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Jun 2, 2015
  2. that seems to happen at the end of the match no idea why yet.
     
  3. Yeah, when this happens, plugin doesn't announce winner.
     
  4. probably cause it only announces to the winner lol XD no?
    i'll look into it ty
     
  5. Calytic

    Calytic Community Admin Community Mod

    This happens when you modify an object within a collection from inside a loop of the same collection. You must clone the enumator as a list before looping through it.

    http://stackoverflow.com/questions/...odified-enumeration-operation-may-not-execute
    [DOUBLEPOST=1433305266][/DOUBLEPOST]
    Code:
    void CheckScores()
    {
         // ..
         foreach (DeathmatchPlayer deathmatchplayer in DeathmatchPlayers.ToArray())
    
    Try that. I haven't tested it but that is likely the problem.
     
    Last edited: Jun 3, 2015
  6. Thx a lot for the tip :)
     
  7. Can we set arena to be opened all the time, even when theres only one player in it?
    Would be cool if we could make it last forever and players could join anytime.
     
  8. Im having a issue with the arena, occasionally when people die they get tped out of the arena back to where they were with out leaving the event and before its done. Any ideas?
    Also, is there a way to select what kit you start with other then changing it in config file?
    Thanks
     
  9. Hey, currently for me only the winner of the deathmatch keeps his inventory after the deathmatch but all other players are losing there inventory :/ im not sure why, it was working before. Heres a few things i changed, well first off there was a server wipe and all I did was reload the pugins after remaking a new arena and then made a new spawnfile in the new arena and named it the name name as the old one which was something like DeathmatchSpawnFile as said in the instructions, I reloaded in in console using "event.spawnfile DeathmatchSpawnFile and it worked good but not always a couple times ive been spawned in random places but with same inventory as before the round, also then I won a round and kept my inventory but other players lost theirs. But I'm not sure if this has anything to do with it but the way my arena is set up is its a big circle and the outside has a viewing spectate part of it that goes around the arena so players can spectate also, and using Zones Manager, I have the entire arena sert inside a zone with pvpgod true on and nobuild true and nodestr true, then i set the deathmatch zone only in the center were the actual arena floor is where the players fight during the match and on the arena floor pvpgod is off and its set up properly for deathmatch so basically there is a zone inside of a zone.. But i'm not sure if this is causing players to lose there inventory and being freshly spawned after the match except for the winner of the match or if its just because of the latest update or even maybe because its another mode within the plugin that I didn't notice or something. I'm not sure some players were upset to lost their inventory though :/ Everybody loves the deathmatch arena mod including myself though and would love to be able to use it the way it was working for me before but am unsure of how to fix it. For now I will try removing all the plugins and reinstalling and maybe not add 2 zones into the same space, (but if i cant use two zones for the arena to have pvpgod for spectaters and no pvpgod for deathmatch how can I have spectaters? Thank you so much for this awesome plugin I hope to hear back from you.
    [DOUBLEPOST=1433671630][/DOUBLEPOST]
    Yes I love the idea of being able to make different kits and choosing which one to use when starting the round, i would gladly donate for support! Another thing is can we use this plugin for multiple arenas?
    [DOUBLEPOST=1433682303,1433668263][/DOUBLEPOST]Few more notes, I reinstalled all related mods and did exactly as intructed and am only using the deathmatch zone to test if it works and I noticed that for me, nocorpse is no longer working bodies stay now, and I cant figure out how to edit the deathmatch zone, when I try to edit in via the Zones Manager plugin, it always goes back to the original settings, but I can't change all of the zone settings within the arena match such as noplayerloot, noboxloot, enter_message "XXXX", and leave_message "XXXX". Mainly, I'm very interested to know if it's ok to have the deathmatch zone inside of another larger zone both using their own settings, pvpgodmode on the outside for spectators and of coarse pvpgod disabled on the arena floor. That would be amazing. Thank you so much for all the hard work your putting into some of the greatest plugins for us admins and server owners to enjoy, we really appreciate what you do! =)
     
  10. If I make another zone over the arena on top of the deathmatch zone and set sleepgod to true so that you cant people until they wake up, will that work? As I read through the deathmatch config I can see the available zone rules but certtain rules arent listed
    Code:
      "Zone Settings": {
        "Auto Lights": "false",
        "Block Wounded": "true",
        "Erase Corpses": "true",
        "Kill Sleepers": "true",
        "Refuse Build": "true",
        "Refuse Deploy": "true",
        "Refuse Kit Redeem from /kit": "true",
        "Refuse Suicide": "true",
        "Refuse Teleportations": "true",
        "Reject None Players": "true",
        "Undestructible": "true"
      },
      "Zone Settings - Auto Lights": false,
      "Zone Settings - Block Wounded": true,
      "Zone Settings - Erase Corpses": true,
      "Zone Settings - Kill Sleepers": true,
      "Zone Settings - Refuse Build": true,
      "Zone Settings - Refuse Deploy": true,
      "Zone Settings - Refuse Kit Redeem from /kit": true,
      "Zone Settings - Refuse Suicide": true,
      "Zone Settings - Refuse Teleportations": true,
      "Zone Settings - Reject None Players": true,
      "Zone Settings - Undestructible": true
    }
    So I assume I can only edit the zone rules that appear in the "Zone Settings" section of the config file. Is having 2 zones for the same arena bad to do? I'm just a little confused I'm sorry if I come off as a noob I try troubleshooting the issues I have myself and am really trying to figure out everything without having to ask for help but for some things I really need a tip from a professional.
     
  11. yes i didnt put some of the settings as i didnt think people would want them.
    you can add another zone over it, don't think it should be a biggy, but better not do ^^
    i'll see to add all the settings when i get the chance.
     
  12. Awesome thanks a bunch, I really appreciate the response. Also thank you for updating Zones Manager to fix the corpse issue, great job!
     
  13. Anyway to remove bleeding in the arena? A lot of times people bleed out and dont get the kill.
     
  14. Hello,

    For some reason users on my server are able to get the DeathMatch kit with /kit deathmatch. I've been looking but I cant't find any errors. Auth is set on 2.

    Edit: Fixed (didn't use the right prefix)
     
    Last edited by a moderator: Jun 16, 2015
  15. Hey there. Love the plugin and so does everyone on my server. One thing that I do see is the last player that gets shot at the end of the arena spawns randomly on the map with no inventory. Anything I could do to possibly fix this? Thank you!
     
  16. Code:
    [Oxide] 7:49 AM [Error] Failed to call hook 'OnEventPlayerDeath' on plugin 'Arena Deathmatch' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 7:49 AM [Debug] at Oxide.Plugins.ArenaDeathmatch.OnEventPlayerDeath (.BasePlayer victim, .HitInfo hitinfo) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    
    why
     
    Last edited by a moderator: Jun 24, 2015
  17. I agree with everyone that posts; people freaking love this type of thing on servers. I even joined in on some of the deathmatches on my server. Only problem I'm experiencing thats an actual issue is that sometimes when being killed, they dont spawn back into the arena. I read through everything to make sure it wasnt already answered.

    Thanks for all that you did with this plugin though! it's badass.
     

    Attached Files:

  18. double posting because not sure which plugin to post the issues in

    -After event end, we had an occurrence where no-one got their items back, and the deathmatch kit was still on their person. Yet the event had ended.

    - 10% of players got respawned outside of the spawnfile, and without deathmatch kit. They had to type /event_join to re-enter.. this bug also affected myself.

    -Can we integrate anti-wounded and respawn mod please to make this plugin epic?
     
  19. can't code for some time, i wont be home for couple weeks. maybe someone will want to continue the project while i'm gone
     
  20. Hey guys, some ideas and feedback to this awesome plugin:

    For all the extra wishes to zones, you can edit the Arena zone like a regular zone and set up no bleeding or other options you want, usual the standard ID for the arena zone is no number but "deathmatch" as much as I remember. I did not have any bugs or problems after editing that zone.

    For the plugin, it works nice so far but it seems for me, the one who dies the last, looses all his stuff and respawns random after the winner has been called out. So what I would recommend is to add a timer after the last kill, lets say 30 seconds, which will allow players to respawn. In this 30 seconds the arena zone should be opened for everyone egain and pvpgod should trigger to true.
    So, after a match the players could respawn and meet in the arena to say "Good bye" to each other without killing themselves. Then, after 30 secs all players get ported back to their initial locations and their usual items.

    This way a lot of bugs in the last seconds of the events could be avoided - at least I think so ^^


    Regards
    7th