Physics-based crashing becoming the bane of my existance
7 replies, posted
All I wanted were physical projectiles that detect collision- earlier along in development there were several "changing collision rules in a callback is likely to cause issues" being spit out into the console. I fixed that by adding a timer.Simple before any changes in collision rules. The thing is, after I did that, another problem became apparent. It was about a 1/6th chance that any given projectile would crash the entire game right after it's been made! I swear, I would be testing them out, and I'd have fired 2 bullets before the third one decides to crash the game and make me restart. Now of course, I've done my own bit of debugging. That's what I'd like to say, if the logs actually existed. Whatever is crashing the game is fucking it so hard that it cant write a single byte of data to the crash log. I've tried disabling parts of the collision code, but nothing works short of completely removing the projectile collision detection, which clearly isn't going to cut it. I know that I didn't share any code here, but I wouldn't even know what to put. Please leave some insight so I know where things may be going wrong.
~ Wasabi ~
Had to replace ShouldCollide with a hacky workaround. Found out the problem on a GitHub issue
ShouldCollide causes physics engine to mess up when certain thin..
This should really be fixed. This has been a six year problem.
Anyways, who wants a couple coins?
Hit me up, and make some more posts here so I can give the coins back to ya.
mcthankies
Five
F-R-E-E that spells free, credit report dot com baby
It really isn't that easy. We have physically no way to fix physics based issues. We cannot compile vphysics.dll.
It will probably never be fixed, like most of vphysics problems/crashes.
You can try copying the TF2 vphysics.dll over, but I doubt it will change much. That one is the most up to date though.
CCollisionEvent::ShouldCollide(IPhysicsObject*, IPhysicsObject*, void*, void*) is in server_srv.so, which you can compile.
Also, fuck IVP and whoever decided to put this clusterfuck of shitconding in Source engine.
Sorry, you need to Log In to post a reply to this thread.