Night Door

Allows opening of selected door(s) only during set time period

Total Downloads: 416 - First Release: Nov 8, 2017 - Last Update: Jun 25, 2018

5/5, 4 likes
  1. I looked at a door and typed /nd add, but it said

    The object you are looking at is not a door/hatch/gate

    I've tried several times and it says the same thing. Not sure what's wrong
     
  2. Can you provide a screenshot of what you are looking at when typing the command? I can't get it to not work/break...
     
    Last edited by a moderator: Nov 14, 2017
  3. Here ya go. Just a simple armored door.
     

    Attached Files:

  4. PMd you to keep this thread clean
     
  5. Slydelix updated Night Door with a new update entry:

    1.6

     
  6. it does not work for me. The door opens at any time. permission removed, period configured. still in the console error
    Code:
    (15:32:08) | Failed to call hook 'OnEntityKill' on plugin 'NightDoor v1.6.0' (NullReferenceException: Object reference not set to an instance of an object)
    (15:32:08) | at Oxide.Plugins.NightDoor.OnEntityKill (.BaseNetworkable entity) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.NightDoor.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.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
     
  7. PMd you
     
  8. Slydelix updated Night Door with a new update entry:

    1.6.1

     
  9. Awesome plugin, what would be nice to see would be the ability to add text to each timer you add. So for example "This door cannot be opened until 21:00"
     
  10. Slydelix updated Night Door with a new update entry:

    1.6.2


    [DOUBLEPOST=1511282811][/DOUBLEPOST]
    Added in latest update
     
  11. Awesome!
     
  12. I just had some unexpected results.

    Yesterday, during the day I setup about 10 doors in a building to use a timeset of 22:00 - 31:00. I checked and all the doors said they were set.

    This morning, during the day I checked and half the doors were open. I closed them and checked them with /nd info, but it says they aren't setup.

    I would expect, based on my settings a couple things to happen.
    1. The doors would open at 22:00
    2. The doors would close at 31:00
    3. The doors would remain night doors and continue to do this each night.
    Is this an issue with the plugin or are my expectations incorrect.
    [DOUBLEPOST=1511359340][/DOUBLEPOST]I set these doors up again and saved the data file. We'll see what happens.

    However, what's the deal with the opening and closing of doors.
     
  13. Ok, it appears there's a few bugs.

    1. The doors do not close at the time they should. they remain open.
    2. After the time comes, the doors are no longer night doors. In the data file, the time period exists, but the doors have been removed.
     

    Attached Files:

  14. Are you using the automatic door opening closing (config)?
     
  15. Yes.

    Code:
    {
      "Allow admins to open time-limited door": false,
      "Allow players with bypass permission to open time-limited door": true,
      "Automatic door closing/opening": true,
      "Beginning time (HH:mm)": "00:00",
      "End time (HH:mm)": "00:00",
      "Use multiple time intervals": true,
      "Use system (real) time": false
    }
    To be honest the closing/opening is not the worst of it. My doors are being deleted from the data file.
     
  16. Slydelix updated Night Door with a new update entry:

    1.6.3

     
  17. how do i disable the time being shown :/ i'd like to make this a guessing game (whats behind the door) without telling them when they can open it (timed door too)
     
  18. You could change the
    "This door/hatch/gate cannot be opened until {0}" to
    "This door/hatch/gate cannot be opened" (in oxide\lang) until I add config option for it
     
  19. thank you i did just that :)
     
  20. Slydelix updated Night Door with a new update entry:

    1.6.4