RPTools / maptool

Virtual Tabletop for playing roleplaying games with remote players or face to face.
http://rptools.net
GNU Affero General Public License v3.0
802 stars 262 forks source link

Random view switch when starting and stopping server. #2487

Closed kwvanderlinde closed 6 months ago

kwvanderlinde commented 3 years ago

Describe the bug Immediately after starting a server, my view usually switches to a random location on a random map. This also happens after stopping the server.

To Reproduce Steps to reproduce the behavior:

  1. Open a campaign with several maps.
  2. Pick a map you like to look at.
  3. Click on File > Start Server... and start a server as a GM.
  4. Witness your view switch to a different map.
  5. Switch maps back to what you were looking in (2)
  6. Click on File > Disconnect From Server...
  7. Witness your view switch to yet another map.

Try that a few times and you'll find the exact map may vary, and your view may be positioned differently (and zoomed differently, I think, but I'm not sure on that).

Expected behavior When I start a server as a GM, my view should remain at the same location and on the same map. And when I stop a server, my view should also remain where it is.

Or, if a view change is warranted (e.g., starting server as a player but currently on a hidden map), the view should change to something predictable or else just black the map out (as when a map is hidden when a player is still on it)

Screenshots Before I start the server, I am enjoying by beautiful grassy wilderness: image But when I start the server I am brought to a creepy dungeon image I go back to my grass patch, but when I stop the server I'm back in skeleton central! Or any one of my other maps...

MapTool Info

Desktop (please complete the following information):

melek commented 3 years ago

Noting that this is related to #75.

My ideal MVP for solving these two issues:

This scheme is nice because no extra UI is needed while creating a predictable situation for GMs.

kwvanderlinde commented 3 years ago

I like the pragmatic approach of melek's suggestion. And as far as the GM side goes, that is exactly the behaviour I would expect.

For the player-side, it might be nice to always send them to the first visible map by default (i.e., that would become the "landing map"). But if the GM has enabled "Center Players on Current View (Continuous)", then they would be brought to the GM's view.

Phergus commented 3 years ago

And this is also related to the more recent #2698.