Skip to content

Bump OTAPI to 3.3.12 for Terraria 1.4.5.7 support - #282

Closed
hufang360 wants to merge 1 commit into
Pryaxis:general-develfrom
hufang360:update-1.4.5.7
Closed

Bump OTAPI to 3.3.12 for Terraria 1.4.5.7 support#282
hufang360 wants to merge 1 commit into
Pryaxis:general-develfrom
hufang360:update-1.4.5.7

Conversation

@hufang360

Copy link
Copy Markdown

English

Updates TSAPI to OTAPI.Upcoming 3.3.12, which adds Terraria 1.4.5.7 support.

Changes:

  • Bump OTAPI.Upcoming 3.3.11 → 3.3.12.
  • NetHooks: Netplay.HasClientsNetplay.HasFullyConnectedClients; Netplay.StopListening()Netplay.TcpListener?.StopListening() (the static method was removed in 1.4.5.7; ISocket.StopListening is kept).
  • NpcHooks: NPC.StrikeNPC no longer takes a noEffect argument in 1.4.5.7; the public InvokeNpcStrike API is kept intact via a local variable.
  • PacketTypes: packet 162 is now DamageNPCAck (new NPC-strike acknowledgement). The old ServerInfo/PlayerPlatformInfo members are kept as same-value aliases so existing plugins keep compiling.

Verified: dotnet build + tests pass; boot-tested with the vanilla 1.4.5.7 server – OTAPI reports Protocol v1.4.5.7 (325).

Changelog

  • Update TSAPI to support Terraria 1.4.5.7 (OTAPI 3.3.12).

中文简介

升级 TSAPI 至 OTAPI.Upcoming 3.3.12(Terraria 1.4.5.7 适配版)。

改动:

  • OTAPI.Upcoming 3.3.11 → 3.3.12。
  • NetHooksNetplay.HasClientsHasFullyConnectedClientsNetplay.StopListening()Netplay.TcpListener?.StopListening()(1.4.5.7 移除该静态方法,ISocket.StopListening 仍保留)。
  • NpcHooks:1.4.5.7 的 NPC.StrikeNPC 不再有 noEffect 参数,以局部变量保持公共 InvokeNpcStrike API 不变。
  • PacketTypes:162 号包现在是 DamageNPCAck(新增的 NPC 打击确认包);保留旧 ServerInfo/PlayerPlatformInfo 为同值别名,避免旧插件编译失败。

已验证:构建 + 单测通过;用原版 1.4.5.7 服务器实测可启动(OTAPI 报告 Protocol v1.4.5.7 (325))。

Changelog

  • TSAPI 升级以支持 Terraria 1.4.5.7(OTAPI 3.3.12)。

@hufang360

Copy link
Copy Markdown
Author

Closing this in favour of #283, which carries the same changes and is under review.

I've verified the port against OTAPI 3.3.13 (TSAPI net9 build clean; TShock boots with the vanilla 1.4.5.7 server, Protocol v1.4.5.7 (325)). Details and next steps are in my comment on #283.

Thanks!

@hufang360 hufang360 closed this Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant