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

[SCRIPT REQUEST] Light-CrumbTrails, but for UDL

1611156489

Edited 1611158825
Hey everyone! So some of my players are complaining of my campaign lagging almost to being unusable on their laptops.  My gaming rig has no trouble rendering my maps, but theirs are struggling (to the point where they are blaming all the API scripts I have incorporated, silly players). So in an effort to streamline my games and make a smoother experience for them, I am turning off Explorer Mode on all my maps, and am looking to incorporate using breadcrumbs as suggested by Keith Curtis here . I recall having the Light-Crumb Trail script for about two weeks prior to adopting UDL. I re-installed it, but it only works with LDL.  Is there a script out there that incorporates this trick into an auto-placement like Bread-Crumb Trails used to do? I have the Summon script by King, and am planning on using that to semi-automate placing crumb trails for the time being, but it sure would be nice if it were a fully automated process.  I will be working on modifying the original Light-Crumb Trails script for use with UDL, but I am new to scripting and it may take some time.  In the meantime, has anyone already cracked this particular nut?
1611160740
The Aaron
Roll20 Production Team
API Scripter
So, I think this should do it:&nbsp; <a href="https://gist.github.com/shdwjk/29cd674266fce53387899f3e797b2100" rel="nofollow">https://gist.github.com/shdwjk/29cd674266fce53387899f3e797b2100</a> I haven't tested it and I've never actually used LightCrumb, but this version should place UDL light tokens on UDL pages and LDL light tokens on LDL pages...&nbsp; You'll need to delete all the light crumb tokens on any UDL pages (including the ones on the GM layer) for it to work right. Let me know if that works for you, or if you have any errors.&nbsp; If it does, I'll see about getting it rolled into the repo.
1611161612
Andreas J.
Forum Champion
Sheet Author
Translator
The Aaron said: Let me know if that works for you, or if you have any errors.&nbsp; If it does, I'll see about getting it rolled into the repo. Or integrated with LightCrumb? Is it wise to extend existing API to support UDL, or better to make new APIs? Eventually having a "udl"-prefix on commands would get redundant, and if one later changes them to change the syntax, it causes problems for existing script.
So that is a step in the right direction.&nbsp; It now drops crumbs that show up in UDL, but the light emitted only reaches 5 feet or so. Not sure why. And the GUI buttons don't seem to affect the visible radius of the crumbs.&nbsp; I tried changing Light Radius, Dim Radius, and Aura Radius, and there was no visible change.
Also, FWIW, the Toggle Shared Vision button shares all party vision, not just the crumbs.
1611162475
The Aaron
Roll20 Production Team
API Scripter
Ok, I'll see what I can do about that. ᐰndreas J. said: Or integrated with LightCrumb? Is it wise to extend existing API to support UDL, or better to make new APIs? Eventually having a "udl"-prefix on commands would get redundant, and if one later changes them to change the syntax, it causes problems for existing script. Something like this should be completely agnostic of which lighting system is in use, particularly since it can vary by page.&nbsp; It should just work correctly for the lighting model in use on the page, and when LDL is gone, it should just continue working as it has.
For now, I have worked up a simple LightCrumb character with a transparent token using King's Summoner script to drop it with a macro button, which works well, but I have to remember to do it in every room... :(
@the Aaron, would it be possible or easy to make it drop my preconfigured LightCrumb token instead of the default blank token?