Hex-Dragon / PCL2

Plain Craft Launcher(我的世界启动器 PCL)的源代码,为支持社区研究而公开。
https://afdian.com/a/LTCat
Other
2.55k stars 185 forks source link

游戏窗口最大化选项无效 #4680

Closed Jonck-lens closed 1 month ago

Jonck-lens commented 1 month ago

检查项

描述

启动1.18.2(forge40.2.11)游戏版本,并在设置->窗口大小中选择最大化选项,但游戏窗口仍以默认大小显示(我的是873x508)

启动其他版本时,pcl似乎都会执行一个最大化游戏窗口的操作,但在此版本中,直到主界面进入也没有任何操作 我认为最有可能是因为pcl提前最大化操作(进入mojang界面前,有一段无响应时间,窗口任何操作均无效)

根据pcl日志,窗口加载仅仅1s左右就进行了最大化操作,受限于设备性能,10s左右才脱离无响应状态,此时窗口仍以默认大小显示

重现步骤

  1. 窗口选择最大化
  2. 启动一个加载耗时较长的版本

日志与附件

Log1(273行手动注释).txt

3gf8jv4dv commented 1 month ago

I know there are several other issues reporting similar problems, but this one describes it in some detail. 我知道有其他几个反馈类似现象的 issue,但这个详细地描述了一些细节。

In Windows, when a program is not responding, the window cannot be maximized or restored, which may be the problem. 在 Windows 中,当一个程序无响应时,窗口无法最大化或还原,这或许是问题所在。

I am more inclined to believe that this is a third-party issue, but I would still like to let @LTCatt take a look at this suggestion. If I missed some similar issues, please let me know. 我更倾向于这是个第三方 issue,不过还是让龙猫看看。如果我遗漏了某些类似的 issue,请在下方评论。


In addition, I would also like to know some details: Does this happen with vanilla? Are there other mods installed in the Forge instance? 此外,我还想了解一些细节:原版会出现这个问题吗?Forge 版本中是否安装了其他模组?

tangge233 commented 1 month ago

1.18.2-Forge_40.2.11 无 Mod 安装,无法复现 即便尝试疯狂点击窗口使其进入无响应状态也无法复现此问题 可否分享下都安装了什么 Mod?

Jonck-lens commented 1 month ago

architectury-4.10.86-forge支持库.jar clockwork-1.18.2-0.1.13-forge-90516b7ffc.jar create-1.18.2-0.5.1.b.jar curios-forge-1.18.2-5.0.9.2.jar do-a-barrel-roll-2.5.3+1.18.2-forge.jar eureka-1.4.0-beta.1.jar fancymenu_forge_3.1.4_MC_1.18.2.jar framework-0.2.3-1.18.2支持库.jar konkrete_forge_1.8.0_MC_1.18-1.18.2.jar kotlinforforge-3.12.0-all.jar lazydfu-1.0-1.18+.jar lightspeed-1.18.2-1.0.5.jar melody_forge_1.0.1_MC_1.18.2.jar ModernUI-Forge-1.18.2-3.10.1.1-universal.jar oculus-mc1.18.2-1.6.4.jar physics-mod-pro-v153-forge-1.18.2.jar starlight优化.jar tacz-1.18.2-1.0.2-release.jar ToolBelt-1.18.2-1.18.7.jar tournament-1.18.2-forge-1.1.0.jar trackwork-1.18.2-1.0.0-beta.jar twilightforestl.jar VMod-0.0.2.jar [JEI物品管理器] jei-1.18.2-forge-10.2.1.1005.jar [动态光源] dynamiclights-1.18.6.jar [旅行地图] journeymap-1.18.2-5.9.7-forge.jar [机械动力:火炮] createbigcannons-forge-1.18.2-0.5.2.a.jar [沉浸工程] ImmersiveEngineering-1.18.2-8.4.0-161.jar [瓦尔基里天空/瓦尔基里战争] valkyrienskies-118-2.1.1-beta.5.jar [铷] rubidium-0.5.6.jar [飞轮] flywheel-forge-1.18.2-0.6.8.a.jar [鼠标手势] MouseTweaks-forge-mc1.18-2.21.jar 真实地形tectonic-forge-1.18-2.3.4a.jar

3gf8jv4dv commented 1 month ago

@Jonck-lens

Can you turn off all mods and try again? I think the window not responding may be related to the behavior of certain mods (such as connecting to the network, etc.).

可以关闭所有模组再次尝试吗?我感觉窗口未响应可能与某些模组的行为有关(例如连接网络等)。

tangge233 commented 1 month ago

也许可以使用这个函数判断窗口状态正常后再进行最大化 https://learn.microsoft.com/zh-cn/dotnet/api/system.diagnostics.process.responding?view=net-8.0

Jonck-lens commented 1 month ago

找了半天,现在确定很大概率是 Modern UI 这个mod的问题,这个mod似乎修改了原版游戏的许多内容。mod是开源的,希望开发者针对这个mod做出相关修改 https://github.com/BloCamLimb/ModernUI-MC

wyc-26 commented 1 month ago

PCL 不会对特定的模组做适配吧…… 之前记得有一个要求适配信雅互联的被批回去了

LTCatt commented 1 month ago

如果是 mod 的问题就先关了 =。=