Bump OTAPI to 3.3.12 for Terraria 1.4.5.7 support - #282
Open
hufang360 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
English
Updates TSAPI to OTAPI.Upcoming 3.3.12, which adds Terraria 1.4.5.7 support.
Changes:
OTAPI.Upcoming3.3.11 → 3.3.12.NetHooks:Netplay.HasClients→Netplay.HasFullyConnectedClients;Netplay.StopListening()→Netplay.TcpListener?.StopListening()(the static method was removed in 1.4.5.7;ISocket.StopListeningis kept).NpcHooks:NPC.StrikeNPCno longer takes anoEffectargument in 1.4.5.7; the publicInvokeNpcStrikeAPI is kept intact via a local variable.PacketTypes: packet 162 is nowDamageNPCAck(new NPC-strike acknowledgement). The oldServerInfo/PlayerPlatformInfomembers 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 reportsProtocol v1.4.5.7 (325).Changelog
中文简介
升级 TSAPI 至 OTAPI.Upcoming 3.3.12(Terraria 1.4.5.7 适配版)。
改动:
OTAPI.Upcoming3.3.11 → 3.3.12。NetHooks:Netplay.HasClients→HasFullyConnectedClients;Netplay.StopListening()→Netplay.TcpListener?.StopListening()(1.4.5.7 移除该静态方法,ISocket.StopListening仍保留)。NpcHooks:1.4.5.7 的NPC.StrikeNPC不再有noEffect参数,以局部变量保持公共InvokeNpcStrikeAPI 不变。PacketTypes:162 号包现在是DamageNPCAck(新增的 NPC 打击确认包);保留旧ServerInfo/PlayerPlatformInfo为同值别名,避免旧插件编译失败。已验证:构建 + 单测通过;用原版 1.4.5.7 服务器实测可启动(OTAPI 报告
Protocol v1.4.5.7 (325))。Changelog