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

HeroTracker -- API won't start up

Whenever I try to add this API to my game, I get the error "SyntaxError: Invalid or unexpected token", does anyone have any idea what I should do to fix this? It may just be my fault, I'm a very new pro subscriber and this is my first game with APIs. 
1621298244
timmaugh
Roll20 Production Team
API Scripter
Welcome to the world of APIs, Notes. Always nice to bump into a fellow Hero system player. Forgive me, but when you say you're very new to the scripts, I have to ask *how* you are adding the script to your game...? I have the one click version installed (from the one-click, not imported), and it's working just fine.
I'm also using the one-click one -- where you open the API tab on the game, select herotracker from the drop-down, and then hit save at the bottom of the page. 
Apparently disabling the "Hero Roller api script" makes everything else work? I'm going to try to check out the sheet using that. 
1621304167
timmaugh
Roll20 Production Team
API Scripter
OK, I wrote Hero Roller, so I definitely want to get to the bottom of this! =D What other scripts do you have installed?
1621304628

Edited 1621304806
Hero roller, hero tracker, and hero system 6e -- it's going to be my first time playing champions, let alone as a GM, so I was hoping the API could help me along a little, if that makes sense.  Thank you so much for looking into this at all, and super kudos to have built an API here!!!
1621308322

Edited 1621308352
timmaugh
Roll20 Production Team
API Scripter
OK, there is something going wrong with the one-click install process... the script itself is fine, and it works if you "import" the script rather than "install" it from the one-click... and it also works just to go to the directory on github, get the raw code, and paste it in. All of that works just fine, but something is going wrong in the automatic process. For now, there is a newer version than the 1-click anyway... and though I just submitted it to the one-click to be merged in, it will take probably a week before it comes through the system that way. Hopefully, the new version will reset whatever is going wrong. But if you go to my personal repo , you can copy it into your game and it should work (click on the js file, then click on the "Raw" button; select everything and copy it; delete the existing Hero Roller installation, and paste the code into a new Script tab that you call "Hero Roller"). That should get you by for now. Next week after Tuesday, when they process the Pull requests to merge the new code in, the new Hero Roller should be available from there and you should be able to go back to using the 1-click version. *Should* be. Here is the original thread where I introduced Hero Roller: Community Forums: [Script] HeroRoller (calling Hero System Beta Testers) | Roll20: Online virtual tabletop And the post where I released version 1.2.1: <a href="https://app.roll20.net/forum/permalink/9956423/" rel="nofollow">https://app.roll20.net/forum/permalink/9956423/</a> Let me know if you have any more trouble, or need any help with the syntax. And happy gaming!
Thank you so much! I'll reimport it tomorrow (later this?) morning! Thank you again, and I hope adding the new version goes smoothly!