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

Page Navigator Error

1710370180

Edited 1710416012
When using the following chat code: !nav --move,page=Mamdakazi's Tower,landing=Floor-1|@{Beldroth|character_id} I get the following error within the API scripts TypeError: Cannot read properties of undefined (reading 'length') TypeError: Cannot read properties of undefined (reading 'length') at createTokenLanding (apiscript.js:11551:74) at findEntrance (apiscript.js:11606:17) at moveToPage (apiscript.js:11736:21) at moveHandler (apiscript.js:12104:17) at apiscript.js:12283:25 at Function.each (/home/node/d20-api-server/node_modules/underscore/underscore-node-f.cjs:1323:7) at handleInput (apiscript.js:12272:15) at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:70:8) at /home/node/d20-api-server/api.js:1762:12
1710379564
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Wraith! Does the command work on other pages? Have you tried renaming the page and the macro to remove the apostrophe in the page name? Some scripts can have parsing problems with "control characters" like quotes, brackets and some punctuation.
1710400145

Edited 1710400243
I tried a much simplier version: !nav --move,page=White Board,landing=Test|@{Anton B|character-id} and received the following: TypeError: Cannot read properties of undefined (reading 'get') TypeError: Cannot read properties of undefined (reading 'get') at moveHandler (apiscript.js:11639:46) at apiscript.js:11821:25 at Function.each (/home/node/d20-api-server/node_modules/underscore/underscore-node-f.cjs:1323:7) at handleInput (apiscript.js:11810:15) at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:168:1), <anonymous>:70:8) at /home/node/d20-api-server/api.js:1762: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) I believe the issue is with trying to create a token at the landing location. I say this as I have test the following without issue !nav --move,page=White Board,landing=Test|whole It will move everyone, but but it won't create any tokens
1710400468
vÍnce
Pro
Sheet Author
Not sure if it matters, but 'character-d' in !nav --move,page=White Board,landing=Test|@{Anton B|character-id} probably needs to be 'character_id'
Yea, that’s a typo on my part, I definitely used character_id as in my original post. 
I’m mostly hoping The Aaron will come and rescue me 😁
Actually I've found a much clunkier way around this by using it's a trap and token-mod move. Thanks anyway