Trying to test this script, and the API crashes whenever I try to teleport a token. I am the only player (and GM) in this campaign, as I'm trying to test it and get it working before I go live. Here is the error text I get:
Your scripts are currently disabled due to an error that was
detected. Please make appropriate changes to your scripts and click the
"Save Script" button and we'll attempt to start running them again. More info...
For reference, the error message generated was: SyntaxError: Unexpected end of input
SyntaxError: Unexpected end of input
at Object.parse (native)
at _.each._.chain.movePlayer (apiscript.js:15682:19)
at _.each._.chain.handleInput (apiscript.js:16396:33)
at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:144:34), <anonymous>:65:16)
at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:144:34), <anonymous>:70:8)
at /home/node/d20-api-server/api.js:1394:12
at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560
at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147)
at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546)
at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489)
at Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425)
at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:111:400 The API log reads as follows: Previous shutdown complete, starting up... Spinning up new sandbox... "5eShapedCompanion 1478094101886 INFO : -=> ShapedScripts v4.9.0 <=-" "5eShapedCompanion 1478094101891 INFO : Checking config for upgrade, starting state: {\"version\":3,\"config\":{\"genderPronouns\":[{\"matchPattern\":\"^f$|female|girl|woman|feminine\",\"nominative\":\"she\",\"accusative\":\"her\",\"possessive\":\"her\",\"reflexive\":\"herself\"},{\"matchPattern\":\"^m$|male|boy|man|masculine\",\"nominative\":\"he\",\"accusative\":\"him\",\"possessive\":\"his\",\"reflexive\":\"himself\"},{\"matchPattern\":\"^n$|neuter|none|construct|thing|object\",\"nominative\":\"it\",\"accusative\":\"it\",\"possessive\":\"its\",\"reflexive\":\"itself\"}],\"logLevel\":\"INFO\",\"tokenSettings\":{\"number\":false,\"bar1\":{\"attribute\":\"HP\",\"max\":true,\"link\":false,\"showPlayers\":false},\"bar2\":{\"attribute\":\"speed\",\"max\":false,\"link\":false,\"showPlayers\":false},\"bar3\":{\"attribute\":\"AC\",\"max\":false,\"link\":false,\"showPlayers\":false},\"aura1\":{\"radius\":\"\",\"color\":\"#FFFF99\",\"square\":false},\"aura2\":{\"radius\":\"\",\"color\":\"#59e594\",\"square\":false},\"light\":{\"radius\":\"\",\"dimRadius\":\"\",\"otherPlayers\":false,\"hasSight\":true,\"angle\":360,\"losAngle\":360,\"multiplier\":1},\"showName\":true,\"showNameToPlayers\":false,\"showAura1ToPlayers\":true,\"showAura2ToPlayers\":true},\"newCharSettings\":{\"sheetOutput\":\"***default***\",\"deathSaveOutput\":\"***default***\",\"initiativeOutput\":\"***default***\",\"showNameOnRollTemplate\":\"{{show_character_name=1}}\",\"rollOptions\":\"***default***\",\"initiativeRoll\":\"***default***\",\"initiativeToTracker\":\"***default***\",\"breakInitiativeTies\":\"[[@{initiative} / 100]][tie breaker]\",\"showTargetAC\":\"***default***\",\"showTargetName\":\"***default***\",\"autoAmmo\":\"1\",\"autoRevertAdvantage\":false,\"houserules\":{\"mediumArmorMaxDex\":2,\"saves\":{\"useCustomSaves\":\"***default***\",\"useAverageOfAbilities\":\"***default***\",\"fortitude\":{\"fortitudeStrength\":\"***default***\",\"fortitudeDexterity\":\"***default***\",\"fortitudeConstitution\":\"***default***\",\"fortitudeIntelligence\":\"***default***\",\"fortitudeWisdom\":\"***default***\",\"fortitudeCharisma\":\"***default***\"},\"reflex\":{\"reflexStrength\":\"***default***\",\"reflexDexterity\":\"***default***\",\"reflexConstitution\":\"***default***\",\"reflexIntelligence\":\"***default***\",\"reflexWisdom\":\"***default***\",\"reflexCharisma\":\"***default***\"},\"will\":{\"willStrength\":\"***default***\",\"willDexterity\":\"***default***\",\"willConstitution\":\"***default***\",\"willIntelligence\":\"***default***\",\"willWisdom\":\"***default***\",\"willCharisma\":\"***default***\"},\"savingThrowsHalfProf\":false},\"baseDC\":\"***default***\",\"expertiseAsAdvantage\":\"***default***\"},\"tab\":\"***default***\",\"tokenActions\":{\"initiative\":true,\"abilityChecks\":null,\"advantageTracker\":null,\"savingThrows\":null,\"attacks\":null,\"statblock\":true,\"traits\":null,\"actions\":null,\"reactions\":null,\"legendaryActions\":null,\"lairActions\":null,\"regionalEffects\":null,\"rests\":true,\"spells\":false},\"textSizes\":{\"spellsTextSize\":\"text\",\"abilityChecksTextSize\":\"text\",\"savingThrowsTextSize\":\"text\"},\"hide\":{\"hideAttack\":\"***default***\",\"hideDamage\":\"***default***\",\"hideAbilityChecks\":\"***default***\",\"hideSavingThrows\":\"***default***\",\"hideSavingThrowDC\":\"***default***\",\"hideSpellContent\":\"***default***\",\"hideSavingThrowFailure\":\"***default***\",\"hideSavingThrowSuccess\":\"***default***\",\"hideRecharge\":\"***default***\",\"hideFreetext\":\"***default***\"},\"applyToAll\":true,\"hitDiceOutput\":\"***default***\",\"showRests\":\"***default***\"},\"advTrackerSettings\":{\"showMarkers\":true,\"ignoreNpcs\":false,\"advantageMarker\":\"green\",\"disadvantageMarker\":\"red\",\"output\":\"silent\"},\"sheetEnhancements\":{\"rollHPOnDrop\":true,\"autoHD\":true,\"autoSpellSlots\":true,\"autoTraits\":true},\"defaultGenderIndex\":2,\"variants\":{\"rests\":{\"longNoHpFullHd\":false}}}}" "> TokenSwapper v0.5 <" "-=> GroupInitiative v0.9.20 <=- [Thu Sep 15 2016 13:38:13 GMT+0000 (UTC)]" "-=> EasyExperience v1.1 <=- [Fri Oct 07 2016 21:41:37 GMT+0000 (UTC)]" "-=> TimeTracker v0.3 is ready! Time format is set to 12-hours. <=-" "DynamicLightRecorder 1478094101899 INFO : -=> DynamicLightRecorder v1.0.1 <=-" "Script loaded: Waypoint Patrols, actively patrolling" "-=> Page Navigator v0.1.43 <=- [Tue Sep 20 2016 12:33:37 GMT+0000 (UTC)]" "Page Navigator Memory: Stored Page & Destination-Token Ids converted to Roll20 objects. Ready to be accessed" SyntaxError: Unexpected end of input SyntaxError: Unexpected end of input at Object.parse (native) at _.each._.chain.movePlayer (apiscript.js:15682:19) at _.each._.chain.handleInput (apiscript.js:16396:33) at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:144:34), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:144:34), <anonymous>:70:8) at /home/node/d20-api-server/api.js:1394:12 at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560 at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147) at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546) at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489) at Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425) at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:111:400 Ok, that ended up being bigger than I thought it would - hope you can make sense of it... EDIT/Clarification: I'm using the One Click Install version of the script. I've also tried this joining as a player to see if it will work. It doesn't crash the API, but when I get the notification in chat, and click the buttons, nothing happens.