NightLantern

Automatically turns ON and OFF lanterns after sunset and sunrise

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

5/5, 52 likes
  1. You're missing a bit of the code from your Json. for example.. here is what mine looks like
    Code:
    {
      "ConsumeFuel": false,
      "LightTypes": {
        "Campfires": false,
        "CeilingLight": true,
        "Furnace": false,
        "JackOLantern": true,
        "Lanterns": true,
        "LargeFurnace": false
      },
      "SunriseHour": 12.0,
      "SunsetHour": 12.5
    }
    
     
  2. Here is the fix for you
     

    Attached Files:

  3. Just FYI, with the above fix....... if you turn a campfire off (after the plugin turns it on) then on during the night, it will make charcoal but it does not use the wood.
     
  4. to bad its not working ..
     
  5. No issues here. What exactly is the issue?
     
  6. lantern not work and all campfire use wood en burns foood when offline
     
  7. Using the latest version, the plugin does not turn lights on and off if you change the time manually using the console. Reloading does not seem to work either. :/

    Could be an issue with the new values I set in the config. No idea just yet.
     

    Attached Files:

  8. I could be wrong but I've never seen it turn lights on if skipping past the hour set for the lights to turn on.
     
  9. The problem with it is that even setting it just before the time stops it triggering too... So for example, env.time 17.96 if the time to turn lights on is 18 will result in nothing happening...

    I've been playing around with it and it's too easy to break the plugin. :/
     
  10. Slight problem here.......infinite charcoal. Until you manually turn a campfire on and off, the campfire will produce charcoal just like it was on and not use any wood....but, not during the night time. Only the day time will it do this. Once the campfire is turned on and off, it will stop the infinite charcoal.
     
  11. Saying false to campfires turning on does not work......they still turn on.
     
  12. By chance are you using an outdated config and if not possibly still try deleting your config and letting it generate a new one?
     
  13. I completely removed the plugin....restarted my server, then added it back in. I still get infinite charcoal and the campfires will not stay off after saying false to camp fires in the cfg.
     
  14. I can't imagine what could be wrong, can you post your config?
     
  15. Sorry, I deleted it :(
     
  16. Code:
      08:00 [Error] Failed to run a 20.00 timer in 'NightLantern v2.0.3' (NullReferenceException: )
      08:00 [Debug]   at (wrapper managed-to-native) UnityEngine.MonoBehaviour:IsInvoking (string)
      at Oxide.Plugins.NightLantern.ToggleLanterns (Boolean status) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.CheckTime () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.<TimeLoop>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0 
     
  17. This happens when the plugin was not correct unloaded. In that case the 20m timer does run into nothing..which would ve avoided by the unload function of the plugin.
     
  18. I use TimedEvents
     
  19. Hi, I installed this via 'Clanforge hhosted by multiplay' - NightLantern for Rust Exp (2.0.1)

    I have set

    "Campfires": false,

    But campfires srill ccome on at night.
     
  20. Did you reload the plugin after uploading the config?

    Use oxide.reload NightLantern in the console (if you are admin). You could also use an RCON tool.