Source code and build resources for JourneyMap WebMap (http://journeymap.info)
JourenyMap Client WebMap is an addon mod for JourneyMap that allows you to view your map in a local web browser. Main uses are displaying your map on another monitor, on a tablet, or any device on your local network.
It is not a server sided map. It will do nothing when added to the server.
The project WebMap Client contains the javascript resources used by this project.
- IntelliJ IDEA
- OpenJDK 1.17
Check out a branch of the JourneyMap WebMap GIT repo to a directory called journeymap_webmap. For example:
git clone [email protected]:TeamJM/journeymap_webmap.git
cd journeymap_webmap-client
git fetch && git checkout (branchname)
JourneyMap WebMap uses the MultiLoader Template for combining sources of Fabric and Forge.
- If your default JVM/JDK is not Java 17 you will encounter an error when opening the project. This error is fixed by going to
File > Settings > Build, Execution, Deployment > Build Tools > Gradle > Gradle JVM
and changing the value to a valid Java 17 JVM. You will also need to set the Project SDK to Java 17. This can be done by going toFile > Project Structure > Project SDK
. Once both have been set open the Gradle tab in IDEA and click the refresh button to reload the project. - Open the Gradle tab in IDEA if it has not already been opened. Navigate to
Your Project > Common > Tasks > vanilla gradle > decompile
. Run this task to decompile Minecraft. - Open the Gradle tab in IDEA if it has not already been opened. Navigate to
Your Project > Forge > Tasks > forgegradle runs > genIntellijRuns
. Run this task to set up run configurations for Forge. - Open your Run/Debug Configurations. Under the Application category there should now be options to run Forge and Fabric projects. Select one of the client options and try to run it.
- Assuming you were able to run the game in step 7 your workspace should now be set up.
To enable HotSwap:
- Go to File > Settings... > Build, Execution, Deployment > Build Tools > Gradle
- For the journeymap_webmap project, change "Build and run using" to "IntelliJ IDEA"
If builds begin failing with the error "java.lang.UnsupportedClassVersionError: org/intellij/erlang/jps/model/JpsErlangModelSerializerExtension", you'll need to use a newer project JDK or simply disable the Erlang plugin:
- Go to File > Settings... > Plugins
- Select the Erlang plugin and uncheck it to disable.
- Press Apply and follow the prompts to restart IntelliJ
- Update
project.properties
version info - Build using Gradle panel > journeymap_webmap > Tasks > build > build
- The end result will be in
build/libs/journeymap_webmap*.jar