Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 无法使用HMCL运行gtnh打包的Java17+整合包文件。 #3540

Open
PinkYuDeer opened this issue Jan 23, 2025 · 39 comments · May be fixed by #3547
Open

[Bug] 无法使用HMCL运行gtnh打包的Java17+整合包文件。 #3540

PinkYuDeer opened this issue Jan 23, 2025 · 39 comments · May be fixed by #3547
Assignees
Labels

Comments

@PinkYuDeer
Copy link

平台 | Platform

windows 10/11

问题描述 | Bug Description

描述

  • 目前最新版gtnh无法使用pcl或hmcl获得Java17+的运行体验。社区不得不指引玩家使用prism或mmc。

当下载并导入gtnh团队打包的17+mmc包并选择Java17+启动时,无法正确启动。(猜测应该是没有像prism启动器一样读取参数)在使用gtnh团队给出的mmc参数时,也无法启动。

当下载并导入gtnh团队打包的17+mmc包,但是不选择Java时,PCL会自动适配Java8,并且进入之后是lwjgl3ify的全英配置页面。该页面正确设置后,可以启动成功,但是日志等脱离了PCL。

  • 在使用PCL下载gtnh时通常无法获得完整文件,需要额外下载来自外网的资源,大量新手在群内反馈。

运行gtnh官方团队打包的Java8时,配置好Java可以正常运行,但参数仍需要手动填写。

重现步骤

导入步骤严格按照gtnh官方指南-Java17+mmc导入方式:
https://gtnh.miraheze.org/wiki/Installing_and_Migrating

期望:

  • 如同mmc一样填写参数后可以正常工作
  • 或者如同prism一样自动读取参数一步到位

启动器崩溃报告 / 启动器日志文件 | Launcher Crash Report / Launcher Log File

群内报错五花八门,且gtnh最新版2.7.0任何环境都复现。如果dev需要提供日志我会上传。

猜测:

个人猜测应该是整合包中的 mmc-pack.json 文件以及 patches 文件夹起作用。

其文档位于:JSON-Patches

以下是文件预览:

instance/点击展开

instance/minecraft/

instance/librarise/

