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

[Help] Dungeon Ready

Hello!, It's been a while since I've used this code (like a year or more) but it seems that in that time something with the code is broken for me. I'm no good at coding so I was hoping someone could help me out... The error(s?) i'm getting are: For reference, the error message generated was: TypeError: Cannot read property 'replace' of undefined TypeError: Cannot read property 'replace' of undefined at fixNewObject (apiscript.js:1585:47) at placeObject (apiscript.js:1557:9) at mapdungeon (apiscript.js:1147:17) at handleInput (apiscript.js:335: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)
if you recently made a new geomap page simply restart the APi and your good other wise a fresh copy paste into the APi maybe a good idea. 
I tried both and I still get the same errors... about to try making a seperate campaign just to be 100% sure
1515192979

Edited 1515193095
that is usually best blank slate with assets uploaded fresh might help.  the error itself is having an issue with something called "replace" in the code or something missing that is calls 
No luck with the fresh slate campaign...
which api and asset are you using maybe The AAron can help further. 
I'm using the Github here:&nbsp; <a href="https://gist.github.com/BaldarSilveraxe/fe582e5845" rel="nofollow">https://gist.github.com/BaldarSilveraxe/fe582e5845</a>... It's the one from the old forum post when it originally released... I even bought the pack to support the guy that made it.
The roll table names and assets need to be exact for that one&nbsp;
1515448294
The Aaron
Pro
API Scripter
Try this version:&nbsp; <a href="https://gist.github.com/shdwjk/b245bf33d63dd028dce" rel="nofollow">https://gist.github.com/shdwjk/b245bf33d63dd028dce</a>... There's some old code in that other one that may be causing the issue.
The Aaron said: Try this version:&nbsp; <a href="https://gist.github.com/shdwjk/b245bf33d63dd028dce" rel="nofollow">https://gist.github.com/shdwjk/b245bf33d63dd028dce</a>... There's some old code in that other one that may be causing the issue. You are a true scriptomancer! Thank you so very very much.
1516377778
The Aaron
Pro
API Scripter
Cheers!&nbsp; Happy to help. =D