0000540: UDMF user-defined field with string value

Moderator: GZDoom Developers

Post Reply
User avatar
Nash
 
 
Posts: 17434
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

0000540: UDMF user-defined field with string value

Post by Nash »

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
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

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

Post by _mental_ »

Since their inception user-defined fields are limited to integer values. UDMF spec says nothing about this thing though.
User avatar
Nash
 
 
Posts: 17434
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

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

Post by Nash »

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
RockstarRaccoon
Posts: 598
Joined: Sun Jul 31, 2016 2:43 pm

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

Post by RockstarRaccoon »

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
Posts: 598
Joined: Sun Jul 31, 2016 2:43 pm

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

Post by RockstarRaccoon »

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

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

Post by Graf Zahl »

The problem here is not the spec but with the implementation. for other map data types strings are allowed.
User avatar
gwHero
Posts: 360
Joined: Mon May 08, 2017 3:23 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: The Netherlands

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

Post by gwHero »

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).
spiral
Posts: 4
Joined: Tue Mar 20, 2018 4:41 pm

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

Post by spiral »

This feature just got merged and should be available in the latest dev build.
User avatar
RockstarRaccoon
Posts: 598
Joined: Sun Jul 31, 2016 2:43 pm

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

Post by RockstarRaccoon »

Yay! :3
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”