Barotrauma 潜渊症

Barotrauma 潜渊症

Don't Crash
Nupaska  [开发者] 4 月 11 日 下午 11:30
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
最后由 Nupaska 编辑于; 4 月 12 日 下午 10:06