Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorial:debug_1.7.10 [2020/12/31 04:07]
kristopher38 [IDEA instructions] Added a small missing step which prevented the launcher from running
tutorial:debug_1.7.10 [2020/12/31 19:25]
kristopher38 [IDEA instructions] Added a note regarding compiling to a release .jar
Line 66: Line 66:
   - Open Run->​Edit configurations,​ select Application on the left pane, and set `Use classpath of module` (left Alt+O) to `OpenComputers.main` for both `Minecraft Client` and `Minecraft Server`. This fixes the error `Error: Could not find or load main class GradleStart` if you forgot to do this step.   - Open Run->​Edit configurations,​ select Application on the left pane, and set `Use classpath of module` (left Alt+O) to `OpenComputers.main` for both `Minecraft Client` and `Minecraft Server`. This fixes the error `Error: Could not find or load main class GradleStart` if you forgot to do this step.
   - Build Project (Shift F9)   - Build Project (Shift F9)
 +  - Make symlink called `assets` to `build\resources\main\assets` in folders `build\classes\java\main` and `build\classes\scala\main`. Otherwise textures and other assets won't work.
   - Select "​Minecraft Client"​ as the run target, and run!   - Select "​Minecraft Client"​ as the run target, and run!
   ​   ​
 +  Keep in mind that if you want to build a .jar that can be used outside of the development environment,​ you need to run `./gradlew clean` and then `./gradlew assemble` to produce .jar with obfuscated names so that it works with normal minecraft.