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. When server starting... :

    05:14 [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.5' (NullReferenceException: Object reference not set to an instance of an object)
    05:14 [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

    Config was deleted before last update, reload NightLantern is fine and plugin working I thing, no error...just when server starting.

    Config:

    {
    "ConsumeFuel": false,
    "LightTypes": {
    "Campfires": false,
    "CeilingLight": true,
    "Furnace": false,
    "JackOLantern": true,
    "Lanterns": true,
    "LargeFurnace": false,
    "TunaLight": true
    },
    "SunriseHour": 9,
    "SunsetHour": 18
    }
     
  2. Getting this on server start:

    Code:
    [02/05/2017 03:02:30] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.5' (NullReferenceException: Object reference not set to an instance of an object)
    Config has been deleted & auto-regenerated since last update. Note that this error seems to only come up when the server starts, but the plugin seems to work OK.
     
  3. (07:43:46) | Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.5' (NullReferenceException: Object reference not set to an instance of an object)
     
  4. Removing the config and then removing and reinstalling the plugin cs worked for me.
     
  5. Did you restart your server? I only get this error after my server restarts - even after removing & deleting the config.
     
  6. I did not restart the server, and the last post was premature. The tunacans stopped working. Everything else still works though.
     
  7. My server doesn't get the error, and Nightlantern works fine for tunalight. I just rebooted and checked my tunalights that have no fuel are on.

    Try this:

    1) Re validate your Rust server files.
    2) Let the server boot up once vanilla. (you should do it this way every time you update oxide)
    3) Shut the server down.
    4) Download and apply Oxide 2.0.3033
    5) Start the server

    Further:

    Make sure its true for TunaLight, and ConsumeFuel is false if no fuel in tunalight.
    Also make sure your NightLantern.cs version says this on 7th line: [Info("NightLantern", "k1lly0u", "2.0.5", ResourceId = 1182)]
    My config:

    {
    "ConsumeFuel": false,
    "LightTypes": {
    "Campfires": true,
    "CeilingLight": true,
    "Furnace": false,
    "JackOLantern": true,
    "Lanterns": true,
    "LargeFurnace": true,
    "TunaLight": true
    },
    "SunriseHour": 7.5,
    "SunsetHour": 7.6
     
  8. What's the best way to do this? Put the Oxide.X.dll & mdb files located in RustDedicated_Data\Managed somewhere else temporarily?
     
  9. You don't need to. I just run this string in a batch file:
    C:\steamCMD\steamcmd.exe +login anonymous +force_install_dir C:\SteamCMD\rust_server\ +app_update 258550 validate +quit

    That will cause the server to run vanilla once you launch the server.

    Then shut it down and apply oxide.

    However I'm not sure how it is for you. I am hosting my own server under windows.
    Normally when I launch the server I do an update check, but with no validate. Therefor if Rust is up to date it doesn't replace anything. The validate option will cause it replace whatever files oxide changes which causes it to run vanilla.
     
  10. I redownloaded this after you updated it, now it doesnt work and consol says its an invalid comand
     
  11. Wulf

    Wulf Community Admin

    Check your oxide/logs for errors.
     
  12. On Startup:

    Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.5' (NullReferenceException: Object reference not set to an instance of an object)

    Config was deleted and regenerated on update.

    No error logged on reload.
     
  13. k1lly0u updated NightLantern with a new update entry:

    2.0.6

     
  14. Hello, once this update, lights keep always ON !
     
  15. This 2.0.6 doesn't work properly. There are no error messages, but if no fuel, or wood in campfire, they are on but there is no light. Campfire looks like it is off but it gives comfort or burns you if you get too close. The ceilinglights and tunalights that have no fuel no longer show light but are on as well.

    I reverted back to 2.0.5 for now since it works perfectly. I never got the server startup error, or any errors, and it works for everything flawlessly. I even have today's oxide update and no problems with 2.0.5
     
  16. is there any way to remove the furnace?? beacuse if i leave the furnace on it will be switch off when the morning comes
    and if i remove the furnace i get this error

    [Error] Failed to call hook 'OnConsumeFuel' on plugin 'NightLantern v2.0.5' (KeyNotFoundException: The given key was not present in the dictionary.)
    18:07 [Stacktrace] at System.Collections.Generic.Dictionary`2[Oxide.Plugins.NightLantern+ConsumeTypes,System.Boolean].get_Item (ConsumeTypes key) [0x00000] in <filename unknown>:0
    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
     
  17. Hey guys can someone help me here i have the following config and everyones furnances are all turning off at the switch of day cycles.

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


    Im trying to have the lights turn on at night and leave the furnaces to work like normal
     
    Last edited by a moderator: Feb 9, 2017
  18. removed
     
    Last edited by a moderator: Feb 11, 2017
  19. Also when I set it to consumefule false
    Is also not burning fuel for the furnace doesn't matter if I set furnace and large furnace to true or false
    That's why it's best to remove the furnace out of the equation if possible
     
  20. k1lly0u updated NightLantern with a new update entry:

    2.0.61