Good afternoon all!
I've pushed a small patch to the Beta branch with a potential fix for the long-standing bug that some Survival players may have encountered where the game starts to fall apart during particularly long sessions - shots start going through enemies, players are unable to walk up stairs properly, and other physics issues.
Due to a nudge from the community and some additional clues I picked up from the Unity Discussions boards, I was able to finally replicate this extremely elusive issue and fix it in at least one case! The issue was being caused by a specific enemy's projectile clipping through the map in rare instances and falling forever below the map. When the object's position reached absurdly high numerical values, Unity's physics engine would start having issues, causing raycasts to fail among other things.
This specific projectile was given a despawn timer to prevent this from occurring, and other projectiles were given similar safeguards even though they haven't caused issues yet.
Additionally, I added a couple of logging measures to help identify any future culprits. When you Quit to Menu, a check will automatically be performed for any out-of-bounds objects. You can manually trigger this check by typing "oobcheck" into the in-game dev console. This will not show any information in-game but will dump info into the game's logs.
Hope this helps my Survival Community with those looong top-score attempts!
Fixes
- A rare edge case where a specific projectile was falling below the map was fixed
Changes
- The "oobcheck" console command was added to assist with troubleshooting future physics issues
- The "oobcleanup" console command was added to try and fix ongoing sessions that have begun experiencing physics issues. This should identify and destroy any out-of-bounds objects. Note that this command does not display any confirmation in-game.
- An automatic logging function runs when Quitting to Menu that will identify if any objects were out of bounds at the time you exited.
Changed depots in beta branch