Xcube-Studio / Natsurainko.FluentLauncher

Natsurainko.FluentLauncher A Minecraft launcher designed for Windows 11
https://fluentlauncher.natsurainko.work/
MIT License
290 stars 15 forks source link

[Bug] 本地化资源 "_NoSuitableJava" 的错误键名称导致的 "找不到 NamedResource",从而引发的启动失败 #187

Closed Maxdontron closed 1 year ago

Maxdontron commented 1 year ago

描述遇到的问题

提示: 原因:找不到 NamedResource

不太懂是什么原因,重装过很多次软件仍然不行,不清楚是不是缺少运行时之类的

复现问题的步骤

1.打开应用 2.点击 启动Minecraft 3.问题出现

期望的表现

正常启动游戏

环境

Windows 11 22621.2283 Fluent Launcher 2.2.0.0

附件

Message: 找不到 NamedResource。

HelpLink: ======================================== InnerException: ======================================== Source: StackTrace: at WinRT.ExceptionHelpers.gThrow|20_0(Int32 hr) at ABI.Microsoft.Windows.ApplicationModel.Resources.IResourceMapMethods.GetValue(IObjectReference _obj, String resource) at Natsurainko.FluentLauncher.Utils.ResourceUtils.GetValue(String[] strings) at Natsurainko.FluentLauncher.Services.Launch.LaunchService.<>cDisplayClass13_0.b__0() at Natsurainko.FluentLauncher.Components.Launch.LaunchProcess.RunLaunch() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)

natsurainko commented 1 year ago

emmmm 我昨天找了这个问题,原因是发现这个错误提示的本地化资源名称打错了导致解析失败, 这个错误的提示原本是 "没有找到合适版本的 Java 来启动这个游戏,需要版本 ${version}"

natsurainko commented 1 year ago

昨天后来改过了 但是还没有推送商店

natsurainko commented 1 year ago

临时的解决方案是去设置中关掉这个 image

Maxdontron commented 1 year ago

临时的解决方案是去设置中关掉这个 image

可以了,谢谢作者大大