0000540: UDMF user-defined field with string value

Remember, just because you request it, that doesn't mean you'll get it.

Moderators: Developers, ZDoom.org Team

0000540: UDMF user-defined field with string value

Postby Nash » Sun Apr 30, 2017 6:51 pm

https://mantis.zdoom.org/view.php?id=540
Code: Select allExpand view
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
User avatar
Nash
Nash Muhandes [Audio Engineer | Game Designer | Scripting]
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

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

Postby _mental_ » Sun Apr 30, 2017 6:52 pm

Since their inception user-defined fields are limited to integer values. UDMF spec says nothing about this thing though.
_mental_
 
 
 
Joined: 07 Aug 2011

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

Postby Nash » Sun Apr 30, 2017 6: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...
User avatar
Nash
Nash Muhandes [Audio Engineer | Game Designer | Scripting]
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia

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

Postby RockstarRaccoon » Sun Apr 30, 2017 6: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...
User avatar
RockstarRaccoon
Totally Babies
 
Joined: 31 Jul 2016

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

Postby RockstarRaccoon » Thu May 25, 2017 5: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...
User avatar
RockstarRaccoon
Totally Babies
 
Joined: 31 Jul 2016

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

Postby Graf Zahl » Wed May 31, 2017 5:05 am

The problem here is not the spec but with the implementation. for other map data types strings are allowed.
User avatar
Graf Zahl
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

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

Postby gwHero » Wed Sep 13, 2017 2: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 allExpand view
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).
User avatar
gwHero
 
Joined: 08 May 2017
Location: The Netherlands


Return to Feature Suggestions

Who is online

Users browsing this forum: AFADoomer, Baidu [Spider] and 2 guests