Archvile
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 General > DOOM 32X WAD Converter
Pages (4): [1] 2 3 4 »  
Author
All times are GMT. The time now is 00:03. Post New Thread    Post A Reply
saxman
Warming Up


Posts: 17
Registered: 12-09


LATEST VERSION: v1.10

CLICK BELOW TO DOWNLOAD:
http://www.4shared.com/file/1981750...wad32x_110.html

I have created this utility to convert 32X WAD data over to the standard PC WAD file format, and vise-versa. This makes it possible to see the contents of the WAD file from the 32X port of DOOM for anyone curious, as well as allowing people to modify it and create new (or port existing) levels and such.



TO USE:
Run the utility from the command prompt. To export a WAD from a DOOM ROM, type "wad32x in.32x out.wad". To import, type "wad32x in.wad out.32x"

Obviously, you replace the file names I gave there with the correct file names.



MODIFICATIONS:
Here's an example of a port (not a perfect one, but simply a working example) of Entryway (MAP01) from DOOM II that I put into 32X DOOM -- http://www.4shared.com/file/1784743...c/entryway.html

Also, here's a modification from Shana at Sonic Retro. I'll quote his post:


I've made a small (crappy) 2 map test to see how much can the 32x take (in MAP02). Download
The tools are working very well.

If you trigger a lot of sounds, sounds won't play anymore, but awkwardly the pause menu SFX still works. Maybe because they are uncompressed as mentioned in the post above? If you awaken too many monsters the game hangs. I've reduced some of the stuff in MAP02 so that it doesn't hang, but there's always a chance.



If you do anything with this tool, post about it, and perhaps even show some screen grabs =)



SCREEN SHOTS:
Here are some various screen shots I've taken to show off the program:

32X to PC (1) -- http://i625.photobucket.com/albums/...727/r3d32x0.png

32X to PC (2) -- http://i625.photobucket.com/albums/...727/r3d32x1.png

32X to PC (3) -- http://i625.photobucket.com/albums/...727/r3d32x2.png

PC to 32X -- http://i625.photobucket.com/albums/...27/entryway.png

New sprite in 32X -- http://img30.imageshack.us/img30/39...ental32x000.png



VIDEOS:
I also have two videos to show for anyone curious of the results this program can help produce:

- Entryway (MAP01) ported to DOOM 32X -- http://www.youtube.com/watch?v=0XRrLbe4Q-k

- New level by Shana from Sonic Retro for DOOM 32X -- http://www.youtube.com/watch?v=VuPsAWrrBSM



EDIT: Does the topic move mean it won't make the front page news?

Last edited by saxman on 01-16-10 at 03:42

Old Post 12-29-09 01:01 #
saxman is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Infurnus
Junior Member


Posts: 211
Registered: 08-03


Good post, but not a newsy post. If you're going to take another crack at a news post, you should look at the other news posts that are on the front page for reference, and just post a summary of this and link to this thread from it.

Old Post 12-29-09 02:54 #
Infurnus is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Kagemaru_H
Banned


Posts: 427
Registered: 09-09


Oh, I was just about to post this here. By the way, I typed everything specified into a batch file and there's no output. I tried importing Ultimate Doom to 32X format.

Old Post 12-29-09 04:12 #
Kagemaru_H is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
TheDarkArchon
Senior Member


Posts: 2332
Registered: 08-04


Heh, I made that sprite replacement WAD. Shame XWE decided to fuck up the sprite upon import to the WAD.

Old Post 12-29-09 18:43 #
TheDarkArchon is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
scalliano
This door is opened elsewhere...


Posts: 1201
Registered: 08-09


Rather cool, I must say. I could have a bit of fun with this ...

Old Post 12-30-09 00:46 #
scalliano is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Darkman 4
Heh fanboy.


Posts: 836
Registered: 12-03


Have you considered publishing any sort of technical specs about the 32x Doom engine? I'd be interested in knowing what technical differences there are between the PC and 32X engines.

