Better message (and handling) of ANIMDEFS issue

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

User avatar
Enjay
 
 
Posts: 26534
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Better message (and handling) of ANIMDEFS issue

Post by Enjay »

If you load OSJC's QUAKE - Descent into Heresy with Doom2 as the IWAD, it stops like so:

Image

The problem section of the ANIMDEFS is:

Code: Select all

warp flat fltlava1 0.2
warp flat fltlava2 0.2
warp flat fltlava3 0.2
warp flat fltlava4 0.2
If I comment out these lines or replace the flat name with one from Doom2, the game can start.

I know that this is happening because I'm loading it with an unintended IWAD but my point is that the only error here is that the flat mentioned in the problematic line of ANIMDEFS doesn't exist.

To me, that isn't obvious from the error message so it would be nice if GZDoom could actually tell me more specifically what the problem is. e.g. "line 10 unknown flat" rather than just "Bad syntax".

In addition, perhaps it could continue to load after printing the error to the console?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Better message (and handling) of ANIMDEFS issue

Post by Graf Zahl »

The parser is not fixable. What this really needs is a new syntax, like MAPINFO got.
User avatar
Rip and Tear
Posts: 185
Joined: Tue May 02, 2017 3:54 pm

Re: Better message (and handling) of ANIMDEFS issue

Post by Rip and Tear »

The best workaround now seems to be Lump Filtering.
Post Reply

Return to “Feature Suggestions [GZDoom]”