NightLantern

Automatically turns ON and OFF lanterns after sunset and sunrise

Total Downloads: 20,602 - First Release: Jun 27, 2015 - Last Update: Jun 11, 2018

5/5, 52 likes
  1. Hi, thank you for this Plugin.
    I have a Problem that the BBQ, Furnace and Fireplace turning on aswell at dawn, eventhought I have them set to false:

    [ConsumeType.Fireplace] = new ConfigData.LightSettings
    {
    ConsumeFuel = true,
    Enabled = false,
    Permission = true,
    Owner = true

    I'm not a pro at this but isn't there a line missing at 452 ((Owner)? It's also default set on false on Permission):

    [ConsumeType.Furnace] = new ConfigData.LightSettings
    {
    ConsumeFuel = true,
    Enabled = false,
    Permission = false

    As I said I'm not a pro at this might I miss something!

    I didnt Change anything than "true/false" on some items.

    Cheers
     
  2. You never edit the .cs file you change what is needed in the config file only
     
  3. Mate, not sure if I get you right but I uploaded the file to my Server then went to my Servers browser and changed the config. (true/false) That means my Server has my modified Version of this plugin.
     
  4. You are meant to upload a fresh version of the plugin am sure that was obvious when I said not to edit the plugin
     
  5. Hey all so I see an issue and maybe I'm not doing something correctly.

    I set the permissions for each of the items under a primary group. One user has his base and I have mine. We are NOT authorized at one another tool cupboard "separate bases".
    I set /lantern tunalight global - it outputs OFF. ( guessing this means global tunalight off )
    I want my lights to turn on and off based on the config and the other player doesn't so he runs the command "/lantern tunaligh" this outputs to him that they are OFF.
    I run the command 2 times so that it outputs ON.

    (At this point mine should follow the config and his should not follow the config because they are set to OFF.)

    He then runs around his base tuns on all of his tunalights manually since his are set to OFF on the automation.

    I set the server time to 5 min before the config "on" time and my base lights come on ( perfect ).... I then change the server time to 5 min before config "off" time. My base and his bases tunalights tun off....

    Any help would be great! :D
     

    Attached Files:

  6. Not sure whats happening but my lanterns will NOT toggle on or off auto and I cant turn them on.
     

    Attached Files:

  7. only thing wrong with yours is
    "Time autolights are disabled": 9.0,
    "Time autolights are enabled": 18.5,
    should be
    "Time autolights are disabled": 7.5,
    "Time autolights are enabled": 18.5,
    [DOUBLEPOST=1515266207][/DOUBLEPOST]
    You have some missing settings delete the config and reload plugin

    Both can use this config
     

    Attached Files:

  8. I am trying to keep the lights on all the time since inside buildings is dark

    What settings are missing???? I deleted json when this version came out and then simply changed the settings.... so IF there is something missing the config creation is bad in the plugin???
     
  9. download and install these then you can compare your config with mine
    Notepad++ v7.5.4 - Current Version
    https://sourceforge.net/projects/npp-compare/
     
  10. I don't think that is the issue I should be able to change the time.
    The lights turned on/off at the time I change the config to.
    Issue was it turn on and off the other players lights even tho I set Global off and only toggled mine to be enabled.

    I have since switched to ZoneManager for auto lights....
     
  11. How do I make it so that the furnaces do use fuel and dont auto turn off and on? All I have done was insert the plug in. Please be thourough as I have no idea what I am doing.
     
  12. @k1lly0u bug report:

    as example Fireplace config

    Code:
        "Fireplace": {
          "This type is enabled": true,
          "This type consumes fuel": false,
          "This type can be toggled by the owner": true,
          "This type requires permission to be toggled by the owner": false
        },
    so if u use consumes fuel to false, u can put 1x wood in fireplace and self turn on, then it creates endless coal.
    if u use consumes fuel to true, it works normal if u self turn on fireplace it burns the 1x wood
    i testet it just for Fireplace and BBQ,
     
  13. What does it mean code text? I'm supposed to try and edit the cs file?
     
  14. CVC

    CVC

    Get rid of this line and you should be fine.
    Code:
    "BBQ": {
          "This type is enabled": true,
          "This type consumes fuel": true,
          "This type can be toggled by the owner": true,
          "This type requires permission to be toggled by the owner": true
        }
    If you still want to add that line this maybe showed up on your oxide log.
    Code:
    Could not initialize plugin 'NightLantern v2.0.92' (ArgumentException: An element with the same key already exists in the dictionary.)
      at System.Collections.Generic.Dictionary`2[Oxide.Plugins.NightLantern+ConsumeType,Oxide.Plugins.NightLantern+ConfigData+LightSettings].Add (ConsumeType key, Oxide.Plugins.LightSettings value) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.UpdateConfigValues () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.LoadConfig () [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RustPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.PluginManager.AddPlugin (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0
      at Oxide.Core.OxideMod.PluginLoaded (Oxide.Core.Plugins.Plugin plugin) [0x00000] in <filename unknown>:0 
     

    Attached Files:

  15. Dont delete lines from the config it will cause errors you have no clue just set it to false
     
  16. same me.
    I am running a PVE server,I think the previous plugin program is the best.
     
  17. Can you set up a config parameter that disables the time control and enables the lanterns on always @k1lly0u ??
     
  18. What about skull firepits and fireplaces? I do not see anything in the config to true or false those units.
     
  19. They are in the config
    Code:
    "Firepit": {
          "This type is enabled": true,
          "This type consumes fuel": true,
          "This type can be toggled by the owner": true,
          "This type requires permission to be toggled by the owner": true
        },
        "Fireplace": {
          "This type is enabled": true,
          "This type consumes fuel": true,
          "This type can be toggled by the owner": true,
          "This type requires permission to be toggled by the owner": true
        },
     
  20. Where is the config that shows that? Mine only lists


    "ConsumeFuel": true,
    "LightTypes": {
    "Campfires": true,
    "CeilingLight": true,
    "Furnace": false,
    "JackOLantern": true,
    "Lanterns": true,
    "LargeFurnace": false,
    "TunaLight": true
    },
    "SunriseHour": 8.5,
    "SunsetHour": 19.5