DEH issue with Doom I / Ultimate Doom
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
-
- Posts: 42
- Joined: Tue Dec 13, 2016 5:32 pm
DEH issue with Doom I / Ultimate Doom
The latest version of GZDoom seems to have a problem with displaying episode-end messages from DEH files in Doom I / Ultimate Doom. Load up the game with any Doom I megawad that has a DEH file and that file (EX. Invasion.wad and Invasion.deh), IDCLEV to any episode's level 8 and exit the level and the default episode-end message will appear instead of the one in the DEH file. The attached log file is from a test run in which I started GZDoom 4.4.2 with the above files, started a new game, IDLCEVed to E1M8 and clipped straight to the exit switch, hit it, and got the default end-episode text instead of that in the DEH file. Strangely, this bug does not affect Doom II.
- drfrag
- Vintage GZDoom Developer
- Posts: 3141
- Joined: Fri Apr 23, 2004 3:51 am
- Location: Spain
- Contact:
Re: DEH issue with Doom I / Ultimate Doom
This is the wad: https://www.doomworld.com/idgames/level ... ds/inva_19
First version affected by the bug is 4.0.0.
First version affected by the bug is 4.0.0.
Re: DEH issue with Doom I / Ultimate Doom
With introduction of localization support, end episode texts are not identical to original messages. Double spaces were removed (ep. 1, 2, 4) and letter case was changed (ep. 4). I didn't check texts other than Ultimate Doom's.
-
- Posts: 42
- Joined: Tue Dec 13, 2016 5:32 pm
Re: DEH issue with Doom I / Ultimate Doom
_mental_ - the bug is that end-episode messages in DEH files don't override the default messages as they should.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: DEH issue with Doom I / Ultimate Doom
Letter case should not matter, but the double spaces should probably be removed before comnparing contents.
Re: DEH issue with Doom I / Ultimate Doom
Almost! C6TEXT (the intermission screen before MAP32 of Doom 2) is missing a \n at the end in GZDoom, so this fix misses that one (either the language lump should be updated, or more should be added to this code fix). Of the 22 episode texts across Ultimate Doom, Doom 2, TNT, and Plutonia, this is the only non-matching one not covered by this fix (every other episode text is either already correct or fixed by this patch)._mental_ wrote:Fixed.
Re: DEH issue with Doom I / Ultimate Doom
Adding more conditions to code is bad idea in my opinion. If we really need sophisticated heuristics here, I would rather do a fuzzy comparison, via Levenshtein distance for example.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: DEH issue with Doom I / Ultimate Doom
I generally agree, but making an exception for line feeds at the end may be necessary because these are somewhat problematic within a spreadsheet.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: DEH issue with Doom I / Ultimate Doom
Added the missing line feed to C6TEXT.
Re: DEH issue with Doom I / Ultimate Doom
It looks like your patch has broken C2TEXT (end of Doom II's MAP11), which still has double spaces. TXT_CHEATIDDQD, GOTBFG9000, GOTCHAINSAW, TXT_YOUFOOL, and TXT_YOUREDEAD also have double spaces and are presumably affected.
On a related note, GZDoom's STSTR_CLEV ("Changing Level...") has an extra newline, so DEH files don't replace it. (Then again, who actually does replace that string?)
On a related note, GZDoom's STSTR_CLEV ("Changing Level...") has an extra newline, so DEH files don't replace it. (Then again, who actually does replace that string?)
- Player701
-
- Posts: 1640
- Joined: Wed May 13, 2009 3:15 am
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: DEH issue with Doom I / Ultimate Doom
Yeah, confirmed that C2TEXT is broken and is no longer replaced by DEHACKED patches. Maybe create another report for that?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49073
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: DEH issue with Doom I / Ultimate Doom
Should all be fixed now