instance/patches/点击展开
instance/patches/me.eigenraven.lwjgl3ify.forgepatches.json此处包含参数
{
    "formatVersion": 1,
    "name": "LWJGL3ify Early Classpath",
    "uid": "me.eigenraven.lwjgl3ify.forgepatches",
    "version": "2.1.5",
    "order": 3,
    "+jvmArgs": [
        "-Dfile.encoding=UTF-8", "-Djava.system.class.loader=com.gtnewhorizons.retrofuturabootstrap.RfbSystemClassLoader", "-Djava.security.manager=allow", "--add-opens", "java.base/java.io=ALL-UNNAMED", "--add-opens", "java.base/java.lang.invoke=ALL-UNNAMED", "--add-opens", "java.base/java.lang.ref=ALL-UNNAMED", "--add-opens", "java.base/java.lang.reflect=ALL-UNNAMED", "--add-opens", "java.base/java.lang=ALL-UNNAMED", "--add-opens", "java.base/java.net.spi=ALL-UNNAMED", "--add-opens", "java.base/java.net=ALL-UNNAMED", "--add-opens", "java.base/java.nio.channels=ALL-UNNAMED", "--add-opens", "java.base/java.nio.charset=ALL-UNNAMED", "--add-opens", "java.base/java.nio.file=ALL-UNNAMED", "--add-opens", "java.base/java.nio=ALL-UNNAMED", "--add-opens", "java.base/java.text=ALL-UNNAMED", "--add-opens", "java.base/java.time.chrono=ALL-UNNAMED", "--add-opens", "java.base/java.time.format=ALL-UNNAMED", "--add-opens", "java.base/java.time.temporal=ALL-UNNAMED", "--add-opens", "java.base/java.time.zone=ALL-UNNAMED", "--add-opens", "java.base/java.time=ALL-UNNAMED", "--add-opens", "java.base/java.util.concurrent.atomics=ALL-UNNAMED", "--add-opens", "java.base/java.util.concurrent.locks=ALL-UNNAMED", "--add-opens", "java.base/java.util.jar=ALL-UNNAMED", "--add-opens", "java.base/java.util.zip=ALL-UNNAMED", "--add-opens", "java.base/java.util=ALL-UNNAMED", "--add-opens", "java.base/jdk.internal.loader=ALL-UNNAMED", "--add-opens", "java.base/jdk.internal.misc=ALL-UNNAMED", "--add-opens", "java.base/jdk.internal.ref=ALL-UNNAMED", "--add-opens", "java.base/jdk.internal.reflect=ALL-UNNAMED", "--add-opens", "java.base/sun.nio.ch=ALL-UNNAMED", "--add-opens", "java.desktop/com.sun.imageio.plugins.png=ALL-UNNAMED", "--add-opens", "java.desktop/sun.awt.image=ALL-UNNAMED", "--add-opens", "java.desktop/sun.awt=ALL-UNNAMED", "--add-opens", "java.sql.rowset/javax.sql.rowset.serial=ALL-UNNAMED", "--add-opens", "jdk.dynalink/jdk.dynalink.beans=ALL-UNNAMED", "--add-opens", "jdk.naming.dns/com.sun.jndi.dns=ALL-UNNAMED,java.naming"
    ],
    "libraries": [
        {
            "name": "com.github.GTNewHorizons:lwjgl3ify:2.1.5:forgePatches",
            "MMC-hint": "local"
        }
    ]
}
instance/patches/me.eigenraven.lwjgl3ify.launchargs.json
{
    "formatVersion": 1,
    "name": "LWJGL3ify launch args",
    "uid": "me.eigenraven.lwjgl3ify.launchargs",
    "version": "2.1.5",
    "order": 100,
    "mainClass": "com.gtnewhorizons.retrofuturabootstrap.Main"
}
instance/patches/net.minecraft.json
{
    "assetIndex": {
        "id": "1.7.10",
        "sha1": "1863782e33ce7b584fc45b037325a1964e095d3e",
        "size": 72996,
        "totalSize": 112396854,
        "url": "https://piston-meta.mojang.com/v1/packages/1863782e33ce7b584fc45b037325a1964e095d3e/1.7.10.json"
    },
    "compatibleJavaMajors": [
        11,
        17,
        19,
        20,
        21,
        22,
        23,
        24
    ],
    "formatVersion": 1,
    "libraries": [
        {
            "downloads": {
                "artifact": {
                    "sha1": "0a796914d1c8a55b4da9f4a8856dd9623375d8bb",
                    "size": 15966,
                    "url": "https://libraries.minecraft.net/com/mojang/netty/1.8.8/netty-1.8.8.jar"
                }
            },
            "name": "com.mojang:netty:1.8.8"
        },
        {
            "downloads": {
                "artifact": {
                    "sha1": "0807ae355ee63583becd7ea60e76aab1532bb42e",
                    "size": 353818,
                    "url": "https://libraries.minecraft.net/com/mojang/realms/1.3.5/realms-1.3.5.jar"
                }
            },
            "name": "com.mojang:realms:1.3.5"
        },
         
        省略

    ],
    "mainClass": "net.minecraft.client.main.Main",
    "mainJar": {
        "downloads": {
            "artifact": {
                "sha1": "e80d9b3bf5085002218d4be59e668bac718abbc6",
                "size": 5256245,
                "url": "https://launcher.mojang.com/v1/objects/e80d9b3bf5085002218d4be59e668bac718abbc6/client.jar"
            }
        },
        "name": "com.mojang:minecraft:1.7.10:client"
    },
    "minecraftArguments": "--username ${auth_player_name} --version ${version_name} --gameDir ${game_directory} --assetsDir ${assets_root} --assetIndex ${assets_index_name} --uuid ${auth_uuid} --accessToken ${auth_access_token} --userProperties ${user_properties} --userType ${user_type}",
    "name": "Minecraft with LWJGL3",
    "order": -2,
    "releaseTime": "2014-05-14T17:29:23+00:00",
    "requires": [
        {
            "suggests": "3.3.3",
            "uid": "org.lwjgl3"
        }
    ],
    "type": "release",
    "uid": "net.minecraft",
    "version": "1.7.10"
}
instance/patches/net.minecraftforge.json
{
    "+tweakers": [
        "cpw.mods.fml.common.launcher.FMLTweaker"
    ],
    "formatVersion": 1,
    "libraries": [
        {
            "name": "net.minecraftforge:forge:1.7.10-10.13.4.1614-1.7.10:universal",
            "url": "https://maven.minecraftforge.net/"
        },
        {
            "name": "com.typesafe.akka:akka-actor_2.11:2.3.3",
            "url": "https://maven.minecraftforge.net/"
        },
        {
            "name": "com.typesafe:config:1.2.1",
            "url": "https://maven.minecraftforge.net/"
        },
        {
            "name": "org.scala-lang:scala-actors-migration_2.11:1.1.0",
            "url": "https://maven.minecraftforge.net/"
        },
        {
            "name": "org.scala-lang:scala-compiler:2.11.1",
            "url": "https://maven.minecraftforge.net/"
        },
        {
            "name": "org.scala-lang.plugins:scala-continuations-library_2.11:1.0.2",
            "url": "https://maven.minecraftforge.net/"
        },
        {
            "name": "org.scala-lang.plugins:scala-continuations-plugin_2.11.1:1.0.2",
            "url": "https://maven.minecraftforge.net/"
        },
        {
            "name": "org.scala-lang:scala-library:2.11.1",
            "url": "https://maven.minecraftforge.net/"
        },
        {
            "name": "org.scala-lang:scala-parser-combinators_2.11:1.0.1",
            "url": "https://maven.minecraftforge.net/"
        },
        {
            "name": "org.scala-lang:scala-reflect:2.11.1",
            "url": "https://maven.minecraftforge.net/"
        },
        {
            "name": "org.scala-lang:scala-swing_2.11:1.0.1",
            "url": "https://maven.minecraftforge.net/"
        },
        {
            "name": "org.scala-lang:scala-xml_2.11:1.0.2",
            "url": "https://maven.minecraftforge.net/"
        },
        {
            "name": "lzma:lzma:0.0.1"
        },
        {
            "name": "com.google.guava:guava:17.0"
        }
    ],
    "mainClass": "com.gtnewhorizons.retrofuturabootstrap.Main",
    "name": "Forge-LWJGL3",
    "order": 5,
    "releaseTime": "2015-12-10T00:05:37-05:00",
    "requires": [
        {
            "equals": "1.7.10",
            "uid": "net.minecraft"
        }
    ],
    "uid": "net.minecraftforge",
    "version": "10.13.4.1614"
}
instance/patches/org.lwjgl3.json
{
    "conflicts": [
        {
            "uid": "org.lwjgl"
        }
    ],
    "formatVersion": 1,
    "libraries": [
        {
            "downloads": {
                "artifact": {
                    "sha1": "149070a5480900347071b7074779531f25a6e3dc",
                    "size": 1245129,
                    "url": "https://libraries.minecraft.net/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3-natives-linux.jar"
                }
            },
            "name": "org.lwjgl:lwjgl-freetype-natives-linux:3.3.3",
            "rules": [
                {
                    "action": "allow",
                    "os": {
                        "name": "linux"
                    }
                }
            ]
        },
        {
            "downloads": {
                "artifact": {
                    "sha1": "b0a8c9baa9d1f54ac61e1ab9640c7659e7fa700c",
                    "size": 1040981,
                    "url": "https://libraries.minecraft.net/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3-natives-macos-arm64.jar"
                }
            },
            "name": "org.lwjgl:lwjgl-freetype-natives-macos-arm64:3.3.3",
            "rules": [
                {
                    "action": "allow",
                    "os": {
                        "name": "osx"
                    }
                },
                {
                    "action": "allow",
                    "os": {
                        "name": "osx-arm64"
                    }
                }
            ]
        },
        {
            "downloads": {
                "artifact": {
                    "sha1": "1e9b635b5c16b515527b905749be59223e338c4d",
                    "size": 1142682,
                    "url": "https://libraries.minecraft.net/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3-natives-macos.jar"
                }
            },
            "name": "org.lwjgl:lwjgl-freetype-natives-macos:3.3.3",
            "rules": [
                {
                    "action": "allow",
                    "os": {
                        "name": "osx"
                    }
                }
            ]
        },

        省略

        {
            "downloads": {
                "artifact": {
                    "sha1": "f35d8b6ffe1ac1e3a5eb1d4e33de80f044ad5fd8",
                    "size": 91294,
                    "url": "https://build.lwjgl.org/release/3.3.3/bin/lwjgl/lwjgl-natives-linux-arm64.jar"
                }
            },
            "name": "org.lwjgl:lwjgl-natives-linux-arm64:3.3.3-lwjgl.1",
            "rules": [
                {
                    "action": "allow",
                    "os": {
                        "name": "linux-arm64"
                    }
                }
            ]
        },
        {
            "downloads": {
                "artifact": {
                    "sha1": "2075c51a80f0ef0f22ba616ba54007ac2b0debd4",
                    "size": 89565,
                    "url": "https://build.lwjgl.org/release/3.3.3/bin/lwjgl/lwjgl-natives-linux-arm32.jar"
                }
            },
            "name": "org.lwjgl:lwjgl-natives-linux-arm32:3.3.3-lwjgl.1",
            "rules": [
                {
                    "action": "allow",
                    "os": {
                        "name": "linux-arm32"
                    }
                }
            ]
        }
    ],
    "name": "LWJGL 3",
    "order": -1,
    "releaseTime": "2024-04-22T13:42:34+00:00",
    "type": "release",
    "uid": "org.lwjgl3",
    "version": "3.3.3",
    "volatile": true
}
instance/mmc-pack.json点击展开
{
    "components": [
        {
            "cachedName": "LWJGL 3",
            "cachedVersion": "3.3.3",
            "cachedVolatile": true,
            "dependencyOnly": true,
            "uid": "org.lwjgl3",
            "version": "3.3.3"
        },
        {
            "cachedName": "Minecraft with LWJGL3",
            "cachedRequires": [
                {
                    "suggests": "3.3.3",
                    "uid": "org.lwjgl3"
                }
            ],
            "cachedVersion": "1.7.10",
            "important": true,
            "uid": "net.minecraft",
            "version": "1.7.10"
        },
        {
            "cachedName": "LWJGL3ify Early Classpath",
            "cachedVersion": "2.1.5",
            "uid": "me.eigenraven.lwjgl3ify.forgepatches"
        },
        {
            "cachedName": "Forge-LWJGL3",
            "cachedRequires": [
                {
                    "equals": "1.7.10",
                    "uid": "net.minecraft"
                }
            ],
            "cachedVersion": "10.13.4.1614",
            "uid": "net.minecraftforge",
            "version": "10.13.4.1614"
        },
        {
            "cachedName": "LWJGL3ify launch args",
            "cachedVersion": "2.1.5",
            "uid": "me.eigenraven.lwjgl3ify.launchargs"
        }
    ],
    "formatVersion": 1
}
instance/instance.cfg
InstanceType=OneSix
JoinServerOnLaunch=false
OverrideCommands=false
OverrideConsole=false
OverrideGameTime=false
OverrideJavaArgs=false
OverrideJavaLocation=false
OverrideMemory=false
OverrideNativeWorkarounds=false
OverrideWindow=false
iconKey=gtnh_icon
name=GTNH 2.7.0
notes=
@burningtnt
Copy link
Member