Last edited by Darkman 4 on 12-30-09 at 08:13

Old Post 12-30-09 08:07 #
Darkman 4 is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
_bruce_
Senior Member


Posts: 1300
Registered: 11-07


Beyond awesome... PROPS

Old Post 12-30-09 14:14 #
_bruce_ is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Glaice
formerly Mr. Chris


Posts: 4889
Registered: 07-02


That's pretty awesome, perhaps now people can see what the 32x IWAD contains..

I can see the 32x cut a lot of corners (detail, etc) and used both Doom2 and textures I've not seen in either game.

Old Post 12-30-09 15:51 #
Glaice is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Super Jamie
Forum Staple


Posts: 2722
Registered: 03-08


There are definitely a few odd textures in there, especially the bricks and the STARTAN switch.

It looks odd if you just run the IWAD straight from the rip, but if you rip out the palette info and odd-aspect sprites I think it should be pretty playable.

Good work with this, can't get a much better console level than a direct rip! I wonder if the 32x can handle something like SiD, I assume it has the same limits (or less) than PC Vanilla.

Old Post 12-30-09 22:23 #
Super Jamie is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
scalliano
This door is opened elsewhere...


Posts: 1201
Registered: 08-09


I've been messing around with this today, and so far I've removed the palette and weirdo HUD weapons, grabbed the TITLEPIC via an emulator and thrown in a MAPINFO lump to handle the secret level and end screen. I also fixed the missing texture/HOM issues in MAP15.

This could possibly be the fastest completion time for a TC in history :P

@Chris: Those textures are from Jaguar Doom, the only console port handled by id themselves and the base for all other console ports (except SNES Doom and Doom64).

Old Post 12-30-09 22:34 #
scalliano is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Darkman 4
Heh fanboy.


Posts: 836
Registered: 12-03



Super Jamie said:
There are definitely a few odd textures in there, especially the bricks and the STARTAN switch.

It looks odd if you just run the IWAD straight from the rip, but if you rip out the palette info and odd-aspect sprites I think it should be pretty playable.

Good work with this, can't get a much better console level than a direct rip! I wonder if the 32x can handle something like SiD, I assume it has the same limits (or less) than PC Vanilla.



I would assume that it would have similar limits to PC Doom, but it doesn't hurt to try. :D

Old Post 12-30-09 22:34 #
Darkman 4 is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
saxman
Warming Up


Posts: 17
Registered: 12-09


I'm really happy that you guys like this!



In regards to engine differences...

- The 32X version uses a collision detection method that is simplified in comparison to the PC version, making it harder to fit through some doorways (and possible to get trapped -- e.g. Entryway from DOOM II), thus one reason some maps may have been modified slightly (other than to slim down on memory usage.)

- DOOM 32X is also optimized so that it will not draw a ceiling texture if it's impossible for a ceiling to be seen (e.g. if a floor is at the same height as the ceiling under it or next to it.) This causes problems with certain maps such as Entryway from DOOM II, because the sky doesn't get drawn in the outside areas as a result.

- The engine doesn't worry with complex texture mapping. It uses the actual patch names to reference textures for walls. In fact, the ONLY thing the TEXTURE1 file is used for is for the engine to figure out the size of a patch (the size is stripped from the patch header.)

- The game doesn't crash if a texture isn't found, unlike the PC version. In the case of a missing texture, it simply uses the first texture listed in the TEXTURE1 file. This also helps MAP15 look correct, because they forgot to change a few "missing" textures, but the level just happens to use ASH01 throughout, so it's not noticeable.

- Masked walls don't function in the 32X port. That's why several levels, such as MAP01 and MAP03, have been modified to not use fencing (or whatever you want to call it). Any use of a masked texture will simply not be drawn.

