NullReferenceException at SimpleFlare.CalculateLights
tbird412
It seems to have something to do with weapon flash lights and murderers.  This only started happening after that last mini patch a few days ago.  Sometimes just the player that did it, other times I saw it kick almost a dozen people at once.


https://i.imgur.com/sX8lRHl.png

https://i.imgur.com/KyeaKG0.png
pookins
I have not had this problem and most players on server use flashlights on weapons, check your config and if you have any other plugin that might be interfering with this one,
tbird412
Original Poster
It's only been happening against BotSpawned murderers.  Nothing else  And it all started a few days ago right after a small little client update.
pookins
In response to tbird412 ():
It's only been happening against BotSpawned murderers.  Nothing else  And it all started a few days...
I only use scientists so that is probably the reason i dont the problem.
Steenamaroo

This has been an issue for quite some time, as far as I know.
Initially I thought it was exclusively to do with murderers having light sources like weapon flashlights/miners hat equipped but after some testing ruled that out.

In the end I was able to replicate the issue by spawning a stone node and a murderer on an iceberg (for isolation) at night, then killing the murderer with hand tools or a pistol.

I don't know if I saw your second screenshot but certainly the red-text SimpleFlare.CalculateLights()/Update() error was the same.

If I remember I also worked out that admin see the error message but don't actually get kicked from the server, where regular players do.

I'm also fairly sure I was able to create the issue with a spawned scientist too, but don't quote me on that. It was about 6 months ago.
tbird412
Original Poster
The weird thing is we'vw NEVER had a single case of this until last week.  Same server etc, not even a wipe and now it just started happening constantly to anyone that kills a zombie with lights on.
Steenamaroo

I guess some recent change has exacerbated the issue.
Either way, it's not something I can fix I'm afraid.

It was reported at the time (December) but, to the best of my knowledge, was never fixed.
tbird412
Original Poster
So do we have any idea what's causing it?  Murderers are the main source right?  And like I said it ONLY happens if you kill one with a light source on at night.  Weapon flashlight or miners hat.  We've tried hunrdreds of ways and that's a guaranteed way to get it to happen.  
Steenamaroo

We know that something, presumably the murderer, is null in SimpleFlare.CalculateLights()

As I say, I'm fairly sure I proved this issue happened with Scientists, too.
At minimum I'm certain I recreated it with console spawned murderers; The original reason for looking into it was a report from someone who doesn't use BotSpawn.
thepiercedweirdo
So I just had a player get kicked while shooting a scientist. They didn't get the kill. It was just a shot. This is the error shown in console.
disconnecting: NullReferenceException: Object reference not set to an instance of an object
SimpleFlare.CalculateLights () (at <7eca66c57d6845378c7616227a20d368>:0)
SimpleFlare.Update () (at <7eca66c57d6845378c7616227a20d368>:0)

Version: 37098​
Is this an oxide error or a Rust thing? I can only think of a few plugins that would be related to it if it is.
2CHEVSKII

Looks like a generic error, probably related to graphics (CalculateLights sounds like a graphical thing), does it happen often, or only once? 
thepiercedweirdo
First time I've heard of it so far. One of many issues I'm dealing with right now. Air drop loot randomly dropped to half or less. Lowgrade is disappearing from players TCs. The smelting plugin I use went from a 1:1 rate to vanilla. So I'm glad to hear this is a generic. I mean it sucks they got kicked. But at least it's not on my end :)
2CHEVSKII

In response to thepiercedweirdo ():
First time I've heard of it so far. One of many issues I'm dealing with right now. Air drop loot ran...
Damn, some strange things are happening on your server... Time for a good exorcist?
thepiercedweirdo
I think so. That and I have to set up another computer with all my admin/editing tools and data because I can't alt+tab out of Rust. My cursor won't connect with the game again. woo-hoo.