Support for HACX
Brought to you by:
e6y
Hi there,
HACX is a freely available 20-level TC for Doom 2 which in its recent version 1.2 is even available as an IWAD. However, prboom-plus fails to recognize it properly and aborts with an error. The attached patch adds initial support for HACX by considering it as an additional gamemission for Doom2.
- Fabian
Initial support for HACX
The following chunk should be added, so HACX isn't run in final doom, but doom 2 compatibility mode.
--- a/src/g_game.c
+++ b/src/g_game.c
@@ -3119,7 +3119,7 @@ static int G_GetOriginalDoomCompatLevel(int ver)
if (ver == 110) return tasdoom_compatibility;
if (ver < 107) return doom_1666_compatibility;
if (gamemode == retail) return ultdoom_compatibility;
- if (gamemission >= pack_tnt) return finaldoom_compatibility;
+ if (gamemission == pack_tnt || gamemission == pack_plut) return finaldoom_compatibility;
return doom2_19_compatibility;
}
HACX.WAD works fine as pwad.
does it?
applied
I've checked zdoom sources. It checks "HACX-E" and "HACX-R" lumps for recognizing Hacx 2.0 and Hacx 1.2
IWad
{
Name = "Hacx 2.0"
Game = "Doom"
Config = "Hacx"
Mapinfo = "mapinfo/hacxharm.txt"
MustContain = "MAP01", "HACX-E"
BannerColors = "ff ff ff", "00 88 22"
}
IWad
{
Name = "Hacx: Twitch'n Kill"
Game = "Doom"
Config = "Hacx"
Mapinfo = "mapinfo/hacxharm.txt"
MustContain = "MAP01", "HACX-R"
BannerColors = "00 00 a8", "a8 a8 a8"
}