Hex-Dragon / PCL2

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

较低版本开启了版本隔离音频文件应该在版本文件下的文件夹里 #4628

Closed zec896219 closed 1 month ago

zec896219 commented 1 month ago

检查项

描述

把资源文件放在resources文件夹里

原因

较低版本以下没有声音

wuliaodexiaoluo commented 1 month ago

把1.6.4版本以下的音频文件放在resources文件夹里

请提供具体日志,PCL 对于低版本的行为是使用软链挂载文件夹

3gf8jv4dv commented 1 month ago

请提供具体日志,PCL 对于低版本的行为是使用软链挂载文件夹

I believe PCL already does this, but seems to be limited to the .minecraft directory. With the isolation option enabled, there is no such folder in the isolate target directory.

allMagicNB commented 1 month ago

3684

3gf8jv4dv commented 1 month ago

3684

Looks like a different issue. I could notice the phenomenon mentioned by the author in NTFS partitions.

LTCatt commented 1 month ago

如果较低版本没有声音,请上传日志并补充具体版本等信息

3gf8jv4dv commented 1 month ago

@LTCatt

Log1.txt (Deleted)

Minecraft 1.5.2 No sound on first launch, but there is sound on second launch.

zec896219 commented 1 month ago

Log1.txt Log2.txt Log3.txt Log4.txt Log5.txt 版本是1.4.7 hmcl可以把文件补充完整 其他版本我只测试过1.0版本也没有声音 @LTCatt

zec896219 commented 1 month ago

1.6以下就没有声音了 @LTCatt

LTCatt commented 1 month ago

image

我不知道这是啥情况,如果 resource 文件夹没有加载,就不应该有语言选择,所以它确实加载成功了。 但是没声音……

3gf8jv4dv commented 1 month ago

@LTCatt

Taking Minecraft 1.5.2 as an example, the language files are included in the Minecraft.jar, not externally in the resources directory. 以 Minecraft 1.5.2 为例,语言文件包含在 Minecraft.jar 中,并非在 resources 目录中。

语言 - 中文 Minecraft Wiki # 语言文件历史

13w16a

除了en_US.lang以外的语言文件均从.jar移除。 游戏现在会在第一次启动时从外部服务器下载语言文件。

13w26a

en_US.lang现在位于assets/minecraft/lang文件夹里。


The main reason is that after turning on Instance Isolation, the resources folder is not created in the corresponding directory. The solution can refer to this: 主要原因还是因为开启 “版本隔离” 后,resources 文件夹没有在相应的目录中创建。解决方法可以参考下这个:

3gf8jv4dv commented 1 month ago

@LTCatt

I reorganized the comments, take another look? 我重新整理了下评论,再看看?

LTCatt commented 1 month ago

image 看起来依然不行……

3gf8jv4dv commented 1 month ago

@LTCatt

Weird. I have randomly tested several versions, and only 1.3.2, no matter whether instance isolation is turned on or not, there is no sound; 1.1 / 1.2.5 / 1.4 / 1.4.7 / 1.5.2, do not enable instance isolation or manually copy the resources folder to the corresponding directory, all have sounds.

怪。抽测了几个版本,只有 1.3.2,无论是否开启版本隔离,都没有声音;1.1 / 1.2.5 / 1.4 / 1.4.7 / 1.5.2,不启用版本隔离或者启用后手动复制 resources 文件夹到对应目录,都有声音。

LTCatt commented 1 month ago

看起来是 1.3.2 的 bug…… 修好了 =。=

zkitefly commented 1 month ago

备注:如果使用了上面的方法在游戏中仍然没有声音,可以试试在 jvm 参数中加入 betacraft 提供的修复方案(-Dhttp.proxyHost=betacraft.uk),一般都能恢复声音