- Floors and sprites are the same, with the exception of gun sprites. These sprites are cut down to half the X size. They get stretched in the game, and part of this is due to DOOM 32X using interlacing. The screen size itself is half the normal X size (see the Jaguar DOOM source code for evidence of this.)

- While most unused things in the 32X version were deleted out of the code, all co-op and deathmatch starts can remain in maps without yielding an error from the engine. Part of this is due to the Jaguar version having multiplayer, and although the 32X version doesn't, they never stripped those thing numbers out of the engine.



Also, in case you haven't been following the topic I linked to located on Sega-16 forums, I modified my program slightly to be able to dump maps from the Jaguar version of DOOM. I did this because the 32X version is based directly on the Jaguar version (e.g. maps are identical.) Since the Jaguar version has 24 maps instead of 17 like the 32X version has, I ported the missing maps over. So, if you have a Genesis/32X emulator, you can try the 24 level version of DOOM 32X:

http://www.4shared.com/file/1844728...93f/JAG32X.html

I also modified the main menu so that you can select from all 24 levels. The only problem arises with level 20 -- the 32X runs out of memory when trying to load it (the 32X combined with the Genesis gives you 320KB you play with, not very much for a game like DOOM!) Other than that, they all work just fine. And levels 16 and 17 are Jaguar-exclusive maps that aren't from any other version of DOOM, so enjoy those if you've never played them before =)

Last edited by saxman on 12-30-09 at 23:56

Old Post 12-30-09 22:37 #
saxman is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Darkman 4
Heh fanboy.


Posts: 836
Registered: 12-03


Is the "DOS Screen" ending a glitch, or is it on purpose? I've assumed that it was done on purpose, but the wiki says its a glitch.

Old Post 12-30-09 22:51 #
Darkman 4 is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
scalliano
This door is opened elsewhere...


Posts: 1201
Registered: 08-09


@saxman: Check your PM's ;)

And now we've got the Jag levels! This just gets better and better!

@Darkman: No, it's deliberate. It comes up if you cheat or use the level select ;)

Old Post 12-30-09 22:52 #
scalliano is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Darkman 4
Heh fanboy.


Posts: 836
Registered: 12-03



scalliano said:


@Darkman: No, it's deliberate. It comes up if you cheat or use the level select ;)



I assume so, but I'd like to see what the code says.

Old Post 12-30-09 22:59 #
Darkman 4 is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
_bruce_
Senior Member


Posts: 1300
Registered: 11-07


Love reading such stuff...

Old Post 12-30-09 23:43 #
_bruce_ is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Nemark
Mini-Member


Posts: 92
Registered: 04-08


I wish something like this would be made for PSX Doom. Then we'd have exact replicas of the unique levels.

Old Post 12-30-09 23:58 #
Nemark is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Maes
I like big butts!


Posts: 12648
Registered: 07-06


Heh, pretty cool. I had once tried ripping the PSX version's data (and dumping what appeared to be the 32X's IWAD data from the ROM to disk), but there were some (deliberately?) oddball things like differently named lumps, different number endianness (makes sense, if any performance was to be expected on big-endian non-Intel platforms) etc. which prevented normal editors from opening lumps or levels (renaming only solved the identifiability issue, but values/sizes were still very screwed up. I got as far as opening a level in DB, but it looked like t3h bug).

Exactly what corrections does the utility apply when converting from and to 32X, other than the ones mentioned above?

Old Post 12-31-09 00:03 #
Maes is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
saxman
Warming Up


Posts: 17
Registered: 12-09


The MSB in the first character of a lump names tells the game if compression is used or not. If the bit is on, then compression is applied. The size of the data defined in the WAD is it's size after being decompressed. Someone else asked me about this too, so I'm going to copy/paste what I wrote on how to read the compression:



You have a byte I like to call the "key." Each bit in the key represents the data that follows it. If a bit is 0, a direct copy is used (no compression.) If the bit is a 1, then at the location the bit represents, a word will be read which tells the decompressor how far to look back to find data, and how many bytes to copy. The upper 12 bits tells the decompressor how far to look backward that number of bytes, plus 1. The lower 4 tells the decompressor how many bytes to copy, plus 1.

