Barotrauma

Barotrauma

Don't Crash
Nupaska  [developer] 11 Apr @ 11:30pm
How it works?
It adds finalizer patches to GameMain.Update and GameMain.Draw methods, they intercept all unhandled exceptions
It's basically try catch around GameMain methods
I check those errors and add method results (ok, error) to its respective queue
The more errors in the queue the worse is the game state
When queue is full of errors i declare the game dead and force open the console for you
When update/draw tick fails mod runs simplified tick that just updates/draws console to keep console alive

This simple trick blocks one time / non important exceptions that would otherwise crash the game

If you want to test it:
  • Go to character editor
  • f3 -> cl_reloadlua
  • select ragdoll
  • in parameters disable "CanWalk"
  • ...
  • Profit
Last edited by Nupaska; 12 Apr @ 10:06pm