MantisBT - Zandronum
View Issue Details
0003102Zandronum[All Projects] Suggestionpublic2017-04-28 10:092018-09-30 21:45
Fused 
Torr Samaho 
normalfeatureN/A
closedfixed 
3.0-beta 
3.03.0 
0003102: Backport UDMF custom acs features
Zdoom added a feature a while ago which allows you to tag a sector in UDMF formatted maps.
Especially'https://zdoom.org/wiki/GetSectorUDMFInt [^]' in this case can prove very useful with modding, because this allows you to check if a player is in a certain type of sector. The only way to make something similar is sectordamage into custom pain states,but this is very messy, and wont even work most of the time because of certain requirements.
Custom UDMF functions:
'https://zdoom.org/wiki/GetLineUDMFFixed [^]'
'https://zdoom.org/wiki/GetLineUDMFInt [^]'
'https://zdoom.org/wiki/GetSectorUDMFFixed [^]'
'https://zdoom.org/wiki/GetSectorUDMFInt [^]'
'https://zdoom.org/wiki/GetSideUDMFFixed [^]'
'https://zdoom.org/wiki/GetSideUDMFInt [^]'
'https://zdoom.org/wiki/GetThingUDMFFixed [^]'
'https://zdoom.org/wiki/GetThingUDMFInt [^]'
No tags attached.
? udmfparameter.wad (3,094) 2017-04-29 16:33
https://zandronum.com/tracker/file_download.php?file_id=2086&type=bug
Issue History
2017-04-28 10:09FusedNew Issue
2017-04-29 10:41Torr SamahoNote Added: 0017395
2017-04-29 10:41Torr SamahoStatusnew => feedback
2017-04-29 13:05FusedNote Added: 0017399
2017-04-29 13:05FusedStatusfeedback => new
2017-04-29 16:19Torr SamahoNote Added: 0017410
2017-04-29 16:22Torr SamahoAssigned To => Torr Samaho
2017-04-29 16:22Torr SamahoStatusnew => feedback
2017-04-29 16:33FusedFile Added: udmfparameter.wad
2017-04-29 16:34FusedNote Added: 0017413
2017-04-29 16:34FusedStatusfeedback => assigned
2017-04-29 16:35FusedNote Edited: 0017413bug_revision_view_page.php?bugnote_id=17413#r10453
2017-04-29 16:43Torr SamahoNote Added: 0017415
2017-04-29 16:53FusedNote Added: 0017416
2017-04-29 16:56Torr SamahoNote Added: 0017418
2017-04-29 16:56Torr SamahoNote Edited: 0017418
2017-04-29 16:57Torr SamahoNote Edited: 0017418bug_revision_view_page.php?bugnote_id=17418#r10456
2017-04-29 16:57Torr SamahoNote Revision Dropped: 17418: 0010454
2017-04-29 16:57Torr SamahoNote Revision Dropped: 17418: 0010455
2017-04-29 16:58FusedNote Added: 0017419
2017-04-29 17:18Torr SamahoNote Added: 0017421
2017-04-30 19:14Torr SamahoStatusassigned => needs testing
2017-04-30 19:14Torr SamahoTarget Version => 3.0
2017-05-14 16:50Ru5tK1ngNote Added: 0017684
2017-05-14 16:50Ru5tK1ngStatusneeds testing => resolved
2017-05-14 16:50Ru5tK1ngResolutionopen => fixed
2017-05-14 16:50Ru5tK1ngFixed in Version => 3.0
2018-09-30 21:45Blzut3Statusresolved => closed

Notes
(0017395)
Torr Samaho   
2017-04-29 10:41   
Aren't GetLineUDMFInt, GetLineUDMFFixed, GetSectorUDMFInt, GetSectorUDMFFixed, GetSideUDMFInt and GetSideUDMFFixed already supported in 3.0? There is code for them.
(0017399)
Fused   
2017-04-29 13:05   
That's what I was confused about too. I noticed this was old enough to be added, but when testing I couln't make it work at all. I will try this again and make an example wad, should it actually not work.
(0017410)
Torr Samaho   
2017-04-29 16:19   
Ok, thanks. In case it does work, please also let me know so that I can close the ticket.
(0017413)
Fused   
2017-04-29 16:34   
(edited on: 2017-04-29 16:35)
Turns out it's actually broken in some way. I added an example wad to showcase the problem, which I found on zdoom, and modified it a bit to add more of the functions. I guess the bug described here is similar to what happends here, although it does result in a different error.
'https://forum.zdoom.org/viewtopic.php?f=7&t=47696&sid=e58d942b5a0c8cef795811619f303abd [^]'

I see only the line one seems to work, although I couln't get the thing-fixed variant to work without getting an error in the console.

(0017415)
Torr Samaho   
2017-04-29 16:43   
I just backported the two ZDoom fixes linked in that thread.
(0017416)
Fused   
2017-04-29 16:53   
That fixes it. Although I am still having this weird issue with the thing variant not giving a value for both integers and fixed/decimal numbers, and I can't figure out what I did wrong.
(0017418)
Torr Samaho   
2017-04-29 16:56   
(edited on: 2017-04-29 16:57)
The thing variants are simply not implemented in GZDoom 1.8.6 (and thus 3.0). That's why I didn't list them in 0003102:0017395.

(0017419)
Fused   
2017-04-29 16:58   
In that case I suppose everything is resolved then in this case. I don't think I need the thing variant myself, unless it isn't much to backport.
(0017421)
Torr Samaho   
2017-04-29 17:18   
I had a quick look and it seems like GZDoom still didn't implement them, so there is nothing to backport.
(0017684)
Ru5tK1ng   
2017-05-14 16:50   
Based on fused's testing and the fact there's nothing left to back port, marked as resolved.