Duelist

Moved

Total Downloads: 2,050 - First Release: Jun 15, 2017 - Last Update: Jul 20, 2018

5/5, 19 likes
  1. its cool man, great plugin by the way!
     
  2. Any chance to be able to specify in a chat command which arena you want to be in? like say you do just /duel.. you go into a randomly created regular arena.. but make it possible to create custom arenas as well.. that can be joined by doing /duel "name" "arenaname" for example.. or TDM.. We have a few arenas created on our server we would like to use.. but also dont want to lose the option of using your regular arena as they are fun.
     
  3. BUMP :p
     
  4. Thanks cPed, I'll see what I can do for you.
     
  5. Thanks Nivex, you the man!
     
  6. nivex updated Duelist with a new update entry:

    1.1.0

     
  7. People getting DC with red errors on the screen when they hit the arena wall or get close to arena wall (while outside of the arena)
     
  8. This is a game bug afaik. Can you post a screenshot of the error, or the log?
     
  9. And players building close to duel arena walls and you can not damage them on my server. I already removed duelist until see it is working fine.
     
  10. I can fix the building issue but the disconnect bug isn't related to Duelist.
    [DOUBLEPOST=1503926876][/DOUBLEPOST]
    What is your Building Block Extension Radius set to in the config? If it's too low then players can build near the zone to protect their structures outside of it. It should be at least 20. I'll implement a better solution for this.
     
  11. It is 20, should I make it 30?
     
  12. Yeah, it's what protects from players building too close to the zone. Not sure why the zone protected their base. It shouldn't.
     
  13. Code:
    (19:13:13) | [Oxide] 19:13 [Error] Failed to call hook 'OnServerInitialized' on plugin 'Duelist v1.1.0' (NullReferenceException: )
    (19:13:13) | [Oxide] 19:13 [Stacktrace]   at (wrapper managed-to-native) UnityEngine.Object:get_name ()
      at Oxide.Plugins.Duelist.<SetupZones>m__14 (.BaseNetworkable e) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[BaseNetworkable].MoveNext () [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable+<CreateCastIterator>c__Iterator0`1[BaseEntity].MoveNext () [0x00000] in <filename unknown>:0
      at System.Collections.Generic.List`1[BaseEntity].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
      at System.Collections.Generic.List`1[BaseEntity]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.ToList[BaseEntity] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Duelist.SetupZones () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Duelist.OnServerInitialized () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Duelist.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
     
  14. /duel remove causes this and leaves the walls
    Code:
    21:32:17) | [Oxide] 21:32 [Error] Failed to call hook 'IOnServerCommand' on plugin 'RustCore v2.0.3448' (NullReferenceException: )
    (21:32:17) | [Oxide] 21:32 [Stacktrace]   at (wrapper managed-to-native) UnityEngine.Object:get_name ()
      at Oxide.Plugins.Duelist.<RemoveZoneWalls>m__15 (.BaseNetworkable e) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[BaseNetworkable].MoveNext () [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable+<CreateCastIterator>c__Iterator0`1[BaseEntity].MoveNext () [0x00000] in <filename unknown>:0
      at System.Collections.Generic.List`1[BaseEntity].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
      at System.Collections.Generic.List`1[BaseEntity]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
      at System.Linq.Enumerable.ToList[BaseEntity] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Duelist.RemoveZoneWalls (UInt64 ownerId) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Duelist.RemoveDuelZone (Oxide.Plugins.DuelingZone zone) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Duelist.cmdDuel (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Game.Rust.Libraries.Command+ChatCommand.HandleCommand (.BasePlayer sender, System.String name, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Game.Rust.Libraries.Command.HandleChatCommand (.BasePlayer sender, System.String name, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Game.Rust.RustCore.IOnServerCommand (.Arg arg) [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
     
  15. @MeatCircus Looks like both of these exceptions are from entities being null. I'm already checking if the entity is null so I'm not sure what else could be causing it. Does this still persist?
     
  16. Happens when I try to do /duel remove Usually what I do once a night is jump on and /duel off then duel tp /duel remove /duel tp to my 2nd one and /duel remove then I use object remover to clean up all wood and stone walls outside cupboard range and after I do that I do /duel new twice and /duel on and that's all done but the last few time when I do /duel remove is seems to remove the zone but not the walls and gives that error then it wont make new zone until the next server restart