Zone Command

Executes the commands when a player is entering a zone

Total Downloads: 1,112 - First Release: Jul 22, 2015 - Last Update: Mar 17, 2017

5/5, 6 likes
  1. after rebooting the server error immediately appears
    Code:
    [Oxide] 04:04 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
     
  2. Same to me after every reboot... 2 times per reboot.
    When it is finished and I reload it per "reload" its works without any problems

    Code:
    (00:10:42) | Loading Complete
    (00:10:42) | Enforcing SpawnPopulation Limits
    (00:10:44) | Map Spawned 44757 entities
    (00:10:44) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:45) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:45) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:45) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:46) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:46) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:47) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:47) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:47) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:48) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:48) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:48) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:49) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:49) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:50) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:50) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:50) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:51) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:51) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:52) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:52) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:52) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:53) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:53) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:53) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:54) | [Oxide] 00:11 [Warning] CallHook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' took: 682ms
    (00:10:54) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:55) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:55) | [Oxide] 00:11 [Warning] CallHook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' took: 512ms
    (00:10:55) | [Oxide] 00:11 [Warning] CallHook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' took average: 965ms
    (00:10:55) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:56) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:56) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:56) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:57) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:58) | [Oxide] 00:11 [Warning] CallHook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' took: 668ms
    (00:10:58) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:58) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:58) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:59) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:10:59) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:11:00) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:11:00) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:11:00) | [Oxide] 00:11 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.22' (NullReferenceException: Object reference not set to an instance of an object)
    (00:11:22) | Initializing 44624 entity links
    (00:11:24) | 12639 / 44624
    (00:11:26) | 18948 / 44624
    (00:11:28) | 25471 / 44624
    (00:11:30) | 34082 / 44624
    (00:11:32) | Initializing 27006 stability supports
    (00:11:32) | Initializing 25241 conditional models
    (00:11:34) | 7651 / 25241
    (00:11:36) | 15809 / 25241
    (00:11:38) | 24046 / 25241
    (00:11:40) | Connected to Steam
    [DOUBLEPOST=1460845315][/DOUBLEPOST]ok, edit:
    Now it comes also sometimes while the server is running :(
     
  3. deer_SWAG updated Zone Command with a new update entry:

    0.0.25

     
  4. After Update and the new database that has to be created, still the same error.

    Code:
    (05:36:20) | Loading Complete
    (05:36:20) | Enforcing SpawnPopulation Limits
    (05:36:21) | loot (SpawnPopulation) has 447 objects, but max allowed is 419
    (05:36:21) | - deleting 28 objects
    (05:36:23) | Map Spawned 50638 entities
    (05:36:23) | [Oxide] 05:36 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' (NullReferenceException: Object reference not set to an instance of an object)
    (05:36:23) | [Oxide] 05:36 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' (NullReferenceException: Object reference not set to an instance of an object)[...] >> Deleted around 15 entries to be able to post it here <<(05:36:49) | [Oxide] 05:37 [Warning] CallHook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' took: 562ms
    (05:36:49) | [Oxide] 05:37 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' (NullReferenceException: Object reference not set to an instance of an object)
    (05:36:49) | [Oxide] 05:37 [Warning] CallHook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' took: 544ms
    (05:36:50) | [Oxide] 05:37 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' (NullReferenceException: Object reference not set to an instance of an object)
    (05:36:50) | [Oxide] 05:37 [Warning] CallHook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' took: 509ms
    (05:36:50) | [Oxide] 05:37 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' (NullReferenceException: Object reference not set to an instance of an object)
    (05:36:51) | [Oxide] 05:37 [Warning] CallHook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' took: 932ms
    (05:36:52) | [Oxide] 05:37 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' (NullReferenceException: Object reference not set to an instance of an object)
    (05:36:52) | [Oxide] 05:37 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' (NullReferenceException: Object reference not set to an instance of an object)
    (05:36:53) | [Oxide] 05:37 [Warning] CallHook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' took: 546ms
    (05:36:53) | [Oxide] 05:37 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' (NullReferenceException: Object reference not set to an instance of an object)
    (05:36:53) | [Oxide] 05:37 [Warning] CallHook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' took: 561ms
    (05:36:54) | [Oxide] 05:37 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' (NullReferenceException: Object reference not set to an instance of an object)
    (05:36:54) | [Oxide] 05:37 [Warning] CallHook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' took: 507ms
    (05:36:54) | [Oxide] 05:37 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' (NullReferenceException: Object reference not set to an instance of an object)
    (05:36:55) | [Oxide] 05:37 [Warning] CallHook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' took: 654ms
    (05:36:55) | [Oxide] 05:37 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' (NullReferenceException: Object reference not set to an instance of an object)
    (05:36:56) | [Oxide] 05:37 [Warning] CallHook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' took: 907ms
    (05:36:56) | [Oxide] 05:37 [Warning] CallHook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' took average: 797ms
    (05:36:56) | [Oxide] 05:37 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' (NullReferenceException: Object reference not set to an instance of an object)
    (05:36:57) | [Oxide] 05:37 [Warning] CallHook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' took: 674ms
    (05:37:22) | Initializing 50496 entity links
    (05:37:25) | 13665 / 50496
    (05:37:27) | 20054 / 50496
    (05:37:29) | 27939 / 50496
    (05:37:31) | 37162 / 50496
    (05:37:33) | 50051 / 50496
    (05:37:33) | Initializing 31772 stability supports
    (05:37:33) | Initializing 29660 conditional models
    (05:37:35) | 7125 / 29660
    (05:37:37) | 14780 / 29660
    (05:37:39) | 22560 / 29660
    (05:37:44) | Connected to Steam
    :(

    I only have 4 small zones (radius 3 - 5) with the teleport command.
     
  5. I still don't know why it's happening. Because for me it works just fine
    [DOUBLEPOST=1461137623][/DOUBLEPOST]Do you have the latest version of Zones Manager for Rust | Oxide
     
  6. Thank you for your answer.
    And yes I have that version

    Could it be a problem with the teleport.topos command and the thing that it seems that your plugin is initializing really early - before any other plugin is starting?
     
  7. I don't know. My plugin is starting when server has been initialized. I'll try "teleport.topos"
    [DOUBLEPOST=1461229533][/DOUBLEPOST]Oh. You using teleportation system?
    [DOUBLEPOST=1461229599][/DOUBLEPOST]Teleportation System [Unmaintained] | Oxide ?
    [DOUBLEPOST=1461229714][/DOUBLEPOST]Hmm... Is it a command that should be executed from client console?
    [DOUBLEPOST=1461230053][/DOUBLEPOST]
    Code:
    Command not found
    Command not found
    Command not found
    —_—
     
  8. I tried this as Reneb mentioned
    Here is my Datafile
    Code:
    {
      "Zones": [
        {
          "Id": "8956579",
          "Method": 0,
          "Mode": 0,
          "Executed": false,
          "Amount": 0,
          "Commands": [
            "teleport.topos $player.id 45 220 617"
          ],
          "Players": []
        },
        {
          "Id": "98383632",
          "Method": 0,
          "Mode": 0,
          "Executed": false,
          "Amount": 0,
          "Commands": [
            "teleport.topos $player.id 45 220 617"
          ],
          "Players": []
        },
        {
          "Id": "26749068",
          "Method": 0,
          "Mode": 0,
          "Executed": false,
          "Amount": 0,
          "Commands": [
            "teleport.topos $player.id 45 220 617"
          ],
          "Players": []
        },
        {
          "Id": "34809313",
          "Method": 0,
          "Mode": 0,
          "Executed": false,
          "Amount": 0,
          "Commands": [
            "teleport.topos $player.id 45 220 617"
          ],
          "Players": []
        }
      ]
    }
    So there a 4 spots on the map that all should teleport to one position.
     
  9. I am new to programing well not really programing, more like stumbling through Mods. I am trying to set up Events like Gun Game and so on. Is this the Mod I need to get those started?
    Admitedly much of thios information seems based on prior knowledge of other Mods or Something.

    A little help would be sweet , please.
     
  10. wrong thread
     
  11. OK, sorry about thiat, I thought I was in the Event Manager Mod, I was looking at Zone Control too :/
     
  12. Edit: thought the problem was gone.
    After the daily restart a few minutes ago I see it is still present.
     
    Last edited by a moderator: Apr 25, 2016
  13. Do I use this Mod at all to set up the GunGame for the Event Manager?
     
  14. Is there a way to prompt a message if a player leaves a zone?
     
  15. Not yet
     
  16. Code:
    [Oxide] 12:24 [Error] Failed to call hook 'OnEnterZone' on plugin 'ZoneCommand v0.0.25' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 12:24 [Debug]   at Oxide.Plugins.ZoneCommand.OnEnterZone (System.String zoneID, .BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ZoneCommand.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo 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 hookname, System.Object[] args) [0x00000] in <filename unknown>:0
     
  17. Can't recreate the error. When it's happening?
     
  18. deer_SWAG updated Zone Command with a new update entry:

    0.0.35

     
  19. is there a way to add a cooldown instead of always/perplayer?
     
  20. What do you mean?