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. Wulf

    Wulf Community Admin

    Please check your oxide/logs for any errors.
     
  2. Please devs
    can add the new Wall lamp (the tuna can lamp) ?

    thanks in advance!
     
  3. Yeah, definitely need to add the Tuna Lamps to the mix.
     
  4. Code:
    04:58 [Error] Failed to call hook 'OnEntitySpawned' on plugin 'NightLantern v2.0.4' (NullReferenceException: Object reference not set to an instance of an object)
    04:58 [Stacktrace]   at Oxide.Plugins.NightLantern.CheckType (.BaseOven oven) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.NightLantern.OnEntitySpawned (.BaseEntity entity) [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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    04:58 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.4' (NullReferenceException: Object reference not set to an instance of an object)
    04:58 [Stacktrace]   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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Feb 3, 2017
  5. Please Update
     
  6. Wanted to see if anyone had the string for the Tuna Can light at all to add them....
     
  7. same, tuna lights need to be added
     
  8. Yeah, lets light up tuna :)
     
  9. Code:
    Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.4'
    ceException: Object reference not set to an instance of an object)
    This is what I get after todays update.
    Server Version: 1150.84
    Oxide Version: 2.0.3024
     
  10. LOL! I got it to work with TunaLamp. I did not change the version #, but this works. Add "TunaLamp": true to your config, or delete your config and let the plugin add it. Don't put , if you add it as the bottom one or the .json will be corrupt. Best to let the plugin add it and re customize your variables, since it's only a few lines in the config.

    Here are the things I added to the plugin:
    Added @ Line 170: case "tunalight.deployed":
    Added @ Line 171: return ConsumeTypes.TunaLamp;

    Line 210 changed: Campfires, CeilingLight, TunaLamp, Furnace, LargeFurnace, Lanterns, JackOLantern, None

    Added @Line 218: public bool TunaLamp { get; set; }

    Added @Line 244: {ConsumeTypes.TunaLamp, true },
     
  11. Wulf

    Wulf Community Admin

    Please do not attach random versions to plugin threads, thanks.
     
  12. How to help people? I've done it before for other plugins, and people do it all the time. Is there a way to share if I am able to fix a plugin?
     
  13. Wulf

    Wulf Community Admin

    If a plugin is broken, feel free to report it and suggest changes, but random versions are not reviewed and are unknown so we do not allow them. These cause issues for moderation and potentially for authors.
     
  14. The coder is very active so best to let them add anything new
     
  15. Thank you, it works
     
  16. k1lly0u updated NightLantern with a new update entry:

    2.0.5

     
  17. Getting this now:

    Code:
    Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.5' (KeyNotFoundException: The given key was not present in the dictionary.)
    
     
  18. Read the patch notes
     
  19. [02/05/2017 08:38:01] Failed to call hook 'OnServerInitialized' on plugin 'NightLantern v2.0.5' (KeyNotFoundException: The given key was not present in the dictionary.)
     
  20. Ok, Those changes do work
    I think that is because you need to delete the config file to let it create a new one.