RigsOfRods / rigs-of-rods

Main development repository for Rigs of Rods soft-body physics simulator
https://www.rigsofrods.org
GNU General Public License v3.0
990 stars 175 forks source link

Exception hardening #3144

Closed ohlidalp closed 2 weeks ago

ohlidalp commented 3 months ago

This should put a stop to the game panicking on any unhandled exceptions, which are usually trivially recoverable, like this dialog which was caused by a .mesh file missing from a terrain: obrazek

All exceptions which happen during processing message queue are now automatically logged to RoR.log and also forwarded to AngelScript as game event - a trick already widely used in OGRE bindings, see SE_GENERIC_EXCEPTION_CAUGHT.

ohlidalp commented 2 weeks ago

Merging in good faith without peer approval - I've been developing other branches on top of this for about a week, and didn't observe any issues, in fact I added a few more error tolerance commits.