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-mod bug?

I'm trying to set up a macro for a shifter character I'm planning to run. I've created a token with multiple sides. Manually switching sides works just fine. But, when I issue the following (example) command in the chat: !token-mod --set currentside|2 nothing happens. No matter what number I use, or if I use a "*" to get a random side, the token doesn't change. The token has at least 3 sides. I tried this on both a token generated from a rollable table (by clicking "Token" on the table), and on a token assigned to a character and it fails with both.  Either I'm doing something wrong, or token-mod has a bug in it. :-) Can anyone tell me what I'm doing wrong, if anything? Thanks.
1700062767
The Aaron
Roll20 Production Team
API Scripter
I suspect your token's faces are Marketplace Images, which the API can't set.&nbsp; Change to the second face manually, select the token and hit Z, then right click and copy the image URL.&nbsp; If it starts with something like&nbsp; <a href="https://files.d20.io/marketplace/" rel="nofollow">https://files.d20.io/marketplace/</a> or <a href="https://s3.amazonaws.com/files.d20.io/marketplace/" rel="nofollow">https://s3.amazonaws.com/files.d20.io/marketplace/</a> then it's in the Marketplace, and the API can't switch to it.&nbsp; You can get around that by downloading the image (select token, hit Z, right click and save/download) and rebuilding the token with those images instead.
1700066097
Pat
Pro
API Scripter
I wish they would fix this - it's the major obstacle to a really robust teleport script.&nbsp;
&lt;grumble&gt; Ok, one of them was a Marketplace image. The other test token: face 1:&nbsp;<a href="https://files.d20.io/images/90345904/vsH1T2L1CLSvJka2WBlYeg/original.png?15669293285" rel="nofollow">https://files.d20.io/images/90345904/vsH1T2L1CLSvJka2WBlYeg/original.png?15669293285</a> face2:&nbsp; <a href="https://files.d20.io/images/90348496/v069pMGxB3NKLKfLSi7GbQ/original.png?15669315035" rel="nofollow">https://files.d20.io/images/90348496/v069pMGxB3NKLKfLSi7GbQ/original.png?15669315035</a> face3:&nbsp; <a href="https://files.d20.io/images/90348506/02o0xnHRitww-z42672lKA/original.png?15669315115" rel="nofollow">https://files.d20.io/images/90348506/02o0xnHRitww-z42672lKA/original.png?15669315115</a> But, I agree with Pat - I wish they would fix the issue with Marketplace images. I think I understand why it is the way it is (copyrights issue, probably) but since it's so easy to get around, why bother with the restriction? Anyway, the 2nd test token doesn't look like it's got marketplace images so, any other ideas? The Aaron said: I suspect your token's faces are Marketplace Images, which the API can't set.&nbsp; Change to the second face manually, select the token and hit Z, then right click and copy the image URL.&nbsp; If it starts with something like&nbsp; <a href="https://files.d20.io/marketplace/" rel="nofollow">https://files.d20.io/marketplace/</a> or <a href="https://s3.amazonaws.com/files.d20.io/marketplace/" rel="nofollow">https://s3.amazonaws.com/files.d20.io/marketplace/</a> then it's in the Marketplace, and the API can't switch to it.&nbsp; You can get around that by downloading the image (select token, hit Z, right click and save/download) and rebuilding the token with those images instead.
And I just built a new rollable table with 4 tokens in it, none of which were marketplace items, and the command doesn't work with a token from that table either.
Saul, how are you picking the token? --sel? --ids? Is this a new game perhaps and the token-mod config to allow players to use --ids hasn't been set yet? I know that's bit me before in games where token-mod wasn't doing anything for me.
1700153427
The Aaron
Roll20 Production Team
API Scripter
Are you creating a new Rollable Table Token to test on?&nbsp; Once you create a Rollable Table Token, it is completely unrelated to the table from which you created it and will retain whatever the state of the table was at the point it was created.&nbsp; If you create a new Rollable Table Token and try it on that one, does it work?&nbsp; If you try that and it doesn't work, PM me an invite and GM me and I'll figure out why.
Sorry for the late reply - I was away for a while. I built a rollable table with 4 items in it, each item a different "face" for the character, and none of them marketplace items. I clicked "Token" to put a token onto the map from that table. It put out a token using "face 1". Using token-mod to try and change the face was not working. Today, when I tried it to compose this message, it is working. I don't know if something changed, or if this was yet another case of the API silently crashing so token-mod wasn't working. Thanks, anyway.
1700577938
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Short answer: something changed. :) Some problems with the API accessing some types of user images were rectified.