Converting HEXEN to UDMF maps (Heretic)?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
cocka
Posts: 1520
Joined: Sat Jul 02, 2011 7:21 am
Location: Hungary

Re: Converting HEXEN to UDMF maps (Heretic)?

Post by cocka »

as to how its rendered within the editors environment.
My opinion is that the complex gameplay is much more important than how your maps are rendered.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49247
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Converting HEXEN to UDMF maps (Heretic)?

Post by Graf Zahl »

Trying to justify some stupid behavior (in this case refusing to use a more current version of an editor) doesn't take the stupidity out of that action. Have you even tried?

DoomBuilder 2 is a crappy old clunker compared to what MaxEd has achieved.
User avatar
cocka
Posts: 1520
Joined: Sat Jul 02, 2011 7:21 am
Location: Hungary

Re: Converting HEXEN to UDMF maps (Heretic)?

Post by cocka »

Yes, I have tried. It really annoys me that there are so many options. All the stuff that I have on Custom tabs have been deleted and integrated into other control elements.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49247
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Converting HEXEN to UDMF maps (Heretic)?

Post by Graf Zahl »

... where it should be. The custom tab is just a crutch to get around the lack of proper support for these features. Any normal mapper would expect to find those among similar properties on the other pages.
User avatar
MaxED
Posts: 2246
Joined: Tue Feb 28, 2012 12:55 pm

Re: Converting HEXEN to UDMF maps (Heretic)?

Post by MaxED »

New in R2155:
1. Added Hexen -> UDMF and UDMF -> Hexen action conversion as described in "Universal Doom Map Format ZDoom extensions" (udmf_zdoom.txt). It is used when changing map format form Hexen to UDMF and from UDMF to Hexen.
2. Game configurations, Line Identification action: added "Front side only" (128) flag to arg1. Also, why is this flag missing form the wiki article?
3. Game configurations, Line Identification action: renamed arg1 flags to match corresponding UDMF flag names.
User avatar
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Re: Converting HEXEN to UDMF maps (Heretic)?

Post by Tormentor667 »

What have I done...
User avatar
cocka
Posts: 1520
Joined: Sat Jul 02, 2011 7:21 am
Location: Hungary

Re: Converting HEXEN to UDMF maps (Heretic)?

Post by cocka »

UDMF -> Hexen action conversion
And how would you like to do that? Let's say you have a linedef with an action special and a lineid. Would you set a Line_SetIdentification action special on that with the proper number? Well, so far so good, but then you'll also have to use setlinespecial in a script. Does your program automatically read the action special set in UDMF and rewrite it to a script with setlinespecial?
why is this flag missing form the wiki article?
As far as I know there is no native support for that in hexen format.
User avatar
MaxED
Posts: 2246
Joined: Tue Feb 28, 2012 12:55 pm

Re: Converting HEXEN to UDMF maps (Heretic)?

Post by MaxED »

cocka wrote:Does your program automatically read the action special set in UDMF and rewrite it to a script with setlinespecial?
No. When a linedef has a tag and no action, it converts it to Line_SetIdentification action. When a linedef has compatible action, it converts tag to action argument, in other cases it just adds a warning to Errors and Warnings window.
Spoiler: Teh gory details
cocka wrote:As far as I know there is no native support for that in hexen format.
There are loads of things on ZDoom wiki, which are not supported by vanilla Hexen.
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Converting HEXEN to UDMF maps (Heretic)?

Post by Gez »

I don't know when that flag was added to Line_SetId, probably after 2008 which was when the flag list on that article was last updated before today. It's not extremely important anyway.
User avatar
cocka
Posts: 1520
Joined: Sat Jul 02, 2011 7:21 am
Location: Hungary

Re: Converting HEXEN to UDMF maps (Heretic)?

Post by cocka »

When a linedef has compatible action
Then that compatible action has to be set in a script with setlinespecial. If this doesn't happen automatically, the user must write OPEN scripts with setlinespecials to have the same effect as if it were a line with action special and a lineid.
which are not supported by vanilla Hexen.
I meant the hexen format supported by ZDoom. Not the vanilla one. This option must have been recently added. It might have been added two or three years ago.
User avatar
MaxED
Posts: 2246
Joined: Tue Feb 28, 2012 12:55 pm

Re: Converting HEXEN to UDMF maps (Heretic)?

Post by MaxED »

cocka wrote:Then that compatible action has to be set in a script with setlinespecial.
No it doesn't. By compatible action specials I mean those, which can set LineID themselves.
cocka wrote:This option must have been recently added. It might have been added two or three years ago.
Image
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49247
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Converting HEXEN to UDMF maps (Heretic)?

Post by Graf Zahl »

To make a long story short:

Since Hexen format is a rather limited subset of UDMF, any map that uses UDMF for its features will be quite drastically broken after downconversion. There's really no point investing more work than necessary here, it should convert what it can, and output a (long) log of what couldn't be done.

Why anyone would ever use such a feature is beyond me, though. The only thing I can imagine is having started with the incorrect settings, in which case it should be ok as it is.
User avatar
MaxED
Posts: 2246
Joined: Tue Feb 28, 2012 12:55 pm

Re: Converting HEXEN to UDMF maps (Heretic)?

Post by MaxED »

DB2/GZDB copy-paste logic uses it. When you copy map elements, they are translated to UDMF, when you paste, they are translated from UDMF to current map format. This allows copy-pasting between maps, which use different map format without inventing some special copy-paste data format.
User avatar
Zanieon
Posts: 2059
Joined: Tue Jan 13, 2009 4:13 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Somewhere in the future
Contact:

Re: Converting HEXEN to UDMF maps (Heretic)?

Post by Zanieon »

Tormentor667 wrote:What have I done...
*Computer Voice On* Seed of the discord planted with success! Thank you for generate a great discussion *Computer Voice off*
User avatar
cocka
Posts: 1520
Joined: Sat Jul 02, 2011 7:21 am
Location: Hungary

Re: Converting HEXEN to UDMF maps (Heretic)?

Post by cocka »

By compatible action specials I mean those, which can set LineID themselves.
So you are saying that [wiki]Line_SetIdentification[/wiki] is not a compatible action special.
No it doesn't
Then how would you assign an action special for such a line in hexen format? Wiki clearly says that [wiki]Polyobj_StartLine[/wiki] just defines a new polyobject without two-sided lines. Though the line won't have an event.. (just a definition for the polyobject)

No, I'm not an elf, but a moron. :lol:
It might have been added two or three years ago.
I talked about firstsideonly flag. It was not even mentioned for a long time on that wiki page either. It was only available here:

[wiki]Linedef[/wiki]
Locked

Return to “Editing (Archive)”