Nilmod 使旧版 Minecraft(1.3.2 至 1.7.10)中的 Forge 能够正确加载使用 Java 8 编译的模组。
当前修复内容
- 更新所有内容以使用
ASM5API - 允许在 MCPC+ 中使用 Java 8
- 排除加载某些 Java 9+ 类文件(修复崩溃和错误)
- 更新至 ASM 5.2(从 4.0 升级;提供对 Java 8 的正确支持)
- 修补已知模组以支持 ASM 5
- 添加自有 API,用于从转换器和类加载器中排除类
- 添加 Gson 作为附加库(不会造成任何负面影响,但对于一些旧版模组开发者来说,将其作为内置依赖项使用可能会很方便)
- 从活跃工作的镜像站下载库和依赖项
- 增加硬编码的下载限制
- 修复其他一些可能由未知/无效类文件引起的崩溃
在 Minecraft 1.6+ 中安装
在 Minecraft 1.6 中,随着新启动器的推出,库管理方式发生了变化。因此,LegacyForgeJ8 不能简单地替换运行时中的库。它需要你的帮助。旧版本的 Minecraft 不需要这种特殊处理!
为此,请仔细阅读以下额外的设置说明。根据你使用的 Minecraft 启动器(或者是否想在服务器上使用该模组),说明会有所不同。我强烈推荐使用 Prism Launcher,因为它比笨重的原版启动器容易得多。
Prism 和其他 MultiMC 类启动器
- 选择你的 Minecraft 实例。
- 点击右侧边栏中的“Edit”(编辑)。应该会出现一个窗口。
- 点击左侧边栏中的“Version”(版本)。
- 在列表中选中“Forge”,然后点击右侧边栏中的“Customize”(自定义),接着点击“Edit”(编辑)。应该会有一个编辑器打开。
- 搜索类似
"name": "org.ow2.asm:asm-all:4.1"的一行。 - 将
4.1替换为5.2。如果已经是某个以5开头的版本(例如5.0.3),则无需替换。 - 现在你可以关闭编辑器并启动 Minecraft 实例。
原版启动器
- 至少运行一次你要安装 LegacyForgeJ8 的版本,并在继续此处操作之前安装 NilLoader、Forge 以及任何其他前置条件。
- 前往你的
.minecraft文件夹。由于找到它的方法有很多,请自行搜索如何找到它。 - 在
.minecraft文件夹中,进入versions文件夹。安装 Forge 后,你应该会看到一个类似1.6.4-Forge9.11.1.1345的文件夹。进入该文件夹。 - 你会看到两个文件。其中一个文件的扩展名为
.json。用编辑器打开它。 - 搜索类似
"name": "org.ow2.asm:asm-all:4.1"的一行。 - 将
4.1(或类似版本)替换为5.2。 - 现在你可以关闭编辑器。如果你的 Minecraft 启动器仍然打开,你需要关闭它并重新打开。
- 在你的
.minecraft文件夹中,导航到libraries/org/ow2/asm/asm-all并在其中创建一个名为5.2的文件夹。 - 下载
asm-all-5.2.jar并将其放入此文件夹。 - 现在你可以启动 Minecraft 实例。
服务器
你需要找到版本 json 文件。很可能它位于 Forge 服务器 jar 文件内。你可以使用任何可以打开 zip 文件的程序(如 WinRAR 或 PeaZip)打开它,并在其中搜索版本 json 文件。一旦找到它,你就可以按照原版启动器说明的第 5 步进行操作。除了 .minecraft 目录外,请在你的服务器目录中进行查找。
如果你使用的是 KCauldron、Cauldron、MCPC+ 或类似的 “SpigotForge” 变体,版本 json 文件可能在 libraries 文件夹、bin 文件夹或其他地方的某个 jar 文件中隐藏得更深。根据变体的不同,你可能还需要将 asm-all-5.2.jar 文件放置在其他位置。
常见问题解答
Q: 什么是 Nilmod?我怎么安装这个?AAAAAAAAAA??!?!?!!
A: 首先:你可以将 NilLoader 与任何其他加载器(包括 Forge、ModLoader 等)一起安装!Nilmod 是由 NilLoader 加载的模组。你应该先 安装 NilLoader,然后将 LegacyForgeJ8 放入通常的 mods 文件夹或专用的 nilmods 文件夹(推荐!)中,这两个文件夹都在你的 Minecraft 实例里。如果你打算在 Minecraft 1.6 或更高版本中使用 LegacyForgeJ8,请同时遵循上述额外的设置说明。
Q: 有服务器版本吗?
A: 模组文件 应该 可以在客户端和服务端正常工作。
Q: 这个模组具体修复了什么?
A: 如果你需要问这个问题,那么这个 Nilmod 对你来说可能没有任何用处。简而言之,ASM 加载使用 Java 8 编译的模组需要额外的设置步骤。Forge 没有遵循这些额外的设置步骤,因此它只能加载使用 Java ≤ 7 编译的模组。这个 Nilmod 让 Forge 应用这些额外的设置步骤,从而允许 Forge 加载此类模组。
Q: 有没有计划支持 [其他任何 Minecraft 版本]?
A: 这个模组也可能适用于其他 MC 版本。如果不适用:请告诉我,我会尝试提供一个适当的移植版本!
Nilmod enabling Forge on Legacy Minecraft (1.3.2 up to 1.7.10) to load mods compiled with Java 8 properly.
Current fixes
- Update everything to use
ASM5API - Allow Java 8 in MCPC+
- Exclude certain Java 9+ class files from loading (fixes crashes and errors)
- Update to ASM 5.2 (from 4.0; provides proper Java 8 support)
- Patch known mods to support ASM 5
- Add own API for excluding classes from transformer and class loader
- Add Gson as an additional library (does not make anything worse, but may be nice to use for some legacy modders as a dependency that is now built-in)
- Download libraries and dependencies from an actively working mirror
- Increase hardcoded download limits
- Fix a few other probable crashes with unknown/invalid class files
Installing in Minecraft 1.6+
In Minecraft 1.6, library management has changed with the new launcher. For this reason, LegacyForgeJ8 cannot just replace the libraries in runtime. It needs your help. Older versions of Minecraft do not need this special treatment!
For this, read the following additional setup instructions carefully. Depending on which launcher you use for Minecraft (or whether you want to use the mod on a server), the instructions will differ a bit. I highly recommend Prism Launcher since it is much easier to deal with than the clunky Vanilla Launcher.
Prism and other MultiMC-like launchers
- Select your Minecraft instance.
- Click on "Edit" in the sidebar on the right. A window should appear.
- Click on "Version" in the sidebar on the left.
- In the list, select "Forge" and click on "Customize", then "Edit" in the sidebar on the right. An editor should open.
- Search for a line similar to
"name": "org.ow2.asm:asm-all:4.1". - Replace the
4.1by5.2. No need to replace it, if it is already some version starting with a5such as5.0.3. - You can now close the editor and launch the Minecraft instance.
Vanilla launcher
- Play the release you want to install LegacyForgeJ8 into at least once and install NilLoader, Forge and any other prerequisites BEFORE continuing here.
- Go to your
.minecraftfolder. Since there are so many ways to find it, please search for ways to find it yourself. - In the
.minecraftfolder, go into theversionsfolder. After installing Forge, you should have a folder such as1.6.4-Forge9.11.1.1345in there. Go into that one. - You should see two files. One of them has the file extension
.json. Open that one in an editor. - Search for a line similar to
"name": "org.ow2.asm:asm-all:4.1". - Replace the
4.1(or similar version) by5.2. - You can now close the editor. If your Minecraft launcher is still open, you need to close it as well and re-open it.
- In your
.minecraftfolder, navigate tolibraries/org/ow2/asm/asm-alland create a folder called5.2there. - Download
asm-all-5.2.jarand put it into this folder. - You can now launch the Minecraft instance.
Servers
You need to find the version json file. Most likely, it is located within the Forge server jar file. You can open it using any program that can open zip files (such as WinRAR or PeaZip) and search for the version json file in there. Once you found it, you can follow the instructions for the Vanilla launcher from step 5. Instead of the .minecraft directory, look in your server directory.
If you are using KCauldron, Cauldron, MCPC+ or similar "SpigotForge" variants, the version json file may be even more hidden in some jar file within the libraries folder, bin folder or somewhere different. Depending on the variant, you need to put the asm-all-5.2.jar file also somewhere different.
FAQ
Q: What the hell is a Nilmod? How do I install this? AAAAAAAAAAA??!?!?!!
A: First of all: you can install NilLoader alongside any other loader (including Forge, ModLoader etc.)! A Nilmod is a mod that is loaded by NilLoader. You should install NilLoader first and then put LegacyForgeJ8 in either the usual mods folder or in the dedicated nilmods folder (recommended!) in your Minecraft instance. If you intend to use LegacyForgeJ8 for Minecraft 1.6 or newer, follow the additional setup instructions above as well.
Q: Is there a server version of this?
A: The mod file should work just fine on both client and server.
Q: What does this mod fix exactly?
A: If you need to ask this question, this Nilmod will probably not do anything useful for you. To summarise, there is additional setup necessary for ASM to load mods compiled with Java 8. Forge did not follow these additional setup steps and hence, it can only load mods compiled with Java ≤ 7. This Nilmod lets Forge apply these additional setup steps and allows Forge to load such mods.
Q: Are there any plans for [any other Minecraft version]?
A: This mod may work just fine for other MC versions as well. If not: let me know and I will try to provide a proper port!
下载 LegacyForgeJ8
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LegacyForgeJ8
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LegacyForgeJ8
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LegacyForgeJ8
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LegacyForgeJ8
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LegacyForgeJ8
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LegacyForgeJ8
下载 LegacyForgeJ8
下载 LegacyForgeJ8
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