Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Token Icons can be duplicated if player and gm apply them as same time.

October 03 (11 years ago)
REPRO:
In a game give a player control over a token. More or less the same time both player and GM add an icon to the token.

EXPECT: You can't duplicate the icons.
RESULT: Sometimes the icons show up twice. We say the red dots show up twice several times.
October 03 (11 years ago)
Pat S.
Forum Champion
Sheet Author
does it stay double iconed if you step out of the board and back in? if it does what if both of you step out and back in?

Just curious because it sounds like a syncing glitch (bug?) but I'm not a programmer so I'm just guessing.
October 03 (11 years ago)

Edited October 03 (11 years ago)
Lithl
Pro
Sheet Author
API Scripter

This doesn't surprise me much. The statusmarkers property on the graphic object is a comma-delimited array of strings, and through the API you can add multiple copies of the same marker to the list (I don't know whether this is a bug or an "unintentional feature", but I make use of it in my Flight script). Heck, it's even possible to add statusmarkers to the list that don't exist (although nonexistent statusmarkers don't show up on the VTT). When you run into the race condition of multiple people adding the same marker at once, the marker will be added multiple times rather than added and then removed.



October 03 (11 years ago)
Gauss
Forum Champion
I will ask the Devs on if it is a bug or unintended feature.

Does it affect your game beyond just being doubled up?
Can you remove them normally?

- Gauss
October 03 (11 years ago)
Lithl
Pro
Sheet Author
API Scripter

Gauss said:

Can you remove them normally?
I can't speak for Dustin, but after using my Flight script, if you click on the fluffy-wing statusmarker in the token's UI (to remove the wing), all of the wing icons go away. For my flight script, this is desired behavior. =)
October 03 (11 years ago)
It's a bug. I pointed this out a while back as a side effect of some scripting I tried and multiple status icons is definitely not intended.
October 03 (11 years ago)

Edited October 03 (11 years ago)
Riley D.
Roll20 Team

HoneyBadger said:

It's a bug. I pointed this out a while back as a side effect of some scripting I tried and multiple status icons is definitely not intended.

Well, it's...a check that we're not making that we probably aren't going to start making. So I guess it's a bug, but it's a low priority one. As others pointed out, basically what's happening is that both of you are setting a value on a property at the same time, and the syncing server is "merging" the two values together.

As Brian pointed out, if you click to "remove" the icon it removes all instances of that icon, so I see this as something that can probably be left as-is. If someone happens to add both at the same time as in the OP, just click to remove it and then re-add it set to the correct value...
October 03 (11 years ago)
You're the one that called it a bug! I liked it as a feature myself. :)
October 03 (11 years ago)
Riley D.
Roll20 Team

HoneyBadger said:

You're the one that called it a bug! I liked it as a feature myself. :)

Haha. The bug list is ever-evolving? :-)