HMCL icon indicating copy to clipboard operation
HMCL copied to clipboard

[Feature] 允许使用外部程序打开游戏日志

Open YELANDAOKONG opened this issue 1 year ago • 3 comments

描述 | Description

希望在 游戏日志界面(或游戏崩溃界面) 添加 “使用记事本打开日志” 或 “使用自定义程序打开日志” 功能。

原因 | Reason

在调试整合包的时候,某些情况下游戏会产生大量的日志(报错信息),HMCL提供的日志窗口会出现非常明显的卡顿、白屏现象;使用系统的notepad.exe或其他的第三方的文本编辑器能更方便地查看崩溃日志、处理模组问题等。

YELANDAOKONG avatar May 25 '24 13:05 YELANDAOKONG

HMCL 提供的日志窗口如果卡顿,白屏是由于 JavaFX ListView 的问题导致的,我们没法修复 :(

你可以手动打开游戏文件夹下的 logs/latest.log。

burningtnt avatar May 25 '24 13:05 burningtnt

或许可以加个 explorer /select?但那样感觉多此一举了……

allMagicNB avatar May 25 '24 13:05 allMagicNB

I think this feature is worth having, but the specific implementation details require more consideration.

My first reaction was to think of the interface where you select a text editor in the wizard of the installer for Git for Windows.

3gf8jv4dv avatar May 25 '24 14:05 3gf8jv4dv

这个是动态的日志,启动器内很难实现,你可以用 tail -f 这样的命令从外部跟踪日志文件。

Glavo avatar Nov 10 '24 14:11 Glavo

理论上来说可以通过启动器将日志信息写到一个临时文件实现? @Glavo 但我怀疑这个 PR 的必要性

burningtnt avatar Nov 10 '24 14:11 burningtnt