FPtje / DarkRP

DarkRP, a non-serious roleplay gamemode for Garry's Mod.
https://darkrp.miraheze.org
MIT License
459 stars 705 forks source link

Error Report #1606

Closed nzkfc closed 9 years ago

nzkfc commented 9 years ago

Hi,

Got 3 crashes today and all 3 had this error in console last, just wanted to put it here and see if it's known or even worth worrying about in regards to fixing.

[ERROR] gamemodes/darkrp/gamemode/modules/base/sv_entityvars.lua:192: Tried to use a NULL entity!

  1. SteamName - [C]:-1
    1. Nick - gamemodes/darkrp/gamemode/modules/base/sv_entityvars.lua:192
    2. RP_PlayerChat - gamemodes/darkrp/gamemode/modules/chat/sv_chat.lua:21
      1. unknown - gamemodes/darkrp/gamemode/modules/chat/sv_chat.lua:83

Cheers

ManselD commented 9 years ago

gamemodes/darkrp/gamemode/modules/base/sv_entityvars.lua:189: Tried to use a NULL entity!

I got the same error just now. It seems to have happend just after a moderator kicked them-self.

Also, you posted on my NPC script :3

Bo98 commented 9 years ago

That would make sense as players are now removed instantly after a kick since the last GMod update instead of a little delay.

FPtje commented 9 years ago

I'm more inclined to say something is calling PlayerSay with a null entity. Why (or how) would a kicked player say something in chat?

Shigbeard commented 9 years ago

sounds to me like a garry bug.

Even though garry has nothing to do with it any more. On 17/8/2014 8:07 AM, Falco Peijnenburg wrote:

I'm more inclined to say something is calling PlayerSay with a null entity. Why (or how) would a kicked player say something in chat?

— Reply to this email directly or view it on GitHub https://github.com/FPtje/DarkRP/issues/1606#issuecomment-52404404.

ManselD commented 9 years ago

I literally have no idea FPtje (remember me? ;3) Does PlayerSay check for a nil value?

FPtje commented 9 years ago

It doesn't and it shouldn't have to.

ManselD commented 9 years ago

Nzkfc, can you show me a list of your addons? Here's mine: http://prntscr.com/4dh2sf Oh and these are the workshop addons: http://steamcommunity.com/sharedfiles/filedetails/?id=299023633

ManselD commented 9 years ago

also FPtje, it would be much easier for everyone (imo) if there was checks for nil values in all functions, so then shit like this wouldn't happen.

Also, do you remember me?

FPtje commented 9 years ago

It wouldn't be much easier because errors would go unnoticed.

nzkfc commented 9 years ago

Here are mine, but I rename some thing for clarity: http://puu.sh/aVZRk/0b1f2e61d3.png

Collection has 24 Addons Mounting Addon 'Hitman Absolution: Agent 47 Playermodel' (157660704) Mounting Addon 'Security Guard Playermodels' (169011381) Mounting Addon 'Payday 2 NPCs and Player Models' (184396116) Mounting Addon 'Alan Wake Playermodel' (157623781) Mounting Addon 'Dr. Schwaiger' (191412471) Mounting Addon 'Slow SNP Pack 4' (109586003) Mounting Addon '1950's Playermodel lua' (175983422) Mounting Addon 'Saddam Hussein Player' (231145429) Mounting Addon 'Dean's Creeper Player' (231141637) Mounting Addon 'Batman Playermodel' (141049673) Mounting Addon 'Joker' (213305760) Mounting Addon 'Batgun - Editied rope length for darkrp' (253233536) Mounting Addon 'Handcuff Content' (253308807) Mounting Addon 'Firearms Source Weapons For Gmod 13' (104502728) Mounting Addon 'NYPD Police Officers - Player Models' (263275086) Mounting Addon 'Role-Play Materials v.2.1' (263031519) Mounting Addon 'Fully Functional Vaas Montenegro Player Model and Ragdoll' (113834524) Mounting Addon 'Elexis Sinclaire' (148923337) Mounting Addon 'Cry Of Fear: Simon Henriksson P.M.' (255208275) Mounting Addon 'Scavenger Playermodel' (236334505) Mounting Addon 'Hoverboards' (150455514) Mounting Addon 'Zack Halloween Playermodel' (242707219) Mounting Addon 'Terrorist Player Model's' (293501438) Mounting Addon 'Splinter Cell: Blacklist Chemsuit Goons' (243665786)

ManselD commented 9 years ago

The only addons we have in common are stacker, NLR Ghost protection, fading door, smartsnap, dlogs, stungun, bank robbery, advanced dupe 2, and textscreens.

Also, why do you have two NLR addons? :p

nzkfc commented 9 years ago

Ones a bubble the other is a popup on death, unfortunately people are blind lol.

Shigbeard commented 9 years ago

Wrong, people just dont care.

Hell I get antsy on my server about NLR and of course what is the one rule i break the most?

NLR. ]

On 18/8/2014 8:07 AM, Ryan wrote:

Ones a bubble the other is a popup on death, unfortunately people are blind lol.

— Reply to this email directly or view it on GitHub https://github.com/FPtje/DarkRP/issues/1606#issuecomment-52433195.

nzkfc commented 9 years ago

Maybe for your countries gamers, in nz/aus they care but are lazy to read until they do something wrong. Anyways This is about a console error.

Shigbeard commented 9 years ago

nz/aus

Thats me.

But yes it is about a console error.

On 18/8/2014 9:02 AM, Ryan wrote:

Maybe for your countries gamers, in nz/aus they care but are lazy to read until they do something wrong. Anyways This is about a console error.

— Reply to this email directly or view it on GitHub https://github.com/FPtje/DarkRP/issues/1606#issuecomment-52434932.

ManselD commented 9 years ago

Everyone's like that, no-one ever reads rules, not even the damn staff members. If you say you do, you most likely are lying to yourself.

I don't really have the time, but maybe you could try removing all of the addons we have in common and kick yourself each time? Something along those lines should help debug the problem.

Bo98 commented 9 years ago

I'm more inclined to say something is calling PlayerSay with a null entity. Why (or how) would a kicked player say something in chat?

Could possibly be due to a hook that does not return a value.

FPtje commented 9 years ago

That seems likely. Also, that makes it not my problem.