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

Ping Buddy broken

There seems to have been a recent change in Jumpgate where the "center" button now takes you back to your controlled token, and changes the zoom, and perhaps some other things as well. One of the side effects of the recent changes, appears to have broken Ping Buddy. I installed this in a new game, and tested it, and it was working perfectly about two weeks ago. After the recent changes to Jumpgate, it no longer works. The following error appears: Your scripts are currently disabled due to an error that was detected. Please make appropriate changes to your script's code and click the "Save Script" button. We will then attempt to start running the scripts again.  More info...  If this script was installed from the Mod Library, you might find help in the Community API Forum. For reference, the error message generated was:  TypeError: Cannot read properties of undefined (reading 'id') TypeError: Cannot read properties of undefined (reading 'id') at apiscript.js:9592:100 at /home/node/d20-api-server/pubsub.js:63:16 at Object.publish (/home/node/d20-api-server/pubsub.js:68:8) at Timeout.processChatQueue [as _onTimeout] (/home/node/d20-api-server/api.js:2117:12) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) TypeError: Cannot read properties of undefined (reading 'id') at apiscript.js:9592:100 at /home/node/d20-api-server/pubsub.js:63:16 at Object.publish (/home/node/d20-api-server/pubsub.js:68:8) at Timeout.processChatQueue [as _onTimeout] (/home/node/d20-api-server/api.js:2117:12) at listOnTimeout (node:internal/timers:569:17) at process.processTimers (node:internal/timers:512:7) This error occurs regardless of whether you are trying to ping your own token ("!pingme") or another token on the screen ("!pingme Test").
Hey Saul - I've brought this back to the development team and we'll take a look at what might be going on here.  Thank you for the detailed report!
Nicholas said: Hey Saul - I've brought this back to the development team and we'll take a look at what might be going on here.  Thank you for the detailed report! Thank you!
1747843092
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I'm also keeping an eye on this in case Ping Buddy needs any changes.
1747939503

Edited 1747939571
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hey Saul! I can't get Pingbuddy to fail. !Pingme, !Pingme Name, starting point and party tokens are all behaving correctly, both for GM and Player. The Starting Point function also seems to supersede the new center on character on page load feature. This is in a Jumpgate game. Can you give me more details? Or maybe the issue was fixed?
Yes, this is in a jumpgate game and it definitely worked as of about two weeks ago. It fails with the error given above both when !pingme is used as a GM, and when it is used as a player. It fails with a character now, that it worked with before. That is, it's not a new character.  "!pingme" and "!pingme Name" both fail. I haven't tried a "Party" token. The only other piece of information that I can provide which *may* make a difference, is that this is a Call of Cthulhu game, and not a 5E game. I haven't noticed other changes specific to CoC or anything in the logs about CoC games, but that's not to say that they didn't make some change that only affects CoC games or possibly non-5E games. I restored an old non-Jumpgate 5E game and installed Ping Buddy. It seems to work fine in that game. To be thorough, I restored a non-Jumpgate CoC game, and installed Ping Buddy there, and it worked there too. I don't know if installing Ping Buddy made it work in those games. I could try deleting and re-installing it in the game where it's failing. To be clear, the Mod page shows that the game where it's failing is using the "latest" version. The two options presented in the drop-down are 0.0.7 and 0.0.8. I'm guessing that 0.0.8 is the "latest". The other mods that game is using are:  If there's a specific question, or something that you'd like me to check, let me know. I covered everything I could think of here. I can also send you privately an invite to the game if you like. There are no other players at the moment but me and my test ID. I'm still putting things together for the game. keithcurtis said: Hey Saul! I can't get Pingbuddy to fail. !Pingme, !Pingme Name, starting point and party tokens are all behaving correctly, both for GM and Player. The Starting Point function also seems to supersede the new center on character on page load feature. This is in a Jumpgate game. Can you give me more details? Or maybe the issue was fixed?
1747948927
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Before we do the private invite, one more piece of data for me to test against. Are you on the Experimental API/Mod server, or the Production? My game pretty much uniformly fails back to Production, so that's what I tested on. Also, I was testing with my development copy, which should be identical to the latest version I uploaded, but I can test again in a fresh game with the One-Click installation, just to be sure. So far, the only issue I've run into with Ping Buddy on Jumpgate specifically, is the inability to set the player color to transparent. That's pretty much required for making the ping effect invisible.
keithcurtis said: Before we do the private invite, one more piece of data for me to test against. Are you on the Experimental API/Mod server, or the Production? My game pretty much uniformly fails back to Production, so that's what I tested on. Also, I was testing with my development copy, which should be identical to the latest version I uploaded, but I can test again in a fresh game with the One-Click installation, just to be sure. So far, the only issue I've run into with Ping Buddy on Jumpgate specifically, is the inability to set the player color to transparent. That's pretty much required for making the ping effect invisible. I'm on the production server. I haven't tried the transparency. My plan is to use it in two ways: 1. To move the screen to a particular location on load (using the "Party" token on the GM layer) 2. Letting people look for other tokens on the board. I was going to let players use it to return to their own tokens after scrolling around but the "center" button takes care of that now. I was actually about to make a video for my players, some of whom are transitioning to jumpgate, showing them the new things (like the "center" button) and explaining how to use the various APIs I installed and macros I wrote. With changes happening so much now, and game start being several months away at this point, I'm holding off on making the video until we're closer to start. But, it'd be nice to work out any bugs/problems before then, and then just pray that things don't break again. :-) And, if you want a good laugh, everything is working today. I swear on my parents' and grandparents' graves that I made NO changes in the last couple of days, since reporting the failure. I've been too busy with other stuff. I note there was  however, a new version of Jumpgate released two days ago which may have fixed whatever bug had been introduced.
1748026226
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It's entirely possible it was a Jumpgate bug that was addressed but not logged. Depending on what the bug might actually have been, if it was causing issues with a particular user's script (they have no official standing), it might not even be mentioned in the ChangeLog. I'm glad to hear that it seems to have cleared up for you. The biggest concern I have for PingBuddy going forward is that I have participated in surveys which show a dramatically improved ping system. Nothing seems to have come of it since, but I have no in sight on the road map for most future improvements. Mostly I hope that it won't break the script, and best scenario is that I hope it opens up some new capabilities for the script. Anyway, keep me in touch with anything about it that does break or breaks again.