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
}

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
-
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)
-
(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)
-
Removing the config and then removing and reinstalling the plugin cs worked for me.
-
-
-
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 -
-
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. -
I redownloaded this after you updated it, now it doesnt work and consol says its an invalid comand
-
Wulf Community Admin
-
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. -
k1lly0u updated NightLantern with a new update entry:
2.0.6
-
-
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 -
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 -
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 normalLast edited by a moderator: Feb 9, 2017 -
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 -
k1lly0u updated NightLantern with a new update entry:
2.0.61