• Util Blast at ragdolls == server crash
    2 replies, posted
This is probably old problem, however I couldn't find anything but a few hints over the forum. I'm running swrp (darkrp) server and try to make it more battlefield-alike, so there are events against NPCs with ~50-60 players using various weaponry from the workshop, and sometimes even 90-105 players in PVP, so the CPU pressure is big. I did some micro-optimisation stuff and usually server doesn't lag nor does it crash, but there's been a trend lately: When players use explosives against dead bodies (dead NPCs or dead Players), server sometimes crashes. I did a few tests under high (~70 players) pressure, stuff like sending a grenade (util.blast on touch) towards 3-4 dead bodies, or if there is NPC spawn point with ~10 dead NPCs then it's deffinely a crash. M9K rocket launchers are good for crashes too. What I did: disabled widgets players can't spawn ragdolls entity crash catcher v2 (4 months old version (latest) by code_gs): however I didn't play with settings yet, they're all default ulx clearragdolls on npc events whenever I can What could be done: Disable serverside ragdolls? Probably, the best idea, however I use defibrilator / CPR for after-death activities and they are performed on dead bodies - players can drag bodies and reanimate them, this is 50% of any battlefield (pvp) event so I can't get rid of it, but may be there are better ways? Would it help if instead of player's ragdoll OnDeath event a prop (like, a chair) would be made? Make it so util.blast ignore ragdolls? Or may be disable some parts of ragdolls' physics? I take it server crashes because of some physics issues applied by util.blast to ragdolls, entity crash catcher should stop & delete ragdolls that are moving too fast or creating errors, but it doesn't, any idea why? There's an issue of high ping (~150-200-300) for almost all of my players, could it be a reason for entity catcher not having enough time to catch anything? Any idea would be welcomed. This thing plagues my server for months and heavily affect playerbase.
Try to crash the game on a listen server first, to get to know if it is your server or a general crash bug.
With 30-40 players it's OK, crashes occur only from 70 to 110, probably because of high load. And if there's spawn point of NPCs, and ~20-30 bodies are at one place, then there's a blast == crash. I tried on test server (5 players at max) and obviously nothing crashed. For NPCs I was going to make sort of autoclearragdolls on their deaths, but I need something for players too. May be turn off physics for ragdolls? Or filter for util.blast so it would not affect dead bodies?
Sorry, you need to Log In to post a reply to this thread.