I think Searchlights got busted in the last update. You can't turn them on after a server restart. I thought it was a problem with this plugin but it happens even when it isn't loaded.

NightLantern
Automatically turns ON and OFF lanterns after sunset and sunrise
Total Downloads: 20,602 - First Release: Jun 27, 2015 - Last Update: Jun 11, 2018
- 5/5, 52 likes
-
k1lly0u updated NightLantern with a new update entry:
2.0.94
-
if i enable no fuel usage on a fireplace, it basically dupes charcoal, id like for an easy way to prevent this! thanks!
-
i rolled back to version 2.0.8 -
I don't see an option for a server owner to turn on or off all or better yet allow admin to turn off all certain lights .......?
is there a away to do that? I ask cause in my gun game its killing FPS....... -
[Quality of Life Suggestion] Access to "global.toggle disable" from the console, if we can't do it in the config.
Otherwise.. may the plugin by preference be loaded with global.toggle disabled, this way the lights automatically off for everybody on startup? Such as though a config variable? -
what's strange is, I toggle that in console, having 4 tuna can lights......2 with fuel and 2 without ...and the only lights that go on are the ones with fuel? but in the config I have it set to not require fuel. Does it have to have 1 fuel it it at all times to make the no fuel work or?
-
option "This type requires permission to be toggled by the owner" not work.
"This type can be toggled by the owner": true,
"This type requires permission to be toggled by the owner": false
but owner not can toggle:
/lantern lanterns
lanterns is an invalid option
command working only after add permission. -
he projector does not turn on. Can you do a quick update thank you
Attached Files:
-
-
Open the NightLantern.cs and look for the ToggleLight function. Find this part:
Code:if (isSearchlight) { SearchLight searchLight = entity as SearchLight; if (searchLight != null) { if (status) { Item slot = searchLight.inventory.GetSlot(0); if (slot == null) ItemManager.Create(searchLight.fuelType).MoveToContainer(searchLight.inventory); } searchLight.SetFlag(BaseEntity.Flags.On, status); } }
Code:if (isSearchlight) { SearchLight searchLight = entity as SearchLight; if (searchLight != null) { if (status) { Item slot = searchLight.inventory.GetSlot(0); if (slot == null) ItemManager.Create(searchLight.fuelType).MoveToContainer(searchLight.inventory); searchLight.secondsRemaining = 20; // <---- ADD THIS LINE RIGHT HERE } searchLight.SetFlag(BaseEntity.Flags.On, status); } }
-
Please update
The projectors still do not work even with this change -
Please, update the plugin. -
-
please update plugin because the following is happening on my server:
with /lantern switched OFF
global OFF
wood consuming ALL OFF
^^ every wood consuming is switched AUTO ON even with this settings and they are NOT registered as empty (means NO WOOD inside) -
Please update
-
Broken here too. SearchLights dont stay on (even if enabled and set consume false) Furnaces auto turn off and still consume wood.. please fix!
-
Yes please update for the searchlights not workings, thank you
-
NullReferenceException: Object reference not set to an instance of an object
at Oxide.Plugins.NightLantern+LightController.ToggleLight (System.Boolean status) [0x00000] in <e938273a37a8498dbf878618ec148e11>:0
at Oxide.Plugins.NightLantern+<ToggleAllLights>c__Iterator1.MoveNext () [0x000b0] in <e938273a37a8498dbf878618ec148e11>:0
at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00027] in <3d3ce0a05f164357836ebcee3caff781>:0
hello Kill1you i am getting this error appericate the work you put into all of your plugins. -
Please UPDATE
-
Why do not searchlights work? I put in them one fuel bank. They are switched on manually and do not consume fuel. But the automation of the power-up does not work. The ceiling lamp works perfectly. Sorry for my English, I use Google translator. The ceiling lamp works as it should. The searchlight does not work automation: