I didn't found anything up-to-date about this problem, so I'm here now.
Console Log:
[QUOTE]CBaseEntity::SetAbsOrigin( 87877.953125 167729.359375 -185.007324 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 87892.007812 167754.859375 -184.824051 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 87906.429688 167780.843750 -184.555954 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 87910.601562 167793.281250 -189.269058 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 87923.179688 167815.937500 -190.860947 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 87937.718750 167841.781250 -192.513535 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 87930.281250 167822.515625 -193.898972 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 87944.351562 167848.250000 -194.487122 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 87958.398438 167874.468750 -195.388763 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 87972.062500 167900.796875 -197.358627 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 87986.054688 167927.000000 -197.595093 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 87999.750000 167953.359375 -197.509415 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 88014.000000 167979.421875 -197.043442 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 88024.351562 167994.218750 -195.073334 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 88026.531250 167995.484375 -193.724854 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 88034.468750 168006.937500 -192.362289 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 88043.250000 168016.593750 -193.265442 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 88051.984375 168026.375000 -194.849609 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 88058.585938 168037.359375 -197.200958 ): Ignoring un
reasonable position.
CBaseEntity::SetAbsOrigin( 88062.882812 168045.734375 -200.566483 ): Ignoring un
reasonable position.
Segmentation fault (core dumped)
Add "-debug" to the ./srcds_run command line to generate a debug.log to help wit
h solving this problem
A. 8N;O 26 17:37:00 MSK 2015: Server restart in 10 seconds
[/QUOTE]
I don't even know what causes this, because before this 'error' nothing special happens.
EDIT: Sometimes it's CBaseEntity::SetAbsOrigin( -nan -nan -nan )
It looks like something just fell out of the world?
Nah, I've tested this. Entity just removes, 'coz of crazy physics.
[QUOTE]Crazy physics on [42][prop_physics] [Ang:-20.009024,55.045879,350.963226] [Pos:795.107422,287.178864,-16393.169922] - removing[/QUOTE]
Then maybe an addon is setting an entity's pos based on CurTime/RealTime?
This is definitely caused by crazy physics.
[QUOTE=Robotboy655;48299854]This is definitely caused by crazy physics.[/QUOTE]
Is it fixable? :v:
EDIT: I think prop_ragdoll may cause this error, but how should I fix this?
[QUOTE=krekeris;48300213]Is it fixable? :v:
EDIT: I think prop_ragdoll may cause this error, but how should I fix this?[/QUOTE]
Make sure it's collision group isn't set to DEBRIS_TRIGGER
[QUOTE=code_gs;48300621]Make sure it's collision group isn't set to DEBRIS_TRIGGER[/QUOTE]
[CODE] local pos, angles, model = victim:GetPos(), victim:GetAngles(), victim:GetModel()
local weps = victim:GetWeapons()
local rag = ents.Create("prop_ragdoll")
rag:SetPos(pos)
rag:SetAngles(angles)
rag:SetModel(model)
rag.Player = victim
rag.IsBody = true
local bool = true
local restr = {DMG_CRUSH, DMG_BURN, DMG_FALL, DMG_BLAST, DMG_DROWN, DMG_RADIATION}
if table.HasValue(restr, dmginfo:GetDamageType()) then bool = false end
rag:SetNWBool("Alive", bool)
rag.Model = model
rag.Weapons = {}
for _, wep in pairs(weps) do
if IsValid(wep) then
table.insert(rag.Weapons, wep:GetClass())
end
end
rag:Spawn()
rag:SetCollisionGroup(COLLISION_GROUP_WORLD)[/CODE]
Can you try calling [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/CollisionRulesChanged]Entity:CollisionRulesChanged[/url] after you set the collision group?
Still crashes with the same error.
[editline]27th July 2015[/editline]
Now I'm 100% sure that ragdolls causes this.
So here's full code:
[CODE]local meta = FindMetaTable("Player")
hook.Add("DoPlayerDeath", "GB_Corpses", function(victim, _, dmginfo)
local pos, angles, model = victim:GetPos(), victim:GetAngles(), victim:GetModel()
local weps = victim:GetWeapons()
local rag = ents.Create("prop_ragdoll")
rag:SetPos(pos)
rag:SetAngles(angles)
rag:SetModel(model)
rag.Player = victim
rag.IsBody = true
local bool = true
local restr = {DMG_CRUSH, DMG_BURN, DMG_FALL, DMG_BLAST, DMG_DROWN, DMG_RADIATION}
if table.HasValue(restr, dmginfo:GetDamageType()) then bool = false end
rag:SetNWBool("Alive", bool)
rag.Model = model
rag.Weapons = {}
for _, wep in pairs(weps) do
if IsValid(wep) then
table.insert(rag.Weapons, wep:GetClass())
end
end
rag:Spawn()
rag:SetCollisionGroup(COLLISION_GROUP_WORLD)
rag:CollisionRulesChanged()
local hookname = "CorpseRemove_"..rag:EntIndex()
hook.Add("Think", hookname, function()
local pl = rag.Player
if not rag or not IsValid(rag) then
hook.Remove("Think", hookname)
elseif not pl or not IsValid(pl) then
hook.Remove("Think", hookname)
rag:Remove();
return
elseif pl:Alive() then
hook.Remove("Think", hookname)
rag:Remove();
return
end
end)
local rag_hold = ents.Create("prop_physics")
rag_hold:SetModel("models/hunter/blocks/cube025x025x025.mdl")
rag_hold:SetPos(rag:GetPos())
rag_hold:SetAngles(rag:GetAngles())
rag_hold:Spawn()
rag_hold:SetCollisionGroup(COLLISION_GROUP_WORLD)
rag_hold:CollisionRulesChanged()
rag_hold:SetNoDraw(true)
constraint.Weld(rag_hold, rag, 0, 0, 0, true, true)
timer.Simple(0.1, function()
if not IsValid(victim) then return end
net.Start("CorpsePlayerDeath")
net.WriteFloat(rag:EntIndex())
net.WriteFloat(CurTime()+GB64.unconsciousTime)
net.Send(victim)
end)
timer.Simple(0.3, function()
if not IsValid(victim) then return end
victim.NextSpawnTime = CurTime() + GB64.unconsciousTime
end)
end)
function meta:CreateRagdoll()
return NULL
end[/CODE]
bump.
Maybe I can somehow detect "un reasonable position" on entity and remove it?
Sorry, you need to Log In to post a reply to this thread.