[Fixed] [4.7.0] GZDoom doesn't recognize INDEXFON

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

[4.7.0] GZDoom doesn't recognize INDEXFON

Postby cubebert » Mon Sep 27, 2021 8:21 am

On GZDoom 4.6.1 and earlier versions, the engine will load wads that have INDEXFON used for their SBARINFO lump. However, loading the same wads on 4.7.0 will cause the engine to fail loading, giving out the message "Unknown font 'INDEXFON'". So far, this has affected Samsara, but it's likely that many older wads are affected as well. To reproduce this bug, simply load Samsara with GZDoom 4.7.0.

User avatar
cubebert
 
Joined: 14 Jun 2020
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: [4.7.0] GZDoom doesn't recognize INDEXFON

Postby Blue Shadow » Mon Sep 27, 2021 8:41 am

The font is called "indexfont", with a "t" in the end.
User avatar
Blue Shadow
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: [4.7.0] GZDoom doesn't recognize INDEXFON

Postby cubebert » Mon Sep 27, 2021 10:25 am

I've manually replaced each instance of INDEXFON with INDEXFONT and that seemed to fix the issue. Samsara works on GZDoom 4.7.0, Zandronum, and earlier versions of GZDoom, so I guess it's not really a GZDoom error so much as it is a user-end bug. Thanks for clarifying! :)

By the way, since earlier GZDoom versions could load INDEXFON without throwing out an error, is there any reason why that was changed in 4.7.0? I know that if people really wanted to, they could use those versions to play mods that might have that error pop up, but it seems to me like INDEXFON and INDEXFONT were interchangable, unless I'm mistaken.
User avatar
cubebert
 
Joined: 14 Jun 2020
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: [4.7.0] GZDoom doesn't recognize INDEXFON

Postby Graf Zahl » Mon Sep 27, 2021 12:40 pm

It was undefined behavior. The sort name of indexfont.txr is INDEXFON. There has been some restructuring on the font code recently. Apparently some mods can't play by the rules if sloppy desgin is accepted by the engine,
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [4.7.0] GZDoom doesn't recognize INDEXFON

Postby drfrag » Mon Sep 27, 2021 1:04 pm

I was thinking about the 8 character limit for filenames in DOS and wad editing DOS tools.
This could be a problem (considering that Blzut3 created SBARINFO AFAIR). viewtopic.php?f=3&t=15903#p317233
User avatar
drfrag
Os voy a romper a pedazos!
Vintage GZDoom Developer
 
Joined: 23 Apr 2004
Location: Spain
Discord: drfrag#3555
Github ID: drfrag666

Re: [4.7.0] GZDoom doesn't recognize INDEXFON

Postby 3saster » Wed Sep 29, 2021 7:02 pm

Supposing that compatibility is restored (which it should, since it effects major mods no longer worked on like Samsara and High Noon Drifter), it would be easy enough to do it, no? Either duplicate INDEXFONT into a font called INDEXFON, or (probably better), just make INDEXFON an alias for INDEXFONT in the relevant font code.
User avatar
3saster
 
Joined: 11 May 2018
Location: Canada

Re: [4.7.0] GZDoom doesn't recognize INDEXFON

Postby Blzut3 » Fri Oct 01, 2021 9:07 pm

Yeah, I have to say even I assumed the short name would always be a valid alias.
Blzut3
Pronounced: B-l-zut
 
 
 
Joined: 24 Nov 2004
Github ID: Blzut3
Operating System: Debian-like Linux (Debian, Ubuntu, Mint, etc) 64-bit
Graphics Processor: ATI/AMD with Vulkan Support

Re: [4.7.0] GZDoom doesn't recognize INDEXFON

Postby Graf Zahl » Fri Oct 01, 2021 10:47 pm

Normally, yes.
But I recently changed this font from a .fon file to a directory-based font when I had to edit it. For directory based fonts the short name does not exist in the file system.

We had exactly the same issue with CONFONT/CONSOLEFONT when that one got extended.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 1 guest