FailureToLog api

模组

· 作者 kooyoseb

FailureToLog API Fabric 是 FailureToLog Paper 服务器插件的客户端辅助模组。

0 本站下载 0 关注 更新于 4 个月前

最新 1.0.0 · 26.2 · Fabric

一键开服(送7天)

FailureToLog API Fabric

FailureToLog API Fabric 是 FailureToLog Paper 服务器插件的客户端配套模组。

它帮助运行 FailureToLog 的服务器接收更有用的客户端断开连接信息。当玩家断开连接或看到错误屏幕时,该模组可以保存屏幕显示的原因,并将其发送到兼容的服务器,以便工作人员通过服务器插件的日志查看器进行检查。

功能说明

  • 通过自定义插件消息握手检测启用了 FailureToLog 的服务器。
  • 捕获客户端 Minecraft 的断开连接屏幕标题和原因。
  • 在可能的情况下,将客户端断开连接的详细信息发送给服务器插件。
  • 支持在下一次连接时延迟发送,这是推荐的模式。
  • 添加 Mod Menu 配置界面,用于更改发送时机。
  • 默认使用英文作为面向用户的语言。

要求

客户端

  • Minecraft 26.1.2
  • Fabric Loader 0.19.2 或更高版本
  • Fabric API
  • 可选:Mod Menu,用于打开游戏内配置界面

服务器

为了获得完整功能,服务器必须运行:

  • Paper 26.1.2
  • FailureToLog Paper 插件

即使没有安装服务器插件,也可以安装此模组,但它仅在服务器支持 FailureToLog 插件消息通道时才会发送报告。

安装

客户端安装

  1. 为 Minecraft 26.1.2 安装 Fabric Loader。
  2. 安装 Fabric API。
  3. 将此模组的 jar 文件放入客户端的 mods 文件夹中。
  4. 可选:安装 Mod Menu,以便从模组菜单中打开配置界面。

典型的客户端模组文件夹路径:

%APPDATA%\.minecraft\mods

服务器安装

  1. 停止 Paper 服务器。
  2. 将 FailureToLog Paper 插件的 jar 文件放入服务器的 plugins 文件夹中。
  3. 启动服务器。
  4. 服务器插件会自动创建其配置文件和日志文件。

配置

客户端配置文件位于:

config/failure-to-log-api-fabric/client.properties

典型的完整 Windows 路径:

%APPDATA%\.minecraft\config\failure-to-log-api-fabric\client.properties

发送时机

该模组支持两种错误日志发送时机模式。

下次连接

推荐。

模组会将断开连接报告存储在本地,并在玩家下次连接到同一台启用了 FailureToLog 的服务器时发送。

这是最安全的模式,因为一旦客户端断开连接,网络连接可能已经关闭。

配置值:

send-timing=next_connection

断开连接后

模组尝试在断开连接后立即发送报告。

这可能会失败,因为当断开连接屏幕出现时,连接可能已经被关闭。如果发送失败,模组会将报告保存下来,留待下次连接时发送。

配置值:

send-timing=after_disconnect

待处理报告存储

当使用推荐的“下次连接”模式时,待处理的客户端报告存储在:

config/failure-to-log-api-fabric/pending-client-log.properties

典型的完整 Windows 路径:

%APPDATA%\.minecraft\config\failure-to-log-api-fabric\pending-client-log.properties

在报告成功发送到匹配的服务器后,该文件会被删除。

Mod Menu

如果安装了 Mod Menu,请打开:

Mods -> FailureToLog API Fabric -> Configure

配置界面允许玩家更改:

  • 错误日志发送时机

界面上还会显示以下警告:

Recommended: Next connection. Sending after disconnect can fail because the network connection may already be closed.

服务器插件集成

该模组使用以下自定义负载通道与 FailureToLog Paper 插件通信:

failuretolog:hello
failuretolog:client_log

流程:

  1. 玩家加入服务器。
  2. 服务器发送 failuretolog:hello。
  3. 客户端标记该服务器为 FailureToLog 兼容。
  4. 如果发生错误,客户端捕获断开连接屏幕的信息。
  5. 客户端通过 failuretolog:client_log 发送保存的报告。
  6. 服务器存储报告并广播一个可点击的错误日志消息。

服务器命令

服务器插件提供以下命令:

/failuretolog toggle
/failuretolog savelogs <on|off>
/failuretolog codes
/failuretolog log <id>

别名:

/ftl

重要限制

Minecraft 客户端在网络连接完全关闭后无法向服务器发送数据。

因此,推荐模式是 Next connection(下次连接)。在该模式下,模组会将错误报告保存在本地,并在玩家重新连接到同一台启用了 FailureToLog 的服务器时发送。

此模组不会将报告上传到任何外部 Web 服务。报告仅通过 Minecraft 网络发送到兼容的 FailureToLog 服务器。

隐私说明

客户端报告可能包含以下内容:

  • 断开连接屏幕标题
  • 断开连接原因
  • Minecraft 版本
  • 玩家名称
  • 服务器地址
  • FailureToLog 协议/插件版本
  • 时间戳

它不会有意收集完整的本地游戏日志或崩溃报告。

推荐的平台描述

简短描述:

Client companion mod for FailureToLog servers. Captures disconnect screen details and sends them to the server plugin for easier error diagnosis.

详细描述:

FailureToLog API Fabric is a client-side companion mod for the FailureToLog Paper server plugin.

When a player disconnects or sees an error screen, the mod captures the disconnect screen title and reason. If the server supports FailureToLog, the report can be sent to the server plugin and viewed by staff through the plugin's error log commands.

The recommended send mode is Next connection, which stores the report locally and sends it when the player reconnects to the same server. This avoids the common problem where the client can no longer send packets after the connection has already closed.

Mod Menu is supported for changing the client send timing.

建议标签

  • Fabric
  • Client
  • Utility
  • Server utility
  • Admin tools
  • Logging
  • Debugging
  • Paper integration

构建输出

集成构建产物已复制到以下路径:

C:\Users\musek\IdeaProjects\dist

Fabric 模组 jar 文件:

FailureToLog-API-Fabric-1.0.0.jar

Paper 插件 jar 文件:

FailureToLog-Paper-1.0-SNAPSHOT.jar

运行集成构建脚本:

C:\Users\musek\IdeaProjects\build-all-failure-to-log.bat

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源