修复提及 Lightspeed Agent 的启动错误
如果 Java 停止运行并显示 Error opening zip file or JAR manifest missing 或 agent library failed Agent_OnLoad,且名称包含 lightspeed-bootstrap-agent-*.jar,你可以从启动器中修复它。
- 打开实例的 JVM 参数。PCL2:版本设置 → 设置 → 高级启动选项。Prism(Windows、Linux、macOS):编辑实例 → 设置 → Java。如果实例继承全局设置,请同时检查全局 Java 设置。
- 删除指向
lightspeed-bootstrap-agent-*.jar 的整个 -javaagent: 参数,包括周围的引号。移除其 -Dlightspeed.agent.owner=… 和 -Dlightspeed.bootstrapCacheDir=… 条目。保留内存设置和其他模组的 agents。
- 清除指向
pack-compiler.cmd 或 pack-compiler.sh 的 Lightspeed 预启动命令。在 Prism 中,这位于“设置 → 自定义命令”。在 PCL2 中,它位于“高级启动选项”。
- 更新 LightSpeedRe。如果你停留在旧版本构建上,请在实例的
config/lightspeed-common.toml 中设置 installBootstrapAgent = false。完全退出并重新打开启动器后再启动游戏。
启动报错修复(简体中文)
- 在 PCL2 的「版本设置 → 高级启动选项」或 Prism 的「编辑实例 → 设置 → Java」打开 JVM 参数。如果实例沿用全局参数,也检查启动器的全局 Java 设置。
- 删除指向
lightspeed-bootstrap-agent-*.jar 的整条 -javaagent: 参数和它两边的引号,并移除这一组的 -Dlightspeed.agent.owner=…、-Dlightspeed.bootstrapCacheDir=…。保留内存参数和其他模组的 Agent。
- 若启动前命令引用 Lightspeed 的
pack-compiler.cmd 或 pack-compiler.sh,只清空该命令。升级模组,或在旧版的 config/lightspeed-common.toml 中设置 installBootstrapAgent = false,然后完全关闭并重新打开启动器。
整合包作者应在分发前清理导出配置里的这些本机设置。
完整指南与修复脚本 · 完整中文教程与修复脚本
这是 Lightspeed 模组的高版本(1.20.1+)移植版。
它移除了已经在 Minecraft 原版 1.20.1 中实现的模型烘焙优化,仅保留资源包缓存功能,从而加快启动速度。
(目前仅计划支持 Forge 1.20.1 和 NeoForge 1.21.1 的移植。)
自 1.2.0 版本起,此模组引入了高并发加载以提高启动速度。如果您在使用此模组时遇到任何问题,请尝试在配置文件中禁用相关选项。
项目起源与 AI 使用
正如我在回复 Alextwicle 时所说,我想明确说明我在该项目中如何使用 AI。Issue #34
LightSpeedRe 基于 CCr4ft3r 的 LightSpeed。在 1.2.0 版本之前,我手动移植并维护该项目,使其功能和代码与上游保持一致。
我从 1.2.0 版本开始在开发中使用 AI 工具,并为 2.0.0 版本彻底重构了该项目。我将在未来的开发中继续使用 AI 工具。如果您非常关注 AI 的使用,或者更倾向于使用未借助 AI 开发的软件,您可能需要使用 1.2.0 之前的版本,或者选择其他项目。
本项目保留了原始的提交历史、作者署名和适用的许可证。感谢 CCr4ft3r 创建 LightSpeed 并为本项目奠定基础。
Fix a startup error mentioning the Lightspeed Agent
If Java stops with Error opening zip file or JAR manifest missing or agent library failed Agent_OnLoad and names lightspeed-bootstrap-agent-*.jar, you can fix it from the launcher.
- Open the instance’s JVM arguments. PCL2: Version Settings → Settings → Advanced Launch Options. Prism (Windows, Linux, macOS): Edit Instance → Settings → Java. Check global Java settings too if the instance inherits them.
- Delete the whole
-javaagent: argument that points to lightspeed-bootstrap-agent-*.jar, including surrounding quotes. Remove its -Dlightspeed.agent.owner=… and -Dlightspeed.bootstrapCacheDir=… entries. Keep memory settings and other mods’ agents.
- Clear a Lightspeed pre-launch command that points to
pack-compiler.cmd or pack-compiler.sh. In Prism, this is under Settings → Custom Commands. In PCL2, it is under Advanced Launch Options.
- Update LightSpeedRe. If you are staying on an older build, set
installBootstrapAgent = false in the instance’s config/lightspeed-common.toml. Fully quit and reopen the launcher before launching again.
启动报错修复(简体中文)
- 在 PCL2 的「版本设置 → 高级启动选项」或 Prism 的「编辑实例 → 设置 → Java」打开 JVM 参数。如果实例沿用全局参数,也检查启动器的全局 Java 设置。
- 删除指向
lightspeed-bootstrap-agent-*.jar 的整条 -javaagent: 参数和它两边的引号,并移除这一组的 -Dlightspeed.agent.owner=…、-Dlightspeed.bootstrapCacheDir=…。保留内存参数和其他模组的 Agent。
- 若启动前命令引用 Lightspeed 的
pack-compiler.cmd 或 pack-compiler.sh,只清空该命令。升级模组,或在旧版的 config/lightspeed-common.toml 中设置 installBootstrapAgent = false,然后完全关闭并重新打开启动器。
Modpack authors should clear these local settings from exported profiles. 整合包作者应在分发前清理导出配置里的这些本机设置。
Full guide and repair script · 完整中文教程与修复脚本
This is a high-version (1.20.1+) port of the Lightspeed mod.
It removes the model-baking optimizations that were already implemented in vanilla Minecraft 1.20.1, keeping only the resource-pack cache feature, which speeds up launch times.
(Currently, only ports for Forge 1.20.1 and NeoForge 1.21.1 are planned.)
Since version 1.2.0+, this mod introduces high-concurrency loading to improve startup speed. If you encounter any issues while using this mod, please try disabling the related option in the configuration file.
Project Origins and AI Use
As I said in my reply to Alextwicle, I want to be explicit about how I use AI in this project. Issue #34
LightSpeedRe is based on CCr4ft3r’s LightSpeed. Before version 1.2.0, I ported and maintained the project by hand, keeping its features and code in line with upstream.
I started using AI tools in development with version 1.2.0 and completely refactored the project for version 2.0.0. I’ll continue using AI tools in future development. If AI use is a major concern for you, or if you prefer to use only software developed without AI, you may want to use a version earlier than 1.2.0 or choose another project.
This project retains the original commit history, author credits, and applicable licenses. Thanks to CCr4ft3r for creating LightSpeed and laying the groundwork for this project.
评论 0
登录后参与评分
还没有评论,来抢沙发吧