edzillion / blood-n-guts

Other
4 stars 16 forks source link

Errors with Multilevel Tokens #183

Open jcolemanquotient opened 3 years ago

jcolemanquotient commented 3 years ago

I use multilevel tokens ( https://foundryvtt.com/packages/multilevel-tokens/ ) to add stairs and 'upper levels' to areas on my maps, and I noticed that every time I move a token leaving a blood trail while in the "source" section of a multi-level view region, it causes a momentary lagspike and pops out a console error.

DisplayObject.ts:657 Uncaught (in promise) TypeError: Cannot read property 'position' of null at Token.get (DisplayObject.ts:657) at Token.get (DisplayObject.ts:603) at SplatToken.<anonymous> (SplatToken.js:360) at Generator.next (<anonymous>) at SplatToken.js:7 at new Promise (<anonymous>) at __awaiter (SplatToken.js:3) at SplatToken.saveState (SplatToken.js:354) at SplatToken.updateChanges (SplatToken.js:179) at updateTokenOrActorHandler (blood-n-guts.js:478)

It seems like it's trying to clone the blood splatter too, though it fails and doesn't do so.

edzillion commented 3 years ago

Thanks for the report. I just looked into this one and it's complicated.

https://discord.com/channels/170995199584108546/722566083499786352/772965579249680446

https://youtu.be/DF_50IRlEpg?t=616

edit: have contacted the module author and hopefully he'll be able to enlighten me