source-code

EaglercraftX WASM-GC Runtime

This folder contains the Gradle project for compiling the EaglercraftX 1.8 client to WASM. This requires a special fork of TeaVM that has been modified for Eaglercraft. The settings.gradle and build.gradle are set up to download the binaries automatically but if you would like to build the TeaVM fork yourself you can use the TeaVM fork’s publishToMavenLocal gradle task and replace the URL maven repository declarations in the gradle build scripts with mavenLocal() instead.

TeaVM Fork: https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm/tree/eagler-r1

To compile the client:

  1. Run CompileEPK to compile the assets.epk file
  2. Run CompileWASM to compile the classes.wasm file
  3. Run CompileEagRuntimeJS to compile the eagruntime.js file
  4. Run MakeWASMClientBundle to bundle the client into an EPW file

The final assets.epw and offline download will be in the “javascript_dist” folder

Optional Steps:

Potential issues when porting: