Cyberdemon
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > externally reading the contents of a WAD
 
Author
All times are GMT. The time now is 19:23. Post New Thread    Post A Reply
Doom-Child
Wears the man-pants in this family


Posts: 1365
Registered: 06-01


How do I do it? I tried opening the file as a text file, no dice. I tried it as a binary file, no dice.

Am I just interpreting the information wrong? The only intelligible bit of information was the IWAD/PWAD tag.

DC

Old Post 06-26-01 15:47 #
Doom-Child is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Lüt
Administrator


Posts: 9170
Registered: 05-00


You mean see how maps are in it and if it has new textures or sounds or music?

You'll want WinTex for that, it shows/plays all the entries in any way along with displaying any extra data it may have.

Old Post 06-26-01 16:11 #
Lüt is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
DeePTeam
Junior Member


Posts: 127
Registered: 05-00


For quickly seeing what's in a PWAD/IWAD, just use "Open PWAD" from the File menu in DeePsea.

This shows ALL the levels, lump names and gives graphical, sound/wav and mus/mid feedback as one just clicks on each file name.

Old Post 06-26-01 16:56 #
DeePTeam is offline Profile || Blog || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Doom-Child
Wears the man-pants in this family


Posts: 1365
Registered: 06-01


I just downloaded xwe, and I can see it there as well. What I'm asking is: How do I code something like that? Ideally, I'd like direct access to the internal workings of a WAD, but every time I open one, I get random garbage. It's bizzare.

DC

Old Post 06-26-01 18:41 #
Doom-Child is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Lüt
Administrator


Posts: 9170
Registered: 05-00


What, you expect all the images and data to show up in your text file? You'll get that garbage with any file that isn't a text file, that's how things are compiled.

You can do all your editing with XWE or Wintex.

Old Post 06-26-01 20:52 #
Lüt is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Doom-Child
Wears the man-pants in this family


Posts: 1365
Registered: 06-01


No no no...I'm not trying to open it as a text file. I understand the difference in a binary file and a text file. But, even when I code it to open a binary file, I get that crap. What other base file formats are there? Is the WAD compressed?

I'm trying to open a WAD in a program I'm writing. I know about DeepSea and XWE.

DC

Old Post 06-26-01 21:00 #
Doom-Child is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
DeePTeam
Junior Member


Posts: 127
Registered: 05-00


You do open the file as binary, but internally there's a "directory". So the 1st 4 bytes is IWAD or PWAD, then #dir entries[4], and offset pointer (4) to the start of the directory.

So what you do is seek to "offset" then read "number" times for the size of each dir entry (which is 16 each). Each dir entry is offset[4](to start of lump), size[4](of lump), Name[8](of lump).

That should be easy to do. Each type of lump has different internal formats. For that, get the source code to DOOMED or DEU or WINTEX or DMAPEDIT or NWT or ...

Old Post 06-26-01 22:52 #
DeePTeam is offline Profile || Blog || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
cph
Junior Member


Posts: 208
Registered: 05-00



I'm trying to open a WAD in a program I'm writing. I know about DeepSea and XWE.


http://doomgate.gamers.org/dhs/helpdocs/dmsp1666.html

Failing that, as others have suggested read the source to existing programs out there.

Old Post 07-01-01 00:10 #
cph is offline Profile || Blog || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 19:23. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > externally reading the contents of a WAD

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.