Kruptein / PlanarAlly

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

[BUG] Game sometimes forgets which order to display tokens #1319

Open rexy712 opened 8 months ago

rexy712 commented 8 months ago

Describe the bug For some context, my group has been playing with 'Tiny' PCs in our campaign. So most of the time they occupy the same space as other creatures. To deal with the shapes overlapping, we've made the tokens of the 'Tiny' PCs on the board smaller than a square, then put them on top of the token they share space with (via the right click options 'Move to Back' or 'Move to Front') so we can select either one. This all works fine within a single session.

However, sometimes when we return to the game the following week, the Tiny PC's token is sometimes behind the other token they're sharing a space with. This behavior only seems to happen when there is no one in the game for a sufficiently long amount of time.

When this does occur, it will happen for all instances of the Tiny PCs or none of them. Meaning if one is moved to the background by this issue, they all are. This seems to always be the case.

My thought is that Planarally is losing track of the order of front to back once everyone has logged out and left the game for a while. This is not a single client's issue; all the players see the order has been swapped when we return.

I'm sorry I can't give better information for this. As far as me or the others at my table can tell it really is just randomly happening between our sessions.

To Reproduce Steps to reproduce the behavior:

  1. Create one small and one larger shape.
  2. Move the smaller to the foreground and on top of the larger shape.
  3. Log out and wait for some time.
  4. Return to the game and sometimes the larger shape will now be in the foreground, hiding the smaller shape.

Expected behavior The board should remember the front-to-back order of shapes.

Screenshots I haven't been able to reproduce this in a way that would be recordable.

Desktop (please complete the following information):

Kruptein commented 8 months ago

That is an odd error indeed. PA doesn't really do anything with a session if nobody is interacting with it directly, so the time aspect is quite puzzling.

Are any other games ran on this server?

rexy712 commented 8 months ago

I run a game as the GM for one group and one other person runs a session where I'm the player. That's all we've got.

rexy712 commented 8 months ago

Of course as soon as I post this issue I would be able to finally recreate it. This one happened after only a refresh. Seems to happen most times right now, but still not every time.

I think it won't happen when we were trying to figure it out together because each time someone was still in the game, so the gamestate was kept the same by them being present. Then the other times when testing alone it could be my browser's caching is keeping it from happening? Not sure about that one.

https://github.com/Kruptein/PlanarAlly/assets/2442544/289b5102-5509-49fc-bb0b-03fa4fc9946a

rexy712 commented 8 months ago

It only seems to be happening in this game right now though. I tried it in another I'm in and also created a fresh one. I still can't get it to work in either of those.

Kruptein commented 7 months ago

it seems like something is messing with the order for that specific campaign then. If it's still affecting you, could you make an export of that campaign?

rexy712 commented 7 months ago

I'm not the GM for that campaign so I'll have to ask the GM for the export. I'll let you know