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

Interpolated trap detection script not working. Pumping out this error.

TypeError: Object function (count) { var len = this.length >>> 0, count = count >> 0; unshift.apply(this, splice.call(this, count % len, len)); return this; } has no method 'get' at checkTrapsDuringMovement (evalmachine. :2740:27) at evalmachine. :2804:16 at eval ( Dont suppose anyone understands waht this error means?
1403722816
The Aaron
Roll20 Production Team
API Scripter
It means that one of the objects that is being used is undefined . All the places where it says obj.get('something') should probably be checking if(_.has(obj,'get') ) { // do stuff } As to what specifically is crashing, I'd have to dig into the script to be certain.
Bah thanks anyways. Sounds more complicated then I can handle. Edit: Nope nothing to do with that. Odd. Wonder why.
1403723742
The Aaron
Roll20 Production Team
API Scripter
Might have been some transient state where your move command was being checked while something else was being removed, leading to a bad object reference dangling about.
Saevar -- did you ever get this working? I am getting the exact same error.
1406914270
The Aaron
Roll20 Production Team
API Scripter
I'd be happy to help track that down if you want to invite me to a campaign that's doing it and GM me so I can look at the scripts.
1406915948
The Aaron
Roll20 Production Team
API Scripter
Try disabling all your other scripts and see if can get the error. If you do, post the error here and I'll see if I can figure out what's happening based on the line numbers (with other scripts enabled, the line number isn't really usable...).