The bits in the key are read in order from LSB to MSB. When the key has been completely read, a new key will start. To end a file, you use a 1 in the key and use 0x0000 for the word.

Also, lumps should be aligned in 32-bit intervals. So, if a file ends at say 0x12345, then you place dummy bytes at 0x12345, 0x12346, and 0x12347. The next lump will start at 0x12348.



And that's all there really is to it. That's not to say the lump data hasn't been changed in formatting though. I had to read the sprites differently in the 32X WAD than I would have to in a PC WAD, but that's getting ahead of things. I'll be releasing the source code to my utility which will show everything that is done in the conversion process.

Old Post 12-31-09 00:11 #
saxman is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
scalliano
This door is opened elsewhere...


Posts: 1201
Registered: 08-09



Nemark said:
I wish something like this would be made for PSX Doom. Then we'd have exact replicas of the unique levels.


Already been done, mate!

EDIT: Still beavering away at this. Now included a DECORATE lump for the armor and health bonuses and the 32x invul effect:
http://img41.imageshack.us/img41/5341/32xinvul.png

DOUBLE EDIT: OK, here it is, the 32x Doom TC! I have made this as accurate as I currently know how to, so enjoy! Might post up a Jag one off the back of this ;)

Last edited by scalliano on 01-01-10 at 02:53

Old Post 12-31-09 00:12 #
scalliano is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Kaiser
Doom64 Guru


Posts: 2859
Registered: 08-00



Maes said:
Heh, pretty cool. I had once tried ripping the PSX version's data (and dumping what appeared to be the 32X's IWAD data from the ROM to disk), but there were some (deliberately?) oddball things like differently named lumps, different number endianness (makes sense, if any performance was to be expected on big-endian non-Intel platforms) etc. which prevented normal editors from opening lumps or levels (renaming only solved the identifiability issue, but values/sizes were still very screwed up. I got as far as opening a level in DB, but it looked like t3h bug).

Exactly what corrections does the utility apply when converting from and to 32X, other than the ones mentioned above?



I accidentally bumped a 2 year old thread but anyways I have already covered JaguarDoom and PSXDoom hacking a while back:

http://www.doomworld.com/vb/wads-mo...-console-specs/


PSX and Jaguar Doom compresses the lumps and to indicate if its compressed or not, it 'bit-ANDS' the first character of the lump name by 0x80. PSXDoom also has a different sector format and uses a new LEAFS lump for converting subsectors into polygons since PSX Doom uses 'true' 3D rendering.

Specs for PSX Doom can be seen here: http://dl.dropbox.com/u/18609/psxdoomSpecs.txt

Also got a couple of utilities for various console ports of Doom which can be found here: http://dl.dropbox.com/u/18609/assortedTools.7z

I also made a compression utility that compresses/decompresses lumps into the jaguar/psx/n64 compression format: http://dl.dropbox.com/u/18609/LMPZSS.zip

Last edited by Kaiser on 12-31-09 at 02:01

Old Post 12-31-09 01:54 #
Kaiser is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Kagemaru_H
Banned


Posts: 427
Registered: 09-09


I posted this on Sega-16, but it would be nice to remaster the 32X Doom music so it doesn't sound like the 32X has a gas problem. It would be awesome to make the upbeat songs sound more heavy (i.e. Comix Zone or The Ooze), and make the atmospheric tunes sound more eerie (I can't really think of any Genesis games with eerie ambient music, but XTDoom could be recreated to some extent).

Old Post 12-31-09 02:52 #
Kagemaru_H is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Nuxius
Forum Regular


Posts: 751
Registered: 02-05



Super Jamie said:
I wonder if the 32x can handle something like SiD, I assume it has the same limits (or less) than PC Vanilla.


Unfortunately, it doesn't.

What I've discovered so far:

Visplane Limit: 128, same as PC
Seg Limit: 128, half that of the PC (moan)
Sprite Limit: 128, double that of the PC (heh)
Active Monsters: I gave up at 512. The game was a slideshow, but still didn't crash.
Memory Allocated to map data: @96KB (LAAAAAME)

I'll work on figuring out more limits later.

Something to keep in mind on the map size, you can have a map file that is larger than 96KB, however you need to make sure that each individual difficulty level doesn't contain information that goes over that amount. So for example, whatever sprites that are only in UV mode won't count for ITYTD mode, and vice versa. So it's possible to have a game that crashes with a Z_MALLOC (out of memory) error on UV, but not on HMP or ITYTD.

Right now, I've almost got MAP20 (Jag Doom) running in 32X Doom. I just need to get UV mode working (going to have to delete some more sidedefs) and I'll upload it here when I'm done.

Old Post 12-31-09 12:03 #
Nuxius is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Chu
Forum Regular


Posts: 734
Registered: 10-02


Program crashes when I replace what's in the converted WAD over with correct values (sprites). I even resized everything correctly - it seems WAD32x crashes in Windows with no error message. Then Fusion chugs due to weird graphics that were never patched correctly - and crashes with I_Error: R_DrawSpriteRange: bad texturecolumn. I'm assuming that's either lack of memory, or more importantly, wad32x crashing.

I've converted a MAP over but in the end repkaced it with the regular MAP01. I'm working on the limits that was just posted but so far I don't think I'm violating anything. Wad32x just crashes mid-conversion.

__________________
3DGE source port

Old Post 12-31-09 13:10 #
Chu is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Super Jamie
Forum Staple


Posts: 2722
Registered: 03-08



Chu said:
Program crashes when I replace what's in the converted WAD over with correct values (sprites).

I just deleted the oddly-shaped sprites and color/pal entries from the exported 32x WAD and ran it as a PWAD, using PC doom2.wad as the IWAD.

Old Post 12-31-09 13:21 #
Super Jamie is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
scalliano
This door is opened elsewhere...


Posts: 1201
Registered: 08-09


Right, got the Jag TC up and running. Made another couple of DECORATE tweaks - invul haze is now blue and all translucency has been removed. Monsters now infight again also.
http://img707.imageshack.us/img707/7893/jaginvul.png
http://img402.imageshack.us/img402/4132/jagmap16.png
If there are any issues please let me know.

EDIT: Just found a little mistake in the MAPINFO lump. This has been corrected. Also fixed the Spectres (Jag and 32x Doom don't have any).

@Jamie: I think Chu is trying to port stuff into the 32x image.

Last edited by scalliano on 01-03-10 at 21:10

Old Post 12-31-09 17:32 #
scalliano is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Chu
Forum Regular


Posts: 734
Registered: 10-02


That's correct - I'm attempting to port stuff into the 32X bin.

__________________
3DGE source port

Old Post 12-31-09 21:07 #
Chu is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
saxman
Warming Up


Posts: 17
Registered: 12-09



Chu said:
That's correct - I'm attempting to port stuff into the 32X bin.

If you send me your WAD file, I'll see what's going on that's making the program crash.

Old Post 12-31-09 21:30 #
saxman is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Chu
Forum Regular


Posts: 734
Registered: 10-02


I sent you the project.

__________________
3DGE source port

Old Post 12-31-09 23:55 #
Chu is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Kagemaru_H
Banned


Posts: 427
Registered: 09-09


What textures does 32X Doom use? I could probably make some maps in Doom Builder or modify some SLIGE maps for Doom 32X if I knew what textures the 32X Doom uses ingame.

Old Post 01-01-10 01:24 #
Kagemaru_H is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 00:03. Post New Thread    Post A Reply
Pages (4): [1] 2 3 4 »  
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom General > DOOM 32X WAD Converter

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.