Open 06000208 opened 5 years ago
ServerLog: Round proper has begun...
ServerLog: 00:02.62 - KILL: amber [innocent] killed amber [innocent]
ServerLog: Round ended.
ServerLog: Result: traitors win.
ServerLog: Round proper has begun...
ServerLog: 00:29.85 - KILL: <something/world> killed Bot01 [innocent]
ServerLog: Round ended.
ServerLog: Result: traitors win.
ServerLog: Round proper has begun...
Attempted to create unknown entity type PhyscannonMuzzle!
[TTT Gravity Gun] lua/weapons/weapon_ttt_gravitygun/shared.lua:640: Tried to use a NULL entity!
1. SetPos - [C]:-1
2. Visual - lua/weapons/weapon_ttt_gravitygun/shared.lua:640
3. unknown - lua/weapons/weapon_ttt_gravitygun/shared.lua:453
[TTT Gravity Gun] lua/weapons/weapon_ttt_gravitygun/shared.lua:644: Tried to use a NULL entity!
1. SetParent - [C]:-1
2. Visual - lua/weapons/weapon_ttt_gravitygun/shared.lua:644
3. unknown - lua/weapons/weapon_ttt_gravitygun/shared.lua:453
[TTT Gravity Gun] lua/weapons/weapon_ttt_gravitygun/shared.lua:644: Tried to use a NULL entity!
1. SetParent - [C]:-1
2. Visual - lua/weapons/weapon_ttt_gravitygun/shared.lua:644
3. unknown - lua/weapons/weapon_ttt_gravitygun/shared.lua:453
[TTT Gravity Gun] lua/weapons/weapon_ttt_gravitygun/shared.lua:644: Tried to use a NULL entity!
1. SetParent - [C]:-1
2. Visual - lua/weapons/weapon_ttt_gravitygun/shared.lua:644
3. unknown - lua/weapons/weapon_ttt_gravitygun/shared.lua:453
ServerLog: 04:55.81 - DMG: amber [traitor] damaged Bot01 [innocent] for 128 dmg
ServerLog: 04:55.81 - KILL: amber [traitor] killed Bot01 [innocent]
ServerLog: Round ended.
Hi!
A few things:
1.) I think it's clear why this happening: the entity PhyscannonMuzzle
can not be created, therefore self.Muzzle
becomes the references NULL entity.
2.) I'd check again after shared.lua:639, if the created entity actually exists, like you did on shared.lua:638
if !self.Muzzle then
self.Muzzle = ents.Create("PhyscannonMuzzle")
if !self.Muzzle then
//some handling
else
self.Muzzle:SetPos( self.Owner:GetShootPos() )
...
I know it's not ideal but you could catch those errors that way. I would extend this including line shared.lua:645, since those also reference self.Muzzle
.
I have never worked with this type of entity (PhyscannonMuzzle
) before. Are you sure that this is the right entity? Does this error happen all the time?
Let me know if you need some help. :)