Kruptein / PlanarAlly

A companion tool for when you travel into the planes.
https://www.planarally.io/
MIT License
395 stars 73 forks source link

[BUG] Cannot use Vision tool with too many tokens. #796

Open develroo opened 3 years ago

develroo commented 3 years ago

From the documentation

Vision Tool

The vision tool can be accessed in the toolbar on the bottom right of the Game Board in both modes. It helps to track vision of multiple tokens. Its behaviour is different for players and DMs.

However if you have more than 20 tokens on a HD display it runs off the top.

Example:

Example

Really, it needs a scroll bar or something, so you can access all the tokens. This is especially helpful if you keep monster tokens on the same location you are using.

For Ref. v0.27.0

Kruptein commented 3 years ago

It should indeed have a scroll bar and I'll be fixing that, that said I'm kinda curious as to why you have so many things declared as a token.

Tokens have a very specific meaning and impact in PA. Some more info here

If this is how you want to use it, no problem, just making sure it's properly understood.

dthv commented 3 years ago

I'm kinda curious as to why you have so many things declared as a token

If I remember correctly, they make extensive use of the RTS-style fow workaround. :slightly_smiling_face:

develroo commented 3 years ago

Well yes, if you are adding things like torches and other objects, it quickly becomes a long list. Not to mention if you have multiples of enemies. Think a swarm of spiders or something. Not dangerous individually, but in numbers they cause issues.

Kruptein commented 3 years ago

Well yeah, but usually you only want to assign player tokens as tokens and not anything else.

develroo commented 3 years ago

Oh right.. that is my mistake then. I assume that for a player to be able to see the light coming from a source it had to be a token so it can be seen. Apparently not. OK that makes sense. Still there is the case of lots of enemies on a map which needs to be address so.

Kruptein commented 3 years ago

In a traditional -non rts- setup, you don't even want your monsters to be tagged as tokens.

Every shape marked as a token incurs a performance decrease as vision is calculated for that specific token and typically as the DM controls the monsters and can see everything anyway, there is no need to calculate vision for monsters.

This is by no means a hard rule, you're free to use vision on monsters if you desire.

Your players will be able to see the combined vision for each token they own.

So if you want to show some light somewhere where your player tokens are not, then yes you'll have to make that light or something else in that vicinity a token that the player(s) own

develroo commented 3 years ago

What I found in practice works is placing the shapes on the DM layer with the light aura set up, it made invisible and it not being a token etc then moving it to the token layer as needed. The light suddenly illuminated the FOW is seems

Oreolek commented 9 months ago

I also didn't realize tokens mean "PC only" and had this rendered useless.