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 .
×

Type Error on API Scripts

1783403437

Edited 1783403752
I've noticed on all, if not most, of my API scripts now have a type error in the coding. I have never touched the codes myself. These scripts include Aura/Tint HealthColors, GroupInitiative, GroupCheck, and Fade just to name a few. My guess is that there was some sort of update that caused this type error to occur. I also have no idea what I'm doing when it comes to coding, which does not help as I'm afraid this could be an easy fix. I have attached a screenshot of the error message I see specifically for the Fade script. Any help to solve this problem would be great. Update: I have noticed this is for one game specifically and am even more confused.  
Are you using Jumpgate?  Which character sheet are you using for your game? 
1783430349
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Tanner! The problem script is Fetch. The error message now tells you which script and line are generating the error. I have had that exact same error. Re-installing fetch can fix it, but it can be tricky, due to dependencies. Let me see if I can... fetch the author.
1783478316
timmaugh
Pro
API Scripter
Hmm... I think I've identified a potential source of the problem. Can you confirm whether, when you get the error, you've joined the game as a player (rather than a GM)? The potential source of an error is that the line of code that is borking is looking for the first GM... but if the only GM in the game decides to use the "Join as Player" button to enter the game, then there isn't a GM for the code to find. I'm working on a fix, but I'm wondering if you can confirm if those circumstances describe your game...?
timmaugh said: Hmm... I think I've identified a potential source of the problem. Can you confirm whether, when you get the error, you've joined the game as a player (rather than a GM)? The potential source of an error is that the line of code that is borking is looking for the first GM... but if the only GM in the game decides to use the "Join as Player" button to enter the game, then there isn't a GM for the code to find. I'm working on a fix, but I'm wondering if you can confirm if those circumstances describe your game...? From what I have seen, I still get the error even when I join as a player. I am unable to use any scripts in game and when I join as a player or GM, the scripts that usually activate upon launch (i.e. Aura/Tint HealthColors in chat), don't appear to work. Whenever I try to use any commands related to the scripts, I don't get an error message and it is as if the scripts just didn't exist in my game.
1783912978
timmaugh
Pro
API Scripter
I have a fix for this that is currently in tests. Hoping to make this week's merge.
1784332077
timmaugh
Pro
API Scripter
Just pushed an update that should address this problem. Give it a try and see if it works. You can wait for the one-click merge (probably Tuesday of next week), or if you need it sooner than that you can get it from my repo . Let me know if it still gives you a problem.