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 插件消息通道时才会发送报告。
安装
客户端安装
- 为 Minecraft
26.1.2 安装 Fabric Loader。
- 安装 Fabric API。
- 将此模组的 jar 文件放入客户端的
mods 文件夹中。
- 可选:安装 Mod Menu,以便从模组菜单中打开配置界面。
典型的客户端模组文件夹路径:
%APPDATA%\.minecraft\mods
服务器安装
- 停止 Paper 服务器。
- 将 FailureToLog Paper 插件的 jar 文件放入服务器的
plugins 文件夹中。
- 启动服务器。
- 服务器插件会自动创建其配置文件和日志文件。
配置
客户端配置文件位于:
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
流程:
- 玩家加入服务器。
- 服务器发送
failuretolog:hello。
- 客户端标记该服务器为 FailureToLog 兼容。
- 如果发生错误,客户端捕获断开连接屏幕的信息。
- 客户端通过
failuretolog:client_log 发送保存的报告。
- 服务器存储报告并广播一个可点击的错误日志消息。
服务器命令
服务器插件提供以下命令:
/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
FailureToLog API Fabric
FailureToLog API Fabric is a client-side companion mod for the FailureToLog Paper server plugin.
It helps FailureToLog servers receive more useful client-side disconnect information. When a player disconnects or sees an error screen, the mod can save the screen reason and send it to a compatible server so staff can inspect it through the server plugin's log viewer.
What It Does
- Detects FailureToLog-enabled servers through a custom plugin message handshake.
- Captures Minecraft's disconnect screen title and reason on the client.
- Sends client-side disconnect details to the server plugin when possible.
- Supports delayed sending on the next connection, which is the recommended mode.
- Adds a Mod Menu config screen for changing the send timing.
- Uses English as the default user-facing language.
Requirements
Client
- Minecraft
26.1.2
- Fabric Loader
0.19.2 or newer
- Fabric API
- Optional: Mod Menu, for the in-game config screen
Server
For full functionality, the server must run:
- Paper
26.1.2
- FailureToLog Paper plugin
The mod can be installed without the server plugin, but it will only send reports when the server supports the FailureToLog plugin message channels.
Installation
Client Installation
- Install Fabric Loader for Minecraft
26.1.2.
- Install Fabric API.
- Put this mod jar into the client
mods folder.
- Optional: install Mod Menu to open the config screen from the Mods menu.
Typical client mods folder:
%APPDATA%\.minecraft\mods
Server Installation
- Stop the Paper server.
- Put the FailureToLog Paper plugin jar into the server
plugins folder.
- Start the server.
- The server plugin will create its config and log files automatically.
Configuration
The client config is stored at:
config/failure-to-log-api-fabric/client.properties
Typical full Windows path:
%APPDATA%\.minecraft\config\failure-to-log-api-fabric\client.properties
Send Timing
The mod supports two error log send timing modes.
Next connection
Recommended.
The mod stores the disconnect report locally and sends it the next time the player connects to the same FailureToLog-enabled server.
This is the safest mode because once the client is disconnected, the network connection may already be closed.
Config value:
send-timing=next_connection
After disconnect
The mod attempts to send the report immediately after disconnect.
This can fail because the connection may already be closed by the time the disconnect screen appears. If sending fails, the mod saves the report for the next connection instead.
Config value:
send-timing=after_disconnect
Pending Report Storage
When using the recommended next-connection mode, the pending client report is stored at:
config/failure-to-log-api-fabric/pending-client-log.properties
Typical full Windows path:
%APPDATA%\.minecraft\config\failure-to-log-api-fabric\pending-client-log.properties
The file is deleted after the report is successfully sent to the matching server.
Mod Menu
If Mod Menu is installed, open:
Mods -> FailureToLog API Fabric -> Configure
The config screen lets players change:
The screen also shows the warning:
Recommended: Next connection. Sending after disconnect can fail because the network connection may already be closed.
Server Plugin Integration
The mod communicates with the FailureToLog Paper plugin using these custom payload channels:
failuretolog:hello
failuretolog:client_log
Flow:
- Player joins the server.
- Server sends
failuretolog:hello.
- Client marks the server as FailureToLog-compatible.
- Client captures disconnect screen information if an error occurs.
- Client sends the saved report through
failuretolog:client_log.
- Server stores the report and broadcasts a clickable error log message.
Server Commands
The server plugin provides:
/failuretolog toggle
/failuretolog savelogs <on|off>
/failuretolog codes
/failuretolog log <id>
Alias:
/ftl
Important Limitations
Minecraft clients cannot send data to a server after the network connection is fully closed.
Because of that, the recommended mode is Next connection. In that mode, the mod saves the error report locally and sends it when the player reconnects to the same FailureToLog-enabled server.
This mod does not upload reports to any external web service. Reports are only sent to compatible FailureToLog servers through Minecraft networking.
Privacy Notes
The client report may include:
- Disconnect screen title
- Disconnect reason
- Minecraft version
- Player name
- Server address
- FailureToLog protocol/plugin version
- Timestamp
It does not intentionally collect full local game logs or crash reports.
Recommended Platform Description
Short description:
Client companion mod for FailureToLog servers. Captures disconnect screen details and sends them to the server plugin for easier error diagnosis.
Long description:
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.
Suggested Tags
- Fabric
- Client
- Utility
- Server utility
- Admin tools
- Logging
- Debugging
- Paper integration
Build Output
Integrated distribution builds are copied to:
C:\Users\musek\IdeaProjects\dist
Fabric mod jar:
FailureToLog-API-Fabric-1.0.0.jar
Paper plugin jar:
FailureToLog-Paper-1.0-SNAPSHOT.jar
Run the integrated build script:
C:\Users\musek\IdeaProjects\build-all-failure-to-log.bat
评论 0
登录后参与评分
还没有评论,来抢沙发吧