请提供崩溃信息

@PinkYuDeer
Copy link
Author

尝试一:直接导入下载好的java17+mmc包

结果:无法导入,报错。

日志:

hmcl-exported-logs-2025-01-23T22-35-19.log

即将尝试:以覆盖包形式安装

@PinkYuDeer
Copy link
Author

PinkYuDeer commented Jan 23, 2025

尝试二:先从HMCL自动下载安装1.7.10与forge,然后安装gtnh覆盖包,以默认状态运行。此步安装的覆盖包为Java8版本(文件命名有些混乱,稍等会尝试Java21版本覆盖包

结果:自动选择了java8、自动填写了参数、启动失败。

日志:

hmcl-exported-logs-2025-01-23T22-42-39.log

即将尝试:手动选择java21:来自(https://adoptium.net/temurin/)https://[adoptium.net/temurin/](https://adoptium.net/temurin/) 、输入官方给出的mmc参数:https://github.com/GTNewHorizons/lwjgl3ify/blob/2.0.0/README.MD#client

@PinkYuDeer
Copy link
Author

PinkYuDeer commented Jan 23, 2025

尝试三:先从HMCL自动下载安装1.7.10与forge,然后安装gtnh覆盖包,手动选择java21,输入官方给出的mmc参数,禁用JVM兼容性检查(否则无法选择该java)此步安装的覆盖包为Java8版本(文件命名有些混乱,稍等会尝试Java21版本覆盖包

结果:失败

日志:

minecraft-exported-logs-2025-01-23T22-46-17.log

hmcl-exported-logs-2025-01-23T22-46-34.log

@PinkYuDeer
Copy link
Author

是否还需要其他步骤及日志?

@PinkYuDeer
Copy link
Author

PinkYuDeer commented Jan 23, 2025

尝试四:自动选择Java(结果为java8)、输入官方给出的Java17+mmc参数。此步安装的覆盖包为Java8版本(文件命名有些混乱,稍等会尝试Java21版本覆盖包

结果:失败。

日志:

minecraft-exported-crash-info-2025-01-23T22-49-10.zip

hmcl-exported-logs-2025-01-23T22-50-08.log

即将尝试:从courseforge下载gtnh最新版并安装

@PinkYuDeer
Copy link
Author

尝试五:从courseForge上下载最新包并安装(仅有java8版本)

结果:失败。原因为自动填写的参数。

报错:Unrecognized option: -Xgcpolicy:gencon 、Unrecognized option: -Xmnx8192M

即将尝试:删除参数运行

@PinkYuDeer
Copy link
Author

调查后发现,官方未给出java17+的覆盖安装包、仅有MMC安装包。但无法从零安装、无法进行后续尝试。可以尝试启动prism的安装好的版本但没有参数所以大概率失败。

@PinkYuDeer
Copy link
Author

尝试六:courseForge上下载的最新包、安装成功、删除参数运行

结果:开始下载外网资源

Image

即将尝试:科学上网

@PinkYuDeer
Copy link
Author

尝试七:courseForge上下载的最新包、安装成功、删除参数运行、打开加速器

结果:失败

日志:

minecraft-exported-crash-info-2025-01-23T23-11-51.zip

@PinkYuDeer
Copy link
Author

尝试八:继续尝试覆盖包版本,这次知道了对应版本是且仅有Java8。
即:先从HMCL自动下载安装1.7.10与forge,然后安装gtnh覆盖包,保留自动选择的Java(结果为zulu java8)、输入官方给出的Java8参数:
-d64 -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=80 -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20

结果:启动成功。

@PinkYuDeer
Copy link
Author

一些可能有用的信息:https://github.com/GTNewHorizons/lwjgl3ify

@burningtnt
Copy link
Member

感谢你为我们提供了如此多的尝试方案,让我们先聚焦第一种。

尝试一:直接导入下载好的java17+mmc包

我刚刚尝试定位了下这个问题,但发现日志信息不足。烦请从此处 https://github.com/burningtnt/HMCL/actions/runs/12960986834 下载 HMCL 快照版本,然后尝试导入下载好的 Java 17 + MMC 包。
按理说依然会失败,但请提供下启动器日志

@burningtnt burningtnt self-assigned this Jan 25, 2025
@PinkYuDeer
Copy link
Author

2025-01-25T17-17-41.log

@PinkYuDeer
Copy link
Author

(顺便一提我按导出日志按钮无效,这是关闭启动器后进入日志文件夹的日志

@burningtnt
Copy link
Member

burningtnt commented Jan 26, 2025

感谢反馈。问题出现在:

"natives": {
    "linux": "natives-linux",
    "linux-arm32": "natives-linux-arm32",
    "linux-arm64": "natives-linux-arm64",
    "osx": "natives-osx",
    "osx-arm64": "natives-osx-arm64",
    "windows": "natives-windows"
}

HMCL 试图反序列化该数据为 Map<OperatingSystem, String>,但 linux-arm32 显然不是一个操作系统。

burningtnt added a commit to burningtnt/HMCL that referenced this issue Jan 27, 2025
@burningtnt
Copy link
Member

该问题应该已经修好了,烦请 https://github.com/burningtnt/HMCL/actions/runs/12990062268 下载最新构建尝试下。

若无问题,麻烦踢我一下,我会将它合并入 PR Collection。您可向其他用户推送 PR Collection 而非上方 GitHub CI 构建的版本

@PinkYuDeer
Copy link
Author

好的,我现在尝试安装一下

@PinkYuDeer
Copy link
Author

PinkYuDeer commented Jan 28, 2025

安装成功了。但是没有读取到参数,且自动选择的java是java8。我手动切换到java21并添加gtnh官方团队给出的参数后,再次尝试启动、被提示不符合java版本。强制禁用jvm检查、禁用添加默认参数后,启动,这次尝试下载了一些文件。但是报错:

Image

hmcl-exported-logs-2025-01-28T13-01-04.log

我知道的该文件存在的一个地址:https://github.com/GTNewHorizons/lwjgl3ify/releases。
另一个本地文件地址:.minecraft/libraries/lwjgl3ify-2.1.5-forgePatches.jar

@PinkYuDeer
Copy link
Author

手动添加lwjgl3ify-2.1.5-forgePatches.jar于hmcl\.minecraft\libraries\com\github\GTNewHorizons\lwjgl3ify\2.1.5后,再次启动,崩溃退出。

minecraft-exported-crash-info-2025-01-28T13-03-38.zip

hmcl-exported-logs-2025-01-28T13-05-15.log

@burningtnt
Copy link
Member

burningtnt commented Jan 28, 2025

让我们读一读 HMCL 里的注释:

The official launcher will not parse the "arguments" property when it detects the presence of "mcArgs".
The "arguments" property with the "rule" is simply ignored here.

您的整合包中,net.minecraft.json 这一 json patch 包括了 minecraftArguments 项。因此 HMCL 为了兼容官方启动器的行为自动放弃了所有 JVM 参数。

这也太地狱了。为了兼容官方启动器那么 GTNH 就 100% 不可能正常运行(除非让官方移除 minecraftArguments),为了兼容 MultiMC 的表现那么官方启动器就会爆炸。容我想一想……

EDIT:
一个可能的解决方案是在安装 MultiMC 整合包时动态的将 minecraftArguments 映射为 arguments.game 下的列表……

@burningtnt burningtnt linked a pull request Jan 28, 2025 that will close this issue
@burningtnt
Copy link
Member

burningtnt commented Jan 28, 2025

OK 我已经做出了这个:#3547
现在,直接将整合包拖入 HMCL 窗口,安装后勾选“不检查 Java 兼容性”即可启动整合包(当然会找不到 java.util.pack200)

现在的问题:

  • 我似乎没有从 MultiMC 整合包中找到任何可以表明该整合包所需要的 Java 版本或相关信息。在这种情况下,您必须启用“不检查 Java 兼容性” 来使用 Java 17 ~ 21
  • GTNH 包需要 java.util.pack200,但该库已经在 Java 11 中弃用并在 Java 14 中彻底移除。MultiMC 是如何让 GTNH 在 Java 17 ~ 21 跑起来的?

@PinkYuDeer
Copy link
Author

net.minecraft.json中

 "compatibleJavaMajors": [
        11,
        17,
        19,
        20,
        21,
        22,
        23,
        24
    ],

就是提示Java版本的

@PinkYuDeer
Copy link
Author

PinkYuDeer commented Jan 28, 2025

以下是prism开头日志输出,看上去日志不太一样。

猜测:是否与gtnh没有使用 java.system.class.loader 而是 com.gtnewhorizons.retrofuturabootstrap.RfbSystemClassLoader 有关?

EDIT:

应该无关。使用了相同 JAVA 参数且日志开头表现相同。

以下是 prism 在 HMCL 报错的相同位置的日志输出,以及对应文件()

[17:13:12] [main/WARN] [LaunchWrapper/]: Duplicate tweaker class org.spongepowered.asm.launch.MixinTweaker
[17:13:12] [main/WARN] [LaunchWrapper/]: Duplicate tweaker class org.spongepowered.asm.launch.MixinTweaker
[17:13:12] [main/INFO] [LaunchWrapper/]: Constructing tweaker cpw.mods.fml.common.launcher.FMLDeobfTweaker
[17:13:12] [main/INFO] [LaunchWrapper/]: Installing tweaker cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:13:12] [main/INFO] [LaunchWrapper/]: Installing tweaker cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[17:13:12] [main/INFO] [LaunchWrapper/]: Installing tweaker cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[17:13:12] [main/DEBUG] [FML/]: Injecting coremod DepLoader {thaumcraft.codechicken.core.launch.DepLoader} class transformers
[17:13:12] [main/DEBUG] [FML/]: Injection complete
[17:13:12] [main/DEBUG] [FML/]: Running coremod plugin for DepLoader {thaumcraft.codechicken.core.launch.DepLoader}
[17:13:12] [main/DEBUG] [FML/]: Running coremod plugin DepLoader
[17:13:12] [main/DEBUG] [FML/]: Coremod plugin class DepLoader run successfully
[17:13:12] [main/INFO] [LaunchWrapper/]: Installing tweaker cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[17:13:12] [main/DEBUG] [FML/]: Injecting coremod FMLCorePlugin {cpw.mods.fml.relauncher.FMLCorePlugin} class transformers
[17:13:12] [main/TRACE] [FML/]: Registering transformer cpw.mods.fml.common.asm.transformers.MarkerTransformer
[17:13:12] [main/DEBUG] [LaunchWrapper/]: Registered class transformer cpw.mods.fml.common.asm.transformers.MarkerTransformer
[17:13:12] [main/TRACE] [FML/]: Registering transformer cpw.mods.fml.common.asm.transformers.SideTransformer
[17:13:12] [main/INFO] [coretweaks/]: Replacing cpw.mods.fml.common.asm.transformers.SideTransformer with 2 wrappers: [CachedTransformerWrapper, PatternConditionalTransformerWrapper][17:13:12] [main/DEBUG] [LaunchWrapper/]: Registered class transformer cpw.mods.fml.common.asm.transformers.SideTransformer
[17:13:12] [main/TRACE] [FML/]: Registering transformer cpw.mods.fml.common.asm.transformers.EventSubscriptionTransformer
[17:13:12] [main/DEBUG] [LaunchWrapper/]: Registered class transformer cpw.mods.fml.common.asm.transformers.EventSubscriptionTransformer
[17:13:12] [main/DEBUG] [FML/]: Injection complete
[17:13:12] [main/DEBUG] [FML/]: Running coremod plugin for FMLCorePlugin {cpw.mods.fml.relauncher.FMLCorePlugin}
[17:13:12] [main/DEBUG] [FML/]: Running coremod plugin FMLCorePlugin


以下开始HTML报错


[17:13:12] [main/DEBUG] [FML/]: Read 527 binary patches
[17:13:12] [main/INFO] [FML/]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc
[17:13:12] [main/ERROR] [FML/]: FML appears to be missing any signature data. This is not a good thing
[17:13:12] [main/DEBUG] [FML/]: Coremod plugin class FMLCorePlugin run successfully
[17:13:12] [main/INFO] [LaunchWrapper/]: Installing tweaker cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

fml-latest.log

@burningtnt
Copy link
Member

burningtnt commented Jan 28, 2025

OK,我已经解决了 MultiMC json-patch 背后的问题。你可以从 https://github.com/HMCL-dev/HMCL/actions/runs/13009329893 下载对应的 CI 构建版本尝试。

我还没解决 java 版本的问题,请暂时打开“不检查 Java 版本兼容性”

@PinkYuDeer
Copy link
Author

PinkYuDeer commented Jan 28, 2025

辛苦了Dev 新春快乐! 大年三十还在coding.jpg XD

best dev ever!

@burningtnt
Copy link
Member

好了问题修好了,可从 https://github.com/HMCL-dev/HMCL/actions/runs/13027654098?pr=3547 获取最新构建尝试。

若无问题,麻烦踢我一下,我会将它合并入 PR Collection。您可向其他用户推送 PR Collection 而非上方 GitHub CI 构建的版本

@PinkYuDeer
Copy link
Author

嗯嗯 这次安装成功了-但是启动的java和参数还需要手动填写。

这个版本就已经足够了,我会把安装过程写入 gtnh wiki 安装入门。GTNH 终于可以用上国产的启动器啦!🎉🎉🎉

关于参数的部分还会进行优化吗?因为prism可以自动读取参数无需额外步骤,prism还将是wiki第一顺位启动器。但如果hmcl可以读取参数,那么wiki将使用hmcl作为第一顺位启动器。

@zkitefly
Copy link
Member

image

好像自动选择 Java 有点问题?

@zkitefly
Copy link
Member

minecraft-exported-crash-info-2025-01-30T00-44-41.zip

启动失败了,是正常的吗

@PinkYuDeer
Copy link
Author

PinkYuDeer commented Jan 29, 2025

image

好像自动选择 Java 有点问题?

你需要手动选择一个java11或 17+的 自动选择的java版本还是zulu的java8

@PinkYuDeer
Copy link
Author

(zkitefly出现的这个问题正是我们尽可能为新手寻找一个配置步骤更少的启动器的原因

@zkitefly
Copy link
Member

minecraft-exported-crash-info-2025-01-30T00-44-41.zip

启动失败了,是正常的吗

好像这个保存是因为需要 java.util.jar.Pack200,但正如 burningtnt 所说高版本 Java 已经移除了这个包,那该怎么运行?

@zkitefly
Copy link
Member

image
好像自动选择 Java 有点问题?

你需要手动选择一个java11或 17+的 自动选择的java版本还是zulu的java8

主要是我用的最新的 PR 构建版本,读取 compatibleJavaMajors 也做了,怎么还会有自动选择 Java 的问题的(

@PinkYuDeer
Copy link
Author

似乎最新的读取 compatibleJavaMajors 使玩家不需要勾选禁用 jmv 兼容性检查,但 java 仍需要手动选择,这一步无论是mmc还是prism都无法跳过。(事实上 gtnh 团队对于没有进行额外兼容的启动器允许高版本java配置教程中,仍是以 java8 进行启动,进入 lwjgl3ify 页面再配置java17+启动。所以个人猜测,似乎启动器测试java8启动的兼容性问题时并不会出现致命性问题)

image
好像自动选择 Java 有点问题?

你需要手动选择一个java11或 17+的 自动选择的java版本还是zulu的java8

主要是我用的最新的 PR 构建版本,读取 compatibleJavaMajors 也做了,怎么还会有自动选择 Java 的问题的(

@burningtnt
Copy link
Member

minecraft-exported-crash-info-2025-01-30T00-44-41.zip
启动失败了,是正常的吗

好像这个保存是因为需要 java.util.jar.Pack200,但正如 burningtnt 所说高版本 Java 已经移除了这个包,那该怎么运行?

我俩真的在调试同一个包吗?你的整合包哈希值是否是 SHA256 FAA20E1642417C654CE0A266229E09B124235AE10475D767DF0F8FDFFE6542DB

@burningtnt
Copy link
Member

From #3551

@EnderOre 烦请重新安装下整合包。你的 mainClass 似乎也不对 :(

@zkitefly
Copy link
Member

zkitefly commented Jan 30, 2025

minecraft-exported-crash-info-2025-01-30T00-44-41.zip
启动失败了,是正常的吗

好像这个保存是因为需要 java.util.jar.Pack200,但正如 burningtnt 所说高版本 Java 已经移除了这个包,那该怎么运行?

我俩真的在调试同一个包吗?你的整合包哈希值是否是 SHA256 FAA20E1642417C654CE0A266229E09B124235AE10475D767DF0F8FDFFE6542DB

我使用的是 https://downloads.gtnewhorizons.com/Multi_mc_downloads/GT_New_Horizons_2.5.0_Java_17-21.zip ,且 sha256sum 得到的是

1da5c20705cd6fb2c969b71ab3d3c92a3a7868ee5fd3fc1e96b790621f68f1eb  GT_New_Horizons_2.5.0_Java_17-21.zip

使用 https://github.com/HMCL-dev/HMCL/actions/runs/13027654098 安装测试

在云电脑测试(这个应该没啥影响吧)

@zkitefly
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants