Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 2.66 KB

build_instructions.md

File metadata and controls

68 lines (46 loc) · 2.66 KB

GregTech Intergalactical

Build Instructions

  • IntelliJ Idea (2020.3!) or Visual Studio Code/Neovim
  • GregTech and AntimatterAPI
   git clone --recurse-submodules https://github.com/GregTech-Intergalactical/GregTech
  • For Linux run
  ./gradlew genIntellijRuns
  • For Windows run
  gradlew genIntellijRuns
  • Open folder in your editor, import as a gradle project in Idea.

  • Run runClient configuration to run GTI. You might have to set classpath to GregTech.main

Enabling hotswap

  • JDTLS-based editors work out of the box.
  • For Intellij, follow http://hotswapagent.org/ instructions to install DCEVM and hotswap agent. Set build type in Build, Execution and Deployment -> Gradle to IDEA.
  • It is recommended to use DCEVM for hotswapping. For Linux (Arch) installing jdk8-openjdk-dcevm package and setting it as JDK is enough. It allows immediate hotswapping. Otherwise hotswapping code can cause issues.
  • Hotswapping Mixin code in Antimatter is not supported.

Issues

  • If Build, Execution and Deployment -> Gradle is set to Idea instead of Gradle you will have to uncomment remap != false in all Antimatter mixins for the project to compile. By searching for "/*remap = false,*/" and replacing with "remap = false," it should fix all Mixin issues.
  • Should Idea tell you that local packages are missing, press File -> Invalidate caches and restart.

Both

  • It is recommended to use DCEVM for hotswapping. For Linux (Arch) installing jdk8-openjdk-dcevm package and setting it as JDK is enough. It allows immediate hotswapping. Otherwise hotswapping code can cause issues.
  • Hotswapping Mixin code in Antimatter is not supported.