NightLantern

Automatically turns ON and OFF lanterns after sunset and sunrise

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

5/5, 52 likes
  1. Hey. Nice plugin and "worked" perfect before 2.0.2 update. Getting null references and at night when lanterns and ceiling lights are supposed to go on. Seems to be on the fuel consumption:
    Code:
    [Debug] at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    Possible dis-regard (can't delete post). Might have been an old/existing config file issue.

    Confirmed. Please dis-regard. My existing config file was not removed prior. Though I did.. sorry. thanks!

    Maybe not... Light never go off now.
     
    Last edited by a moderator: Jan 16, 2017
  2. @zrocweb Did you delete your config on the last update as it did say to in the notes
     
  3. Whelp. it is definatley bugged (2.0.2). Console errors spamming, etc... reverting back to 2.0.1
     
  4. Hello all! I was wondering if any of you use fuel consume on true, and if it actually consumes fuel? Lanterns on my server will start up even with no fuel in them, with the fuel consume true. I thought NoFuelRequirments plugin could be messing with it, and removed it; I'm still getting the same results with that gone.
     
  5. The plugin does not work anymore or very badly. The lights turn on 1 three times. Can you tell me how to solve the problem thanks
     
  6. Got this error today:

    Code:
    (23:41:13) | [Oxide] 23:41 [Error] Failed to run a 20.00 timer in 'NightLantern v2.0.2' (NullReferenceException: )
    (23:41:13) | [Oxide] 23:41 [Debug]   at (wrapper managed-to-native) UnityEngine.MonoBehaviour:CancelInvoke (string)
      at BaseOven.StopCooking () [0x00000] in <filename unknown>:0
      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
     
  7. k1lly0u updated NightLantern with a new update entry:

    2.0.3

     
  8. I'm getting that the permission doesn't exist
     
  9. Updated and my console got flooded with this
    Code:
    object)
    (13:02:55) | [Oxide] 05:02 [Debug]   at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    (13:02:56) | [Oxide] 05:02 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    (13:02:56) | [Oxide] 05:02 [Debug]   at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    (13:02:56) | [Oxide] 05:02 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    (13:02:56) | [Oxide] 05:02 [Debug]   at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    (13:02:57) | [Oxide] 05:03 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    (13:02:57) | [Oxide] 05:03 [Debug]   at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    (13:02:57) | [Oxide] 05:03 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    (13:02:57) | [Oxide] 05:03 [Debug]   at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    (13:02:58) | [Oxide] 05:03 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    (13:02:58) | [Oxide] 05:03 [Debug]   at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    (13:02:58) | [RCON][154.58.124.97:49989] oxide.unload NightLantern
    Hmm, that's weird, same thing happened when I reverted to the previous version

    Hmm deleted config and loaded new version again and it's fine
     
    Last edited by a moderator: Nov 11, 2016
  10. i just reinstalled my server all over again , so it was clean and new. added this new update of plugin and not working if made night by admin or vote only if becomes night naturally. is that intended?
     
    Last edited by a moderator: Nov 15, 2016
  11. [Oxide] 09:29 [Error] Failed to run a 20.00 timer in 'NightLantern v2.0.3' (NullReferenceException: )
    [Oxide] 09:29 [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

    Got this after reinstall of NL,...previous issue was what Corrosive just posted.
     
  12. The "/lantern" command to toggle auto-lights doesn't seem to be permanent on per player basis. It would be nice if a player could toggle it on / off and the next night cycle it would follow the last on / off toggle the player set.
     
  13. Also, it would be nice to be able to set camp fires to "not consume fuel" AND "not produce charcoal"
     
  14. Code:
    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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    13:29 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    13:29 [Debug]  at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    13:29 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    13:29 [Debug]  at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    13:29 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    13:29 [Debug]  at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    13:29 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    13:29 [Debug]  at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    13:29 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    13:29 [Debug]  at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Jan 16, 2017
  15. So, I'm having the problem where my furnaces (large and small) and campfires keep turning on. I have all three set to false, but it is still happening. Also, I have consume fuel set to false and it is still burning fuel too and I don't get any back after they shut off. Any ideas what may be wrong?
     
  16. Try deleting the config, reconfiguring it and then reload the plugin? If that doesn't work then reinstall the whole plugin.
     
  17. Reinstalling it seemed to work. Thanks!
     
  18. So I am running NightLantern plugin on my rust server. The only thing that I have changed on it is so that all the light sources except for the furnaces wont consume fuel. The issue I am encountering is that right as it starts to become light out, all the furnaces get shut off. Any ideas on how I can fix this?
     
  19. Post your config so we can help you better.
     
  20. Okay, trying to set it up so that it doesn't turn on Campfires, or Furnaces, and this comes up every time I load the plugin now. Copy of Config also loaded.

    Code:
    [Oxide] 10:49 [Info] Loaded plugin NightLantern v2.0.3 by k1lly0u
    [Oxide] 10:49 [Debug] ExType: JsonSerializationException
    [Oxide] 10:49 [Error] Failed to call hook 'OnServerInitialized' on plugin 'NightLantern v2.0.3' (ArgumentException: The requested value 'SunriseHour' was not found.)
    [Oxide] 10:49 [Debug]   at System.Enum.Parse (System.Type enumType, System.String value, Boolean ignoreCase) [0x00000] in <filename unknown>:0
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x00000] in <filename unknown>:0
    [Oxide] 10:49 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 10:49 [Debug]   at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    [Oxide] 10:49 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 10:49 [Debug]   at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    Saved 49,635 ents, serialization(0.00), write(0.01), disk(0.00) totalstall(0.02).
    Saving complete
    [Oxide] 10:49 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 10:49 [Debug]   at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    [Oxide] 10:49 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 10:49 [Debug]   at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    [Oxide] 10:49 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 10:49 [Debug]   at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    [Oxide] 10:49 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.3' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 10:49 [Debug]   at Oxide.Plugins.NightLantern.OnConsumeFuel (.BaseOven oven, .Item fuel, .ItemModBurnable burnable) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.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 name, System.Object[] args) [0x00000] in <filename unknown>:0
    > oxide.unload NightLantern
    [Oxide] 10:49 [Info] Unloaded plugin NightLantern v2.0.3 by k1lly0u
     

    Attached Files: