Page 1 of 1

CUIConfig::Hud3dMarkers in TM

Posted: 17 Mar 2013, 01:48
by aborttrap
Hi all,

Not sure if this is a bug, but I can't seem to place a 3D marker at the point of my pos attribute. However if I use the playerlogin attribute with my login name as the value, it does actually show a marker and move it relative to my car's position.

To clarify, here's my usage of playerlogin that does work (context is CTmMode):

Code: Select all

UIManager.UIAll.Hud3dMarkers = """<marker label="Hello" playerlogin="aborttrap" box="2 2 2"/>""";
And pos which doesn't:

Code: Select all

UIManager.UIAll.Hud3dMarkers = """<marker label="Hello" pos="2 2 2" box="2 2 2"/>""";
Is there something about how the vector in the pos (and box) attributes are interpreted that perhaps I'm missing?

Thanks!

Re: CUIConfig::Hud3dMarkers in TM

Posted: 18 Mar 2013, 10:04
by Eole
The code you used should work, so it looks like a bug. Have you tried without the box attribute and only pos? And without the pos and the box attributes?
The pos vector specify the absolute position of the marker in the world while the box vector is an offset relative to the current position of the marker.

Re: CUIConfig::Hud3dMarkers in TM

Posted: 18 Mar 2013, 16:15
by TGYoshi
I can confirm this, position-based markers just don't work in TM. Manialink-based markers do not work either.

Re: CUIConfig::Hud3dMarkers in TM

Posted: 19 Mar 2013, 14:01
by aborttrap
Eole: Neither pos on its own or neither of the attributes worked :(

Re: CUIConfig::Hud3dMarkers in TM

Posted: 19 Mar 2013, 14:28
by Eole
We'll investigate to see what's wrong with the markers.

Re: CUIConfig::Hud3dMarkers in TM

Posted: 08 Apr 2013, 15:36
by TGYoshi
They do in fact work after a lot of experimentation.

The units are 64x16x64 in Canyon for a 1x1x1 block, unlike SM. Markers are invisible unless you're close or in spec mode.
I'd love to be able to make marker distances infinite tho, or at least update their positions when invisible.
(I tried to overlay a real marker and set it's position to the 3d markers absoluteposition, but the position stops updating when the marker is completely invisible.)

Re: CUIConfig::Hud3dMarkers in TM

Posted: 08 Apr 2013, 16:07
by aborttrap
I was also talking with TGYoshi and I finally managed to get it working too.

One thing I noticed is that the player's Hud3dMarkers take "full" precedence over what's set in UIAll - i.e. if both objects' Hud3dMarkers are set, only the global markers seem to get shown. I don't think the average scripter would assume it to behave like this - so, if you could show both "priorities" of markers that would be great. :)