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

[Script] "DungeonReady" Errors

1519247758

Edited 1519247944
I just bought the Dungeon Ready pack and attempted to use API , however upon clicking the Random Map macro the API fired off the following error: TypeError: Cannot read property 'changed' of undefined TypeError: Cannot read property 'changed' of undefined at fixNewObject (apiscript.js:7107:20) at placeObject (apiscript.js:7079:9) at mapdungeon (apiscript.js:6669:17) at handleInput (apiscript.js:5857:29) at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:146:1), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:146:1), <anonymous>:70:8) at /home/node/d20-api-server/api.js:1510: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 noticed that there had been errors recently (but for other reasons, so I attempted to make use of the fixed/updated version found here and when I clicked on the Random Map macro I got the following error instead: TypeError: Cannot read property 'match' of undefined TypeError: Cannot read property 'match' of undefined at getCleanImgsrc (apiscript.js:5545:27) at mapdungeon (apiscript.js:6666:29) at handleInput (apiscript.js:5865:29) at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:146:1), <anonymous>:65:16) at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:146:1), <anonymous>:70:8) at /home/node/d20-api-server/api.js:1510: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 Zd.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 Any help resolving this would be appreciated.
1519248923
GiGs
Pro
Sheet Author
API Scripter
I don't know the fix myself, but I've seen this error with Dungeon ready crop up on the forums plenty of times. A google search will probably reveal one of the prior threads.
1519249663

Edited 1519256307
Sadly the quick google search is what turned up the updated script. Some fiddling around has showed it works with the sample images, however the problem seems to crop up when I have updated the tables to use the full assets, even though they've been added to my library first. It seems to crash like that the second it hits a tile that has been updated to the full asset. Edit- Think I solved it. You need to download the full pack, and then manually upload and add each tile one by one to your library, instead of just telling it to add the pack to your library from your purchases. So far I've replaced about 30 of the tiles, and they dont cause the errors when generating a map. Hopefully it works for the dynamic lighting when I get that far. I will come back and update this post with my results as I progress. Yep, that fixed everything. Very time consuming.
1519255779
The Aaron
Pro
API Scripter
If that doesn't fix it, I've got an updated version of that script here:&nbsp; <a href="https://gist.github.com/shdwjk/b245bf33d63dd028dce" rel="nofollow">https://gist.github.com/shdwjk/b245bf33d63dd028dce</a>...
1519255805
GiGs
Pro
Sheet Author
API Scripter
Ah yes, I remember that now. API Scripts cant access art assets from the marketplace, so you have to manually upload them and add them to your library.
1519255814
The Aaron
Pro
API Scripter
Oh wait.. just noticed you posted that you're using that... I should learn to read the WHOLE message before I reply.. =D
1519255856
The Aaron
Pro
API Scripter
(What G G said!)
Everything is fixed now. It was definitely that it couldnt access the stuff. How unfortunate. Now that I have manually added everything it works wonderfully.