User Tools

Site Tools


mod_development:decompiling

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mod_development:decompiling [2020/02/13 21:31] – [MCP] Copied some relevant info from Logan's NFC decompile guide rekmod_development:decompiling [2023/03/22 19:13] (current) – [Requirements] zero
Line 5: Line 5:
 ====== Requirements ====== ====== Requirements ======
  
-  * JDK (Java Development Kit). [[https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html|Version 8]] is recommended.+  * JDK (Java Development Kit). [[https://www.azul.com/downloads/?version=java-8-lts&package=jdk-fx#zulu|Version 8]] is recommended.
 One of: One of:
-  * [[https://github.com/ModificationStation/1.7.3-LTS|LTS]] (MCP with Long Term Service). Recommended.+  * [[https://github.com/MCPHackers/RetroMCP-Java|RetroMCP-Java]] (MCP remade in Java with many more versions). Recommended. 
 +  * [[https://github.com/ModificationStation/1.7.3-LTS|LTS]] (MCP with Long Term Service).
   * [[https://minecraft.gamepedia.com/Programs_and_editors/Mod_Coder_Pack#Downloads|MCP]] (Minecraft Coder Pack) Use this if LTS doesn't support the version you are using or doesn't work for some other reason.    * [[https://minecraft.gamepedia.com/Programs_and_editors/Mod_Coder_Pack#Downloads|MCP]] (Minecraft Coder Pack) Use this if LTS doesn't support the version you are using or doesn't work for some other reason. 
  
 ====== Instructions ====== ====== Instructions ======
 After installing JDK, follow the instructions below depending on your choice of coder pack. After installing JDK, follow the instructions below depending on your choice of coder pack.
 +
 +===== RetroMCP-Java =====
 +  - Download the latest release from Github Releases.
 +  - To launch with the GUI, simply click on the JAR file twice.
 +  - To launch with the CLI, use: <code bash>java -jar "RetroMCP-Java-all.jar"</code>
 +  - To launch the GUI from a CLI, type the following to launch the GUI: <code bash>java -cp "RetroMCP-Java-all.jar" org.mcphackers.mcp.main.MainGUI</code>
 +  - After opening RetroMCP-Java, use the version dropdown to select a version or use the command: <code bash>setup [version]</code>
 +  - (Optional) Apply extra mods and APIs to ''%%jars/minecraft.jar%%''
 +  - Press the decompile button or type: <code bash>decompile</code>
  
 ===== LTS ===== ===== LTS =====
 +  - Download LTS by following the link above and clicking the green button named 'Clone or download', then 'Download ZIP'.
   - Export your LTS-master.zip to somewhere sensible (this will contain all your development files).   - Export your LTS-master.zip to somewhere sensible (this will contain all your development files).
   - In the newly exported folder, run setup.bat or setup.sh depending on your OS (Use .bat on Windows).   - In the newly exported folder, run setup.bat or setup.sh depending on your OS (Use .bat on Windows).
Line 25: Line 36:
   - Download the appropriate version of MCP for your Minecraft version via the link above.   - Download the appropriate version of MCP for your Minecraft version via the link above.
   - Export the zip to somewhere sensible (this will contain all your development files).   - Export the zip to somewhere sensible (this will contain all your development files).
-  - In the newly exported folder, insert minecraft_server.jar and the bin folder from your .minecraft into the folder named '/jars' You'll need to provide your own bin folder with the jinput, lwjgl, lwjgl_util, and natives folder in it, as we cannot redistribute these. These files can be obtained by running the legacy Minecraft launcher with a jar for the correct version. If you only wish to decompile the client, the server jar is not required.+  - In the newly exported folder, insert minecraft_server.jar and the bin folder from your .minecraft into the folder named '/jars' You'll need to provide your own bin folder with the jinput, lwjgl, lwjgl_util, and natives folder in it, as we cannot redistribute these. These files can be obtained by running the legacy Minecraft launcher with a jar for the correct version. If you only wish to decompile the client, the server jar is not required. Alternatively you can use setup.bat/sh in LTS to obtain these files and copy them over to your MCP folder.
   - Open /runtime/decompile.py with a text editor of your choice and remove line 15: ''commands.checkupdates()''   - Open /runtime/decompile.py with a text editor of your choice and remove line 15: ''commands.checkupdates()''
   - (Optional) If decompiling a mod, apply it to the relevant jar in the /jars folder.   - (Optional) If decompiling a mod, apply it to the relevant jar in the /jars folder.
   - Run the decompile.bat/sh file that has generated.   - Run the decompile.bat/sh file that has generated.
  
mod_development/decompiling.1581629501.txt.gz · Last modified: 2020/02/13 21:31 by rek

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki