Blank HUDMessage: Very Fatal Error
Posted: Fri May 03, 2019 12:36 pm
A bug similar to this was reported and fixed before, however, there it was after a camera change. It's the same thing basically.
Using the given HUDMessage will crash the game: HudMessage(s: ""; HUDMSG_TYPEON, 1, CR_UNTRANSLATED, 160.0, 9.0, 0.0, 0.01, 9999.0);
I know this isn't the way to blank an existing message, however, other mods might've tried it like that too, so I rather report it.
Testable example is attached. Simply load it, start a new game, and the game will crash after a second. Tested with GZDoom 4.1 and gzdoom-x86-g4.2pre-20-gd1554aed3.
Using the given HUDMessage will crash the game: HudMessage(s: ""; HUDMSG_TYPEON, 1, CR_UNTRANSLATED, 160.0, 9.0, 0.0, 0.01, 9999.0);
I know this isn't the way to blank an existing message, however, other mods might've tried it like that too, so I rather report it.
Testable example is attached. Simply load it, start a new game, and the game will crash after a second. Tested with GZDoom 4.1 and gzdoom-x86-g4.2pre-20-gd1554aed3.
Code: Select all
#library "Bug"
#include "zcommon.acs"
Script 1 ENTER
{
Delay(35);
SetHudSize(320, 200, 0);
SetFont("SMALLFONT");
HudMessage(s: ""; HUDMSG_TYPEON, 1, CR_UNTRANSLATED, 160.0, 9.0, 0.0, 0.01, 9999.0);
}