TShock icon indicating copy to clipboard operation
TShock copied to clipboard

Missing "player has left" message.

Open Ozakinn opened this issue 3 years ago • 7 comments

Hi I am using Oracle Linux 8 for my terraria server. The terraria server file without tshock able to display "player joined" and "player left". When I added the Tshock files, which is this one "TShock-5.1.3-for-Terraria-1.4.4.9-linux-arm64-Release.zip" The only thing that display is player joined

  • TShock version: TShock 5.1.3

Reproduction steps (if applicable)?

  1. Use Oracle Linux 8 (Free tier/ 4vCPU - 24GB RAM)
  2. Download and Run terraria server files
  3. Apply Tshock 5
  4. Join, quit, and Join
  5. No/missing "player has left." message.

Any stack traces or error messages (if known)?

None found.

Any screenshots?

Terraria without Tshock image

Terraria with Tshock 5 image

Any log messages from files that end in .log or .txt? What are the last 100 log messages from the server console?

LOGS.TXT

2022-12-11 10:45:12 - TShock: INFO: TShock 5.1.3.0 (Thank you, everyone, for your support of TShock all these years! <3) now running.
2022-12-11 10:45:12 - TShock: INFO: AutoSave Enabled
2022-12-11 10:45:12 - TShock: INFO: Backups Enabled
2022-12-11 10:45:12 - TShock: INFO: Welcome to TShock for Terraria!
2022-12-11 10:45:12 - TShock: INFO: TShock comes with no warranty & is free software.
2022-12-11 10:45:12 - TShock: INFO: You can modify & distribute it under the terms of the GNU GPLv3.
2022-12-11 10:45:33 - TShock: INFO: A password for this server was set in config.json and is being used.
2022-12-11 10:45:33 - TShock: INFO: Login before join enabled. Users may be prompted for an account specific password instead of a server password on connect.
2022-12-11 10:45:33 - TShock: INFO: Login using UUID enabled. Users automatically login via UUID.
2022-12-11 10:45:33 - TShock: INFO: A malicious server can easily steal a user's UUID. You may consider turning this option off if you run a public server.
2022-12-11 10:46:04 - TShock: INFO: Ozaki (120.29.x.x) from 'guest' group joined. (1/16)
2022-12-11 10:46:04 - Utils: INFO: Broadcast: Ozaki has joined.
2022-12-11 10:47:51 - TShock: INFO: Ozaki (120.29.x.x) from 'guest' group joined. (1/16)
2022-12-11 10:47:51 - Utils: INFO: Broadcast: Ozaki has joined.
2022-12-11 10:48:04 - Utils: INFO: Ozaki executed (args omitted): /login.
2022-12-11 10:48:04 - Commands: INFO: Ozaki authenticated successfully as user: ozaki.
2022-12-11 13:55:47 - Utils: INFO: Broadcast: Saving world...
2022-12-11 13:55:50 - Utils: INFO: Broadcast: World saved.
2022-12-11 13:55:50 - SaveManager: INFO: World saved at (tshock/backups/Scrubs.wld.2022-12-11T04.55.47Z.bak)
2022-12-11 13:55:50 - BackupManager: INFO: World backed up (tshock/backups/Scrubs.wld.2022-12-11T04.55.47Z.bak).
2022-12-11 14:25:27 - Utils: INFO: Server executed: /exit.
2022-12-11 14:25:27 - Utils: INFO: Broadcast: Saving world...
2022-12-11 14:25:30 - Utils: INFO: Broadcast: World saved.
2022-12-11 14:25:30 - SaveManager: INFO: World saved at (/root/.local/share/Terraria/Worlds/Scrubs.wld)
2022-12-11 14:25:30 - Utils: INFO: Broadcast: Server shutting down!
2022-12-11 14:25:30 - Utils: INFO: Broadcast: Saving world...

What plugins and what versions of those plugins are you running?

Crossplay and TCR. I tried removing all plugins. Still same result.

If I didn't provide any logs this issue, please close my issue immediately. I'm sorry for the inconvenience.

Ozakinn avatar Dec 12 '22 09:12 Ozakinn

It seems that for some unknown reason TShock did not detect the disconnect in certain cases.

Might related: #2841 and Discord message

But from the image, it seems that you only joined TShock server once - the first time you were kicked before join, and the second attempt is the only one.

sgkoishi avatar Dec 12 '22 18:12 sgkoishi

The has left notice should be displayed on the second attempt. I left a few seconds after joining the second attempt. Which it did not display, So after leaving, I exit the server via console.

EDIT: In the LOGS.TXT I have joined twice but has left response never displayed.

2022-12-11 10:46:04 - TShock: INFO: Ozaki (120.29.x.x) from 'guest' group joined. (1/16)
2022-12-11 10:46:04 - Utils: INFO: Broadcast: Ozaki has joined.
2022-12-11 10:47:51 - TShock: INFO: Ozaki (120.29.x.x) from 'guest' group joined. (1/16)
2022-12-11 10:47:51 - Utils: INFO: Broadcast: Ozaki has joined.

Ozakinn avatar Dec 13 '22 01:12 Ozakinn

I can confirm that I also have experienced this issue, both when leaving the server through the client and when shutting down the server. In addition to this, ServerApi.Hooks.ServerLeave never gets triggered.

I have also tested server-side players and noticed that they aren't being saved when the player quits either.

FrostBird347 avatar Dec 27 '22 08:12 FrostBird347

Are you on ARM(not ARM64) or x32?

Arthri avatar Dec 27 '22 14:12 Arthri

Are you on ARM(not ARM64) or x32?

I am on osx x64

FrostBird347 avatar Dec 28 '22 03:12 FrostBird347

This is happening to me too. It's a big problem with SSC, a player can drop items, disconnect (the server will not save its inventory), connect again and voilá the drop items will be duplicated in its inventory.

jbiosca78 avatar Apr 16 '25 14:04 jbiosca78

As of #3050 being merged, this might be fixed in the latest net9 pre-release.

sgkoishi avatar May 31 '25 04:05 sgkoishi