Skip to content

error when server side character is turned on #3274

Description

@CyniBot
  • TShock version: 6.1
  • TShock build number (if known):

Reproduction steps (if applicable)?

  1. turn on ssc in ssconfig.json
  2. join the server

Any stack traces or error messages (if known)?

[Server API] Warning Plugin "TShock" has had an unhandled exception thrown by one of its GameUpdate handlers: 
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Terraria.DataStructures.ActiveSections.IsSectionActive(Point sectionCoords) in OTAPI:token 0x60053e9+0x8
   at Terraria.DataStructures.ActiveSections.CheckSection(Vector2 position, Int32 fluff) in OTAPI:token 0x60053e8+0x51
   at Terraria.RemoteClient.mfwh_CheckSection_ForClient(RemoteClient client, Vector2 position, Int32 fluff) in OTAPI:token 0x6000c9f+0x0
   at Terraria.RemoteClient.CheckSection_ForClient(RemoteClient client, Vector2 position, Int32 fluff) in OTAPI:token 0x6000c8a+0x30
   at Terraria.RemoteClient.mfwh_CheckSection(Int32 playerIndex, Vector2 position, Int32 fluff) in OTAPI:token 0x6000c9e+0x11
   at Terraria.RemoteClient.CheckSection(Int32 playerIndex, Vector2 position, Int32 fluff) in OTAPI:token 0x6000c89+0x30
   at TShockAPI.TSPlayer.Teleport(Single x, Single y, Byte style) in /home/runner/work/TShock/TShock/TShockAPI/TSPlayer.cs:line 1640
   at TShockAPI.TSPlayer.Teleport(Point tilePos, Boolean useBottom, Byte style) in /home/runner/work/TShock/TShock/TShockAPI/TSPlayer.cs:line 1591
   at TShockAPI.TSPlayer.TeleportSpawnpoint() in /home/runner/work/TShock/TShock/TShockAPI/TSPlayer.cs:line 1670
   at TShockAPI.TShock.OnSecondUpdate() in /home/runner/work/TShock/TShock/TShockAPI/TShock.cs:line 1165
   at TShockAPI.TShock.OnUpdate(EventArgs args) in /home/runner/work/TShock/TShock/TShockAPI/TShock.cs:line 1077
   at TerrariaApi.Server.HandlerCollection`1.Invoke(ArgsType args) in /home/runner/work/TShock/TShock/TerrariaServerAPI/TerrariaServerAPI/TerrariaApi.Server/HandlerCollection.cs:line 109

Any screenshots?

server side character turn off

Image

server side character turn on

Image

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

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

im using fresh install of tshock

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions