Working UDMFConvert for Doom maps

Any utility that assists in the creation of mods, assets, etc, go here. For example: Ultimate Doom Builder, Slade, WadSmoosh, Oblige, etc.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
hfc2x
Posts: 646
Joined: Mon Aug 17, 2009 11:37 am
Location: Chule

Working UDMFConvert for Doom maps

Post by hfc2x »

Hi, peeps. I've taken some time to kinda "fix" this program that some may know, It's called UDMFConvert.
The problem with it (if you can call it like that) is that the utility that converts Doom maps into UDMF didn't work as I would expect. What it did was to transform all the data of a Doom map to a text file, which is okay, but it did convert the map into the Doom namespace (and not ZDoom), meaning that LINEDEF and SECTOR specials were just passed and not converted. Although the map converted this way is perfectly playable, loading it into Doom Builder 2 (the only map editor with UDMF support) would cause headaches.
Since it was easier to copy a map manually and then change Line and Sector specials by hand, there wasn't much use to this program. So, I took some liberties and added the ability to transform every Line and Sector special from Doom to UDMF, so you don't have to do it manually anymore. Note that it doesn't convert BOOM specials yet, but if anyone wants to do it, so be it.

Here is the Win32 binary

And the incredibly messed up source:
http://www.mediafire.com/?pia7igzc8cp5ok3


To convert a map from Doom format to UDMF, the usage is as follows:

Code: Select all

doomconvert -w WADFILE.wad MAPNAME TEXTFILE.txt
For example, to convert E2M4 from Doom, you should do this:

Code: Select all

doomconvert -w doom.wad E2M4 whatever.txt

Then, open your generated text file and in the first line, change 'namespace = "Doom";' to 'namespace = "ZDoom";'. After that, open a resource editor (preferrably Slade3) and create a new WAD document. Inside it, create three lumps in this order:
-Your map name (example: E2M4)
-a TEXTMAP lump (and inside of it, paste everything from the generated text file)
-and finally an ENDMAP marker.

Save it and the map is now loadable in Doom Builder 2, with every Line and Sector special already converted to their UDMF equivalent.

BTW, I'm a n00b into C++, that's why the source is a mess now. :lol:
Gez
 
 
Posts: 17924
Joined: Fri Jul 06, 2007 3:22 pm

Re: Working UDMFConvert for Doom maps

Post by Gez »

Interesting.

That said, the main point of doing a conversion to the Doom or ZDoomTranslated namespace is that you don't have to bother with the translation yourself. If you hardcode something for Doom values, you run into a few problems. First, the conversion might be simply wrong. Secondly, it can't be used for a mod which would require a different set of translation. For example, it's for Heretic or Strife. Or it's [wiki]Caverns of Darkness[/wiki].

Still, I support it'll be enough for most people's needs.
User avatar
hfc2x
Posts: 646
Joined: Mon Aug 17, 2009 11:37 am
Location: Chule

Re: Working UDMFConvert for Doom maps

Post by hfc2x »

Gez wrote:If you hardcode something for Doom values, you run into a few problems.
Yeah, that's why I only uploaded the precompiled DoomConvert executable. The Modifications I made to the source were rather hasty and uncautious, so if you compile the other binaries, there WILL be problems.
Anyways, maybe when Doom Builder 2 supports the UDMF namespaces other than ZDoom, I may try and fix this mess.
Gez
 
 
Posts: 17924
Joined: Fri Jul 06, 2007 3:22 pm

Re: Working UDMFConvert for Doom maps

Post by Gez »

Well, it already does, technically; all that's missing is a configuration file for it. Which nobody made since there's no strong incentive for creating one as long as there aren't other ports than ZDoom implementing UDMF.

Return to “Creation, Conversion, and Editing”