[#12535] 自定义 `Vars.net` 导致网络系统崩溃
本帖由 MDT GitHub 同步机器人自动整理。翻译与摘要由 AI 生成,仅供阅读参考。
问题概要
用户在控制台执行 Vars.net = new Net(new ArcNetProvider()) 后,连接服务器会卡在“正在连接”状态,随后出现世界加载错误。用户指出该操作在游戏启动阶段运行时是正常的。
内容
平台
Windows
版本
159.7
问题
在游戏控制台输入 Vars.net = new Net(new ArcNetProvider()) 后,连接卡在“正在连接”消息处。
等待一段时间后,会出现与加载世界相关的错误。
我不知道是什么原因导致的,但感觉这游戏就像纸牌屋一样脆弱。(因为该操作在启动时运行是正常的)
复现步骤
- 打开游戏
- 按下
f8键 - 在控制台输入
Vars.net = new Net(new ArcNetProvider()) - 尝试连接任意服务器
使用模组
无
存档文件
这是网络问题,不需要存档文件
(崩溃)日志
游戏日志没用,因为 ArcNetProvider 不会记录其错误
提交
- 我已更新至最新版本 以确保我的问题尚未被修复。
- 我已搜索已关闭和开启的 issue 以确保此问题尚未被报告。
- 我没有使用 Foo's Client。
- 此问题在未启用模组时发生。
- 我已附上有效的存档文件。
原始信息
- GitHub 编号:#12535
- 作者:JvVireo
- 状态:closed
- 标签:bug
- 创建时间:2026-08-27 01:25:01 CST
Platforms
Windows
Build
159.7
Issue
When entering Vars.net = new Net(new ArcNetProvider()) into the game console, the connection gets stuck on the message “Connecting”.
After waiting for some time, an error related to loading the world appears.
I don’t know what’s causing it, but it feels like this game is a house of cards. (because that operation runs on the start, and it works)
Steps to reproduce
- open the game
- press
f8key - enter
Vars.net = new Net(new ArcNetProvider())in the console - try to connect to any server
Mods used
none
Save file
this is net issue, save file is not required
(Crash) logs
game logs is useless because ArcNetProvider does not logs his errors
Submission
- I have updated to the latest release (https://github.com/Anuken/Mindustry/releases) to make sure my issue has not been fixed.
- I have searched the closed and open issues to make sure that this problem has not already been reported.
- I am not using Foo's Client.
- This issue occurs with no mods enabled.
- I have attached a valid save file.
来源:GitHub #12535