Quasar
Moderator

Posts: 4615
Registered: 08-00 |
Gez said:
I'm not even sure about that since the SLADE3 beta doesn't read it correctly. (Why is a mystery to me, the algorithm used is exactly the same as in Slumped, which does read it correctly.)
But look at this:
pic
Seems to me there are two different directories here... The one that's used is the second. In the first we see the infamous PLATFORM lump. Then there's a long list of null bytes which are interpreted as the offsets, lengths and names of a bunch of lumps, since 111 of them are supposed to exist in total.
Extra wad directories, which are left over from the insertion of additional lumps into wad files, in this case probably the music lump, are not unusual in my experience.
WAD is a very open format which can contain arbitrary data between the offset-referenced portions of the files (the directory and the lumps). The only thing fixed is the position of the header, which should be at offset 0. Directories which are not referenced from the header are only interlump garbage and must always be ignored.
Your problem with reading the directory may be because the lump names are empty, which is something that needs to be tolerated - I know for a fact that this is not nearly the only wad with empty lump names in the directory.
|