This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorial:debug_1.7.10 [2017/11/10 20:29] payonel |
tutorial:debug_1.7.10 [2020/12/31 19:25] (current) kristopher38 [IDEA instructions] Added a note regarding compiling to a release .jar |
||
---|---|---|---|
Line 64: | Line 64: | ||
- Again, make sure you repeat this process for both `OpenComputers_api` as well as `OpenComputers_main`. | - Again, make sure you repeat this process for both `OpenComputers_api` as well as `OpenComputers_main`. | ||
- Close Project Structure window (press OK) | - Close Project Structure window (press OK) | ||
+ | - 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. | ||