0000540: UDMF user-defined field with string value

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: 0000540: UDMF user-defined field with string value

Re: 0000540: UDMF user-defined field with string value

by spiral » Sat Mar 24, 2018 12:57 pm

This feature just got merged and should be available in the latest dev build.

Re: 0000540: UDMF user-defined field with string value

by gwHero » Wed Sep 13, 2017 1:00 pm

Is there already made a decision about this feature suggestion for UDMF maps?

I ran into the similar situation with a custom boolean I had defined for ZScript actors. Had this in my base class:

Code: Select all

class BaseMooDActor : Actor
{
	bool user_HasDecorationShadow;
	property HasDecorationShadow:user_HasDecorationShadow;
}
Setting the boolean with True or False on the map with GZDoom Builder bugfix results in the error "integer value expected for key" when starting the mod in GZDoom.
Changing it into an integer of course solves the issue, but it's a bit regrettably since GZDoom Zscript allows custom booleans and GZDB can handle them too (just writes true or false into the TEXTMAP).

Re: 0000540: UDMF user-defined field with string value

by Graf Zahl » Wed May 31, 2017 4:05 am

The problem here is not the spec but with the implementation. for other map data types strings are allowed.

Re: 0000540: UDMF user-defined field with string value

by RockstarRaccoon » Thu May 25, 2017 4:52 pm

Graf, was there a decision on this? After thinking about it, this might be a good addition to the UDMF format, and I can't imagine it really breaking it. Meanwhile, I'd kind of like to use it for something like how Catacomb 3D would show you a name for every room. As is, I'll have to use some sort of integer-ID system for that...

Re: 0000540: UDMF user-defined field with string value

by RockstarRaccoon » Sun Apr 30, 2017 5:52 pm

The issue I'm seeing is that, if this is the standard for UDMF support, it might screw with the UDMF format itself. I dunno how quick the other adopters will be to incorporate this feature, and I worry what that might mean....

That said? The ability to put string data in is probably something the UDMF format should've had, and wouldn't really deviate from the format, nor would it be that hard to add for someone who knew how ZDoom managed that data...

Re: 0000540: UDMF user-defined field with string value

by Nash » Sun Apr 30, 2017 5:52 pm

In that case, can this ticket's status be changed to a feature request? Being able to set string fields on a map thing seems to be something more than one person would try to do eventually...

Re: 0000540: UDMF user-defined field with string value

by _mental_ » Sun Apr 30, 2017 5:52 pm

Since their inception user-defined fields are limited to integer values. UDMF spec says nothing about this thing though.

0000540: UDMF user-defined field with string value

by Nash » Sun Apr 30, 2017 5:51 pm

https://mantis.zdoom.org/view.php?id=540

Code: Select all

Summary	0000540: UDMF user-defined field with string value
Description	If I give a thing a custom user string, from the map editor (map is UDMF), it says "expected Integer in key".
https://mantis.zdoom.org/file_download. ... 6&type=bug

Top