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

Change Marker in TurnMarker1

I absolutely love TurnMarker as a Mod, but I am running a X-Men/Marvel game and the default image of the glowing runes are something I'd like to replace with something more superhero-y (like the X-men symbol)? What's the best way I can do this? I didn't see the answer in the help section. My thought is that I would need to change the image source in the code and generate a custom script?  Thanks in advance
1719614145

Edited 1719614299
vÍnce
Pro
Sheet Author
You should be able to grab the code from the repo <a href="https://github.com/Roll20/roll20-api-scripts/blob/master/TurnMarker1/TurnMarker1.js" rel="nofollow">https://github.com/Roll20/roll20-api-scripts/blob/master/TurnMarker1/TurnMarker1.js</a> Make an adjustment to the url on line 65 tokenURL: ' <a href="https://s3.amazonaws.com/files.d20.io/images/4095816/086YSl3v0Kz3SlDAu245Vg/thumb.png?1400535580" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/4095816/086YSl3v0Kz3SlDAu245Vg/thumb.png?1400535580</a> ', to match something in image in your assets...? (not sure on what if any constraints the vtt might have on this YMMV). Then add your updated code as a custom mod in the games API settings page. Make sure you are not running the one-click version as well. Just save/load your custom version. Cheers
&gt;&gt;&nbsp; Then add your updated code as a custom mod in the games API settings page. Make sure you are not running the one-click version as well. Just save/load your custom version&gt;&gt;&nbsp; That didn't work :-( I uploaded the image I wanted to use to my library; copied the url in line 65, and restarted the API and made sure I wasn't running the one-click version, but thank you
1719619740
Gold
Forum Champion
Did you get it yet? Couldn't quite tell from reading the last post. This is do-able, I've done it in the past but my current game we aren't using Turnmarker1 so I forget the exact trick to doing it. Basically what Vince said, and there's 1 type of image-source that doesn't work (I think it's Marketplace images don't work, an image you uploaded into your own Library does work). And an additional trick is I think you need to Update the "Version" line in the script, like if it says Version 0.1.1 change it to Version 0.1.2 and save it.&nbsp; Again I may have described the instructions wrong since I haven't done it recently, but this hint could get you on the right track or at least confirm that it's possible and there are better instructions somewhere on the Roll20 Forums.
Gallaher, Not sure if you are aware that the API has some restrictions with images.&nbsp; Roll20 object imgsrc restrictions So you might want to check that the URL you are using begins with&nbsp; <a href="https://s3.amazonaws.com/files.d20.io/images/" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/</a> Also since it is a token, that you are using the thumb.png file and you've included the query string.
This was all very helpful: 1. The (new) image is uploaded in my library and not from the marketplace. 2. I am using .thumb and the query line and pasted at line 65 as:&nbsp; <a href="https://s3.amazonaws.com/files.d20.io/images/398822888/xiuIHdYAXNi5XziVaJFMtw/thumb.png" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/398822888/xiuIHdYAXNi5XziVaJFMtw/thumb.png</a> 3. I have revised the Version number of the script And while I couldn't get my new token to work, I was able to remove the default token -- so it's a partial win.&nbsp; Thank you :-D
1719631124

Edited 1719631744
vÍnce
Pro
Sheet Author
That's odd.&nbsp; Might require clearing your cache. You're url seems to resolve fine for me here, so I'm not sure.&nbsp; Like Gold, I've also been able to change the default image in the past as well. Just had a look at my edited turnmarker mod that is working with an edited url and it includes the additional numbers after the 3-digit image extension. Similar to the one included in the script. Maybe try including those extra digits if you see them. example of my working mod;
Fixed; Thank you all!!!