船只卡顿修复
一款 Paper 插件,用于修复船只碰撞时的异常行为,专为冰上赛车(Ice Boat Racing)场景设计。
注意: 请确保在
spigot.yml中调高moved-wrongly-threshold的值,否则船只可能会原地冻结。
船只卡顿原因解析
船只碰撞由客户端处理,但服务器端也会进行碰撞检测。 玩家看到的船只是“插值模型”,由于延迟和移动插值的固有位置偏移(以及 Mojang 的一些代码缺陷),该模型会滞后于船只的实际位置。
驾驶员客户端的碰撞计算已处理所有必要逻辑,但服务器仍会在驾驶员船只与其他船只实际位置之间进行碰撞检测。这会导致服务器向驾驶员发送 VehicleMove 数据包,从而暂时冻结驾驶员角色/或导致严重的回弹现象(rubberbanding)。
本插件禁用了该数据包的发送,并移除了此异常行为。大多数主流冰上赛车服务器均已采用类似的修复方案。
完整归功于 Makkuusen 提出的修复方案。它已从 TimingSystem 插件中提取并独立打包,以便在其他服务器上使用,因为完整的 TimingSystem 插件在这些场景下过于臃肿。
自 2.0.0 版本起,该修复现采用基于数据包事件的新方案。
No Boat Lag
A paper plugin that fixes buggy behaviour when boats collide, intended for use when Ice Boat Racing.
Note: Make sure to Increase
moved-wrongly-thresholdinspigot.ymlor boats may freeze in place.
Boat Lag Explanation
Boat collisions are handled by the client, but the server also does collision checks. The boat seen by players is the "interpolated model", which lags behind the actual position of the boat due to ping and the movement interpolation's natural position offset (and some amount of mojang jank)
The boat driver's client's collision calculations handle everything required, but the server will still do collision checks between the driver's boat and the real position of other boats which results in the server sending VehicleMove packets to the driver which will temporarily freeze the driver in place and/or cause some really unsatisfactory rubberbanding.
This plugin disables the packet sent and removes the buggy behavior, a similar fix is in place on most major Ice Boat Racing servers.
Full Credit to Makkuusen for coming up with the fix. It has been pulled from the TimingSystem plugin and put into its own package for use on other servers, where the full TimingSystem plugin is severely overkill.
As of 2.0.0 the fix now uses a new approach with packet events.
下载 No Boat Lag
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Boat Lag
下载 No Boat Lag
下载 No Boat Lag
下载 No Boat Lag
下载 No Boat Lag
- 重写 Packet Events,使其在不同版本间具有更好的可移植性
!!! 请确保在 spigot.yml 中调高 moved-wrongly-threshold 的值,否则船只可能会原地冻结。!!!
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
创建用户友好的菜单以前往不同的世界
评论 0
登录后参与评分
还没有评论,来抢沙发吧