Rughalt / D35E

3.5e SRD implementation for Foundry VTT.
https://legaciesofthedragon.com
GNU General Public License v3.0
37 stars 30 forks source link

Player Vision with multiple tokens #902

Open Eldintux opened 2 years ago

Eldintux commented 2 years ago

I seem to have a problem with players that have ownership of multiple actors (including but not exclusively familiar/minions etc). When both actors are on a scene if something changes on the scene (eg adding a new light) the player loses all vision. This only appears to happen when the scene is set to token vision. If you re-add the permission for the second actor for the player the problem disappears. Until they log in next time. There's nothing in the logs. I've tried it in a fresh world and it still happens with fresh actors (the actors don't have to be linked through minions just have the same player with ownership). I can't make it happen in 5e. If you are trying to replicate and everything appears to work, logout as the player & log back in then add an ambient light to the scene. I have included a zip file with both the actors from the new world, not sure what else you would require

actors.zip .

github-actions[bot] commented 2 years ago

Thanks for opening an issue, traveller! If your issue is related to an actor or an item, sending thing that is broken will help a lot and speed up debugging.

How to send an item? > - If item is owned by a character, drag and drop it to world item list. > - Right click on item in browser item list and click export. > - Attach downloaded item to this ticket. How to send an actor? > - Right click on actor in browser actor list and click export. > - Attach downloaded actor to this ticket.

cyberfox01 commented 2 years ago

That sounds very much the same like my issue, except that I do get an exception in the console. It says "This is not a registered game setting" and is caused in foundry.js::get(namespace, key), with namespace="D35E" and key="sharedVisionMode". Callstack says it is called from token.js::_isVisionSource() I have searched all files in D35E folder for "sharedVisionMode", but it only appears once in token.js, does not seem to be set anywhere. I am using v0.99.1