Difference between revisions of "PNAMES"

From DoomWiki.org

[unchecked revision][checked revision]
(New page: A WAD lump with all the names for wall patches ==Binary data== The binary contents of the PNAMES lump starts with a header of 4 bytes, followed by all the the ...)
 
(Removed _other_ superfluous "the" in the same spot... LOL)
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
A [[WAD]] [[Lump|lump]] with all the names for [[Wall patch|wall patches]]
+
'''PNAMES''' is a [[WAD]] [[Lump|lump]] that includes all the names for [[Wall patch|wall patches]].
  
 
==Binary data==
 
==Binary data==
The binary contents of the PNAMES lump starts with a header of 4 bytes, followed by all the the the patch names.
+
The binary contents of the PNAMES lump starts with a header of 4 bytes, followed by all of the patch names.
  
 
{| {{prettytable}}
 
{| {{prettytable}}
Line 14: Line 14:
 
| nowrap | 8 * nummappatches  
 
| nowrap | 8 * nummappatches  
 
|name_p[ ]
 
|name_p[ ]
|Eight-character ASCII strings defining the lump names of the patches. Only the characters A-Z (uppercase), 0-9, and [ ] - _ should be used in lump names. When a string is less than 8 bytes long, it should be null-terminated.
+
|Eight-character ASCII strings defining the lump names of the patches. Only the characters A-Z (uppercase), 0-9, and [ ] - _ should be used in lump names. When a string is less than 8 bytes long, it should be null-padded to the eighth byte.
 
|}
 
|}
  
Line 23: Line 23:
 
*[[TEXTURE1_and_TEXTURE2|TEXTURE1 and TEXTURE2]] lumps
 
*[[TEXTURE1_and_TEXTURE2|TEXTURE1 and TEXTURE2]] lumps
  
[[Category:Doom engine]]
+
[[Category:WAD lumps]]
 +
[[Category:Textures]]

Revision as of 22:32, 21 January 2008

PNAMES is a WAD lump that includes all the names for wall patches.

Binary data

The binary contents of the PNAMES lump starts with a header of 4 bytes, followed by all of the patch names.

PNAMES
Offset Length Name Content
0x00 4 nummappatches An integer holding a the number of following patches.
0x04 8 * nummappatches name_p[ ] Eight-character ASCII strings defining the lump names of the patches. Only the characters A-Z (uppercase), 0-9, and [ ] - _ should be used in lump names. When a string is less than 8 bytes long, it should be null-padded to the eighth byte.

All integers are 4 bytes long in x86-style little-endian order. Their values can never exceed 231-1, since Doom reads them as signed ints.

See Also