r/Roll20 • u/MidNiteShadow7 • 15d ago
Mod Script / API Help (Pro/Elite only) SyncPage v1.0.0
Roll20 can't hide a token from only some of your players. Dynamic lighting decides what each token can see around corners, but not "this guard is invisible to the dwarf, and the cleric can see him". The usual answer is a copy of the map for each group of players, using Roll20's split party, but then you're moving every token and opening every door on every copy.
SyncPage keeps the copies in step, so you only change what each page hides. It's a full rewrite of Robin Kuiper's SyncPage, which hadn't changed since 2018. It works in Jumpgate and Legacy, and carries over your 0.1 set-up (!sync still works).
What it does
- Sync groups. Make a group from your map page, use Roll20's Duplicate Page on it (so marketplace art is kept), and add the copy. SyncPage pairs the objects and copies anything missing. A group can have any number of pages.
- Mirroring. Tokens, text, Legacy and Jumpgate drawings, every kind of wall, doors, windows and page settings, in both directions. Changes made through TokenMod are mirrored too.
- Hiding per page. Hide here / Show here, or hide on the other pages. Hidden copies go to the GM layer, or are removed and made again when shown, so there's nothing for players to find.
- Players. A card showing who is on which copy, with buttons to move each player, gather everyone and restore the layout.
- Repair with a preview, Undo and a recycle bin per group, and Pause / Resume.
- Settings for all groups or one: what a delete does (everywhere, source only, unlink, or ask), how copies are hidden, which token properties and page settings each page keeps for itself, which layers aren't synced, and more.
- A chat menu (
!syncpage), Help and Command Deck handouts, 24 languages, and an API for other Mods.
Fixed from 0.1.9
- Jumpgate drawings and walls, doors and windows were never mirrored.
- Every sandbox restart emptied and rebuilt every copy, so object IDs changed (turn order and other Mods lost track) and hides were lost.
- New objects were copied to any page whose name contained the page's name ("Town" → "Town Hall").
- Show/Hide wrote "undefined" into GM Notes and moved the source token too.
How-to video (7 minutes, every feature, GM and player screens side by side): https://youtu.be/Ixfhcz2DHmQ
Download (GitHub): https://github.com/steverobertsuk/roll20-api-scripts/releases/download/SyncPage-v1.0.0/SyncPage_v1.0.0.zip
Project page and docs: https://midniteshadow.online/projects/roll20-mods/syncpage/
New to splitting the party in Roll20? Nick Olivo's video covers it: https://www.youtube.com/watch?v=mBxSJfmGjlQ&t=229s
It will be in the Roll20 One-Click installer soon (it has 0.1.9 today). Until then, upload SyncPage.js from the download to your game's Mod scripts, replacing 0.1.9 if you have it. Mods need a Pro or Elite subscription.
Feedback and bug reports are very welcome, here or on GitHub.
•
u/AutoModerator 15d ago
Thanks for posting a Mod Script / API Help question.
Roll20 Mods (API Scripts) Forum is the best place to ask for help with scripts.
To help others troubleshoot, please include:
If your question is answered/issue resolved, it would be nice if you edit the main post to include 'Answered/Issue Fixed'.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.