manuelVo / foundryvtt-drag-ruler

A Foundry VTT module that shows a ruler when dragging tokens so you can see how far you've dragged them
MIT License
39 stars 50 forks source link

PF2E Party Token #300

Open laurieathey opened 11 months ago

laurieathey commented 11 months ago

It's not breaking anything, and I'm not sure if it's this or the PF2E specific extra module but the new Party Tokens in the latest version of pathfinder aren't playing nice with this.

Just spams errors into the console:

api.js:99 TypeError: Cannot read properties of undefined (reading 'find')
    at movementSpeed (movementFunctions.js:5:77)
    at movementTracking (movementFunctions.js:42:20)
    at PF2eSpeedProvider.getRanges (main.js:63:19)
    at getRangesFromSpeedProvider (api.js:90:39)
    at DragRulerRuler.dragRulerGetColorForDistance (ruler.js:461:28)
    at DragRulerRuler.highlightMeasurementNative (foundry_imports.js:212:22)
    at DragRulerRuler.performPostPathfindingActions (ruler.js:188:34)
    at DragRulerRuler.measure (ruler.js:134:16)
    at DragRulerRuler.scheduleMeasurement (foundry_imports.js:153:8)
    at DragRulerRuler.onMouseMove (foundry_imports.js:145:22)
    at _TokenPF2e.onEntityLeftDragMove (main.js:159:37)
    at _TokenPF2e.onEntityLeftDragMoveSnap (main.js:153:23)
    at 🎁call_wrapper [as call_wrapper] (libWrapper-wrapper.js:616:16)
    at 🎁Token.prototype._onDragLeftMove#0 (libWrapper-wrapper.js:189:20)
    at MouseInteractionManager.callback (foundry.js:31655:17)
    at #handleDragMove (foundry.js:32002:26)
    at #handleMouseMove (foundry.js:31974:37)
    at Na.notifyListeners (earcut.js:128:75)
    at Na.notifyTarget (earcut.js:128:75)
    at Na.propagate (earcut.js:128:75)
    at Na.dispatchEvent (earcut.js:128:75)
    at Na.mapPointerMove (earcut.js:128:75)
    at Na.mapEvent (earcut.js:128:75)
    at yn.onPointerMove (earcut.js:128:75)

Note: The pathfinder specific module is where I went to report this but the project doesn't support issues and in foundry there's no link to tell you where to report issues so I came here.