TorchAPI / Torch

An extensible modding framework and improved client/DS for Space Engineers. Still a work in progress!
Apache License 2.0
146 stars 76 forks source link

[BUG] Stuck in specator at center of world only reproducible on torch #345

Closed LordTylus closed 2 years ago

LordTylus commented 5 years ago

broken1.txt

Torch Version: 1.3.1.78 SE Version: 1.192.22

Observed Behavior

I have a worldfile at the following location: http://alehousegaming.com/Star%20System.zip

It contains a grid called !Broken 1

This grid itself is called Broken, because its invisible, so teleporting there using space master ingame will show you nothing at that location, but you can still collide with it and its blocking your way. However that is a Keen bug and reported here: https://support.keenswh.com/spaceengineers/general/topic/1-192-22-ds-grids-invisible-causing-random-ship-explosions-and-spawn-problems

However when I am next to that grid, hit !save, and wait for the saving to be completed, followed by a !restart 1 the server restarts as expected.

But after the restart I am in a specator mode, visually at the center of the world, with no UI or any other way interact with the game.

Why do I annoy you with that?

I performed the Steps to reproduce below in a vanilla torch server without any plugins. And it behaves just as described in the observed behavior.

I run the same test on a Keen DS and had no weird spectator glitch. It actually worked as Expected there. Grid still being invisible but at least the client was able to join correctly.

And I run it in Single Player, which as always had also no issues.

So it seems to me that its something torch related. Probably caused by the invisible grid glitch thingy, but since we often get reports from various players of our servers to be in such spectator state it would nice to have it fixed.

Expected Behavior

The grid of course is still invisible due to the keen bug, but you get your UI, you can move around, respawn whereever you want and... basically play the game.

Which currently is not possible in this reproducible scenario.

Steps to Reproduce

  1. Download the Worldfile from http://alehousegaming.com/Star%20System.zip
  2. Run your Local Torch Server (no plugins required)
  3. Start the server and Join the game.
  4. Using Space Master look for the grid !Broken 1 (should be pretty high in the list)
  5. TP to that grid, notice it being invisible as stated in the keen Bug-Report
  6. Hit !save and wait for save to be completed
  7. run !restart 1 and wait for the server to be restarted (should take 30 seconds or so)
  8. After auto reconnecting, or manually reconnecting notice you not having any UI or ways to interact with the game.

Other Information

you can restart it faster using the ALE-RestartWatchdog set to 1 second so it instantly kills the server and restarts but thats not required for reproduction

You can see with Space Master that you still have a character. So deleting that, and reconnecting to the server again may get you out of that state. Sadly not reliably.

An other way to get out is to just log off wait for about 20-30 minutes and then log back it. Which basically only works because the server deleted your character itself by then.

If you find evidence that this report is unlike my observations a keen Issue please let me know so I can have a proper bugreport there. But my steps to reproduce did not work on Keens DS.

LordTylus commented 5 years ago

Just in case someone needs it I add the exported broken grid which seems to be connected to the problem. I exported it using essentials. Had to rename if to txt though for github upload. broken1.txt