tutorial:updating_yarn
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:updating_yarn [2019/09/01 18:23] – modmuss50 | tutorial:updating_yarn [2022/08/02 10:03] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Updating Yarn to a new Minecraft version ====== | + | ====== Updating Yarn and intermediary |
- | Accurate as of 1.14.3-pre2 / 7th June 2019. | + | Last updated 2020-05-20 by 2Xsaiko. |
===== Definitions/ | ===== Definitions/ | ||
Line 9: | Line 9: | ||
===== Requirements ===== | ===== Requirements ===== | ||
- | * At least **eight gigabytes** of free RAM. (I am not joking. Matcher is not optimized for RAM usage at all. Swap memory might be enough.) | + | * At least **six gigabytes** of free RAM. (I am not joking. Matcher is not optimized for RAM usage at all. Swap memory might be enough.) (6GB actually works on liach' |
* Note that Matcher doesn' | * Note that Matcher doesn' | ||
- | * A cloned repository of Yarn, on the **A** version. | + | * A cloned repository of [[https:// |
- | * A cloned repository of the Intermediary mappings. | + | * A cloned repository of the [[https:// |
- | * A compiled copy of [[https:// | + | * A compiled copy of Matcher. (Only runs on java 11 or later!) |
+ | * Consider using [[https:// | ||
* The Fabric fork differs solely in its inclusion of a Gradle build script for easy use - it generally tracks sfPlayer1' | * The Fabric fork differs solely in its inclusion of a Gradle build script for easy use - it generally tracks sfPlayer1' | ||
- | * A local installation of Gradle (preferably | + | * A local installation of Gradle (preferably |
- | * A compiled copy of Stitch. | + | * A compiled copy of [[https:// |
+ | * Allows for intermediary generation, the core of updating to a new Minecraft version. | ||
===== The Process ===== | ===== The Process ===== | ||
Line 22: | Line 25: | ||
==== Preparations ==== | ==== Preparations ==== | ||
- | - Clone the current Yarn version at **A**. | + | - Enter the current Yarn version at **A**. |
- | - Run '' | + | - Run '' |
- | - Export the mappings to the offical namespace '' | + | |
- Edit build.gradle to point to the **B** Minecraft version. | - Edit build.gradle to point to the **B** Minecraft version. | ||
- | - Run '' | + | - Run '' |
- Launch Matcher, with -Xmx6G at the very least and -Xmx8G recommended, | - Launch Matcher, with -Xmx6G at the very least and -Xmx8G recommended, | ||
- Create a new project and configure its **inputs** (the -merged JARs) and **class paths** (the libraries). | - Create a new project and configure its **inputs** (the -merged JARs) and **class paths** (the libraries). | ||
* The shared class path can be used for libraries whose versions have not changed between **A** and **B**. | * The shared class path can be used for libraries whose versions have not changed between **A** and **B**. | ||
- | - Wait. | + | - Wait for it to match. It takes quite a while. |
- In Matcher, '' | - In Matcher, '' | ||
- Run '' | - Run '' | ||
==== Matching ==== | ==== Matching ==== | ||
+ | |||
+ | === Notes === | ||
+ | You can use mojang' | ||
Matching is a process that cannot be easily described. Essentially, | Matching is a process that cannot be easily described. Essentially, | ||
Line 61: | Line 66: | ||
- Save the matches as '' | - Save the matches as '' | ||
- | - Run the following command: '' | + | - Run the following command |
* This might find duplicate mappings, when Mojang combines multiple old method calls into one method call. In this case, your best bet is to try to find the most " | * This might find duplicate mappings, when Mojang combines multiple old method calls into one method call. In this case, your best bet is to try to find the most " | ||
==== Updating Yarn ==== | ==== Updating Yarn ==== | ||
- | - Make sure Yarn has no important PRs dangling - it's somewhat annoying to deal with them later! | ||
- Open the Enigma mappings from '' | - Open the Enigma mappings from '' | ||
- Save the Enigma mappings **TO A NEW DIRECTORY**, | - Save the Enigma mappings **TO A NEW DIRECTORY**, |
tutorial/updating_yarn.1567362226.txt.gz · Last modified: 2019/09/01 18:23 by modmuss50