Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
IMJack

WAD file format

Recommended Posts

Maybe some of you coders and old-school level editors can help me with this. How is the data in a WAD file arranged? What data strings define vertices, linedefs, sectors, and sidedefs?

I'm trying to write a Java app that will let me read from/write to a WAD file (part of my Java course). For the sake of arguement, let's say it's a typical one-map pwad I'm working with. Thanks.

Share this post


Link to post

The structure of WAD files is quite simple. The header:

4 bytes: IWAD or PWAD
4 bytes: (*) number of lumps in WAD
4 bytes: pointer to lump directory within the file.

The lump directory is (*) times 16 bytes:

4 bytes: pointer to lump within file
4 bytes: length of lump
8 bytes: name of lump.

More on this here: http://www.funet.fi/pub/msdos/games/id/doomspec.txt

If you have any additional questions, just ask. Both me and Deep are hanging around these forums and we have developed our own WAD editors.

Share this post


Link to post
Csabo said:

If you have any additional questions, just ask. Both me and Deep are hanging around these forums and we have developed our own WAD editors.


XWE rocked my pants when I could use it.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×