From edb2f1f6065c6de3a35c8997c0bf6d8893660947 Mon Sep 17 00:00:00 2001 From: Egor Date: Sat, 8 Apr 2023 22:16:14 +0300 Subject: [PATCH 1/2] Allow netplay with sideloaded WADs NET_SV_ParseGameStart checks that episode and map are in the correct range. This prevented the episode 5 version of Sigil, as well as sideloaded NRFTL and Master Levels from working in netgames. This is fixed by changing the number of episodes in the valid_modes table. As a side effect, setup program will now allow warping to E5Mx for the Ultimate Doom IWAD. Outside of Heretic, the valid_modes table is only used for these two things (netgame validation and setup warp UI). Note that if you try to start a netgame with a non-existent map, the client will simply exit with a W_GetNumForName error. --- src/d_mode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d_mode.c b/src/d_mode.c index b08e8cb2bd..22a8689be7 100644 --- a/src/d_mode.c +++ b/src/d_mode.c @@ -33,8 +33,8 @@ static struct { pack_chex, retail, 1, 5 }, { doom, shareware, 1, 9 }, { doom, registered, 3, 9 }, - { doom, retail, 4, 9 }, - { doom2, commercial, 1, 32 }, + { doom, retail, 5, 9 }, // [crispy] extended for Sigil + { doom2, commercial, 3, 32 }, // [crispy] extended for NRFTL / The Master Levels { pack_tnt, commercial, 1, 32 }, { pack_plut, commercial, 1, 32 }, { pack_hacx, commercial, 1, 32 }, From 063e03e0fafcbd9ff95fed6b692b90ad36d4d0b3 Mon Sep 17 00:00:00 2001 From: Egor Date: Sun, 10 Dec 2023 13:51:51 +0200 Subject: [PATCH 2/2] Allow episode 6 in netplay for Sigil II --- src/d_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d_mode.c b/src/d_mode.c index 22a8689be7..f096c772de 100644 --- a/src/d_mode.c +++ b/src/d_mode.c @@ -33,7 +33,7 @@ static struct { pack_chex, retail, 1, 5 }, { doom, shareware, 1, 9 }, { doom, registered, 3, 9 }, - { doom, retail, 5, 9 }, // [crispy] extended for Sigil + { doom, retail, 6, 9 }, // [crispy] extended for Sigil / Sigil II { doom2, commercial, 3, 32 }, // [crispy] extended for NRFTL / The Master Levels { pack_tnt, commercial, 1, 32 }, { pack_plut, commercial, 1, 32 },