by Mere_Duke » Fri Jan 11, 2019 11:21 pm
(Apologize if there is a reason behind the behavior I want to discuss.)
(Tested on GZDoom 3.7.1)
Without further ado, I have 'pk3' file. There are some lumps. GZDoom detects standard lump names (e.g. SNDINFO) and processes the file with that name like a sound definitions file. Also I can "extend" that file name and name it, say, SNDINFO.txt or SNDINFO.Enemies, and GZDoom will notice that SNDINFO.Enemies == SNDINFO lump. But if I name it, say, SNDINFO.Enemies.txt, it won't work. Unlike DECORATE files, that work even if named something like "DECORATE.Weapons.txt".
So, after some research, I've found that:
Code: Select all
MENUDEF.txt
SNDINFO.txt
MAPINFO.txt
will't be recognized, while:
Code: Select all
MENUDEF.Main.txt
SNDINFO.Blabs.txt
MAPINFO.Mymap.txt
won't be recognized.
And other lumps work fine, these all will be recognized by parser:
Code: Select all
DECORATE.New.Enemy.txt
Decaldef.Blood.Waterblood
GLDEFS.Sidekicks.gl
I wonder why such a restriction for that set of lumps, is it a "bug" or by intention?
(Apologize if there is a reason behind the behavior I want to discuss.)
(Tested on GZDoom 3.7.1)
Without further ado, I have 'pk3' file. There are some lumps. GZDoom detects standard lump names (e.g. SNDINFO) and processes the file with that name like a sound definitions file. Also I can "extend" that file name and name it, say, SNDINFO.txt or SNDINFO.Enemies, and GZDoom will notice that SNDINFO.Enemies == SNDINFO lump. But if I name it, say, SNDINFO.Enemies.txt, it won't work. Unlike DECORATE files, that work even if named something like "DECORATE.Weapons.txt".
So, after some research, I've found that:
[code]MENUDEF.txt
SNDINFO.txt
MAPINFO.txt[/code]
will't be recognized, while:
[code]MENUDEF.Main.txt
SNDINFO.Blabs.txt
MAPINFO.Mymap.txt[/code]
won't be recognized.
And other lumps work fine, these all will be recognized by parser:
[code]DECORATE.New.Enemy.txt
Decaldef.Blood.Waterblood
GLDEFS.Sidekicks.gl[/code]
I wonder why such a restriction for that set of lumps, is it a "bug" or by intention?