Pryaxis / TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
GNU General Public License v3.0
2.41k stars 377 forks source link

Chests no longer open #2622

Open lhunath opened 2 years ago

lhunath commented 2 years ago

When clicking to open a chest in the world, nothing happens.

Note: this was working earlier today. I put an item in a chest, restarted the server, and then I could no longer open any chests.

"RegionProtectChests": true, was set when I put the item in my chest. After restarting, I could no longer open any chests (though building was fine). I shut the server down and set "RegionProtectChests": false,, but I can still not open any chests.

Reproduction steps (if applicable)?

  1. Start server.
  2. Connect.
  3. User was auto-logged in (SSC).
  4. Try to open a chest.
  5. Nothing happens.
  6. Try to build.
  7. Works as expected.

Any stack traces or error messages (if known)?

None.

Any screenshots?

image

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

With "DebugLogs": true,:

2022-04-28 20:29:38 - 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-04-28 20:29:52 - TextLog: VERBOSE: GetDataHandlers / HandlePlayerBuffList handled event and sent data Maarten
2022-04-28 20:29:52 - GetDataHandlers: INFO: Maarten authenticated successfully as user Maarten.
2022-04-28 20:29:53 - TextLog: VERBOSE: GetDataHandlers / HandleSpawn force teleport 'vanilla spawn' Maarten
2022-04-28 20:29:53 - TextLog: INFO: Maarten (86.106.90.105) from 'trustedadmin' group joined. (1/8)
2022-04-28 20:29:53 - Utils: INFO: Broadcast: Maarten has joined.
2022-04-28 20:29:54 - TextLog: VERBOSE: GetDataHandlers / HandlePlayerBuffList handled event and sent data Maarten
2022-04-28 20:29:54 - TextLog: VERBOSE: GetDataHandlers / HandlePlayerBuffList handled event and sent data Maarten
2022-04-28 20:29:54 - TextLog: VERBOSE: GetDataHandlers / HandlePlayerBuffList handled event and sent data Maarten
2022-04-28 20:29:55 - TextLog: VERBOSE: GetDataHandlers / HandlePlayerBuffList handled event and sent data Maarten

Clicking to open the chest does not generate any log events.

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

No plugins installed at all.

lhunath commented 2 years ago

Note: I can still open the Defender's Forge.

punchready commented 2 years ago

When pressing F8, do you see the number after 32: rx: (in the leftmost panel roughly below the middle) increase when attempting to open a chest? Do the chests open when you open a copy of the world in a vanilla server? I can't find anything that could be broken without producing any logs within tShock off the bat. I also recommend backing up your world just in case, if you don't already do that.

lhunath commented 2 years ago

The 32 numbers do not change (rx or tx), however the 31: tx: numbers change on each click (rx does not).

lhunath commented 2 years ago

Copied the wld with rsync -a over to a local machine and opened it in Terraria directly as a local map, where I can open the chests just fine and the item I had placed into it is present.

punchready commented 2 years ago

At last you can try opening a different world in the same server and check if chests open. Otherwise this sounds like a case for actual debugging

lhunath commented 2 years ago

I have created a new world locally, placed a chest into it, with the same item, rsync'ed it over to the TShock server and launched the server with it. Connecting to it remotely and opening the chest in this new world works, and the item can be found in it. It would seem the issue is a combination of TShock + the original world file.

punchready commented 2 years ago

You are absolutely sure you have no other plugins installed? tShock does hardly any interference with chests, especially none that would break based on a world file, to my knowledge

lhunath commented 2 years ago

I have placed a chest into the local copy of the world and then uploaded that to the server. Now when I launch TShock with this locally-modified copy of the world file, I can open the chest as well as other chests again. Exiting and entering or restarting the server does not resurface the issue. If you are interested, I could share the old and new world file.

punchready commented 2 years ago

If the old world file still causes the chest issue, sure

lhunath commented 2 years ago

... Restoring the old world file now allows chests to open again.

punchready commented 2 years ago

That pretty much reduces the error space to the network, even tho the log suggests that the connection was reasonably stable the entire time Happens :)

lhunath commented 2 years ago

Regardless, here are the wld files, in case they might prove interesting. I do not know how to inspect their binary format. https://stuff.lhunath.com/Arcadia.chestsbroken.wld https://stuff.lhunath.com/Arcadia.localfix.wld

lhunath commented 2 years ago

That pretty much reduces the error space to the network

Seems dubious given the available evidence (multiple restarts, logins, spaced out over hours, no logs/indicators as you say, and coincidentally disappears as a local copy is loaded?), though I certainly have nothing better to offer. I can come back should the problem resurface.