^Zabor^ - VM abort handler

Post your example zscripts/ACS scripts/etc here.

^Zabor^ - VM abort handler

Postby m8f » Tue Feb 23, 2021 5:26 am

Zabor is VM abort handler for GZDoom. It is both a script library and a standalone add-on.

Source code


When VM abort happens, Zabor prints:
  • basic game information: map name, total time, multiplayer status, player class, skill;
  • game configuration: compat flags, dm flags, autoaim;
  • event handler list;
  • system time;
  • a request for the user to report the VM abort.

If there are several Zabor-based handlers loaded, only the first one will print stuff. For this to work, all handlers must have "VmAbortHandler" somewhere in their class name.

Also there is zabor console command for gathering a report by manual request.

How to use

As a standalone add-on
Simply load zabor-v*.pk3 with other mods. Wait for an abort. You can test that it works with the following command:
Code: Select allExpand view
error welp

As a script library
  1. Copy zr_VmAbortHandler class from zscript.zs to your mod.
  2. Change zr_ to something unique. Please make sure that VmAbortHandler part of the name remains intact.
  3. Add this event handler to gameinfo section in mapinfo lump like this:
Code: Select allExpand view
  AddEventHandlers = "my_VmAbortHandler"


  • Thanks to KeksDose for the concept of VM abort handler.
User avatar
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit

Return to Script Library

Who is online

Users browsing this forum: No registered users and 0 guests