Wurm Unlimited modding API and implementation.
Manual installation is required currently, however, an automatic installer/updater is planned.
- Follow the steps below to generate patched
.javafiles in theoutdirectory. - Open
client.jarin the root of your Wurm installation and copy the contents ofoutinto it. - Open
wurmod.jarand copy thecomfolder into it. - Done.
For this you will need a Java compiler, Apache Ant, Procyon v0.5.36 and git.
- Decompile
client.jarand place the resulting directories intoPatches/client. - Execute
apply_patch.bat. This will generate patched.javafiles in theclient_patcheddirectory. - Make changes to the files, or add your own. Be sure to follow the patch style guide outlined below.
- Compile WurMod and place the resulting
wurmod.jarinto thePatchesdirectory. - Copy the
runtimedirectory from the root of your Wurm installation into thePatchesdirectory. - Once you are done, you can execute
antto build the patched class files into theoutdirectory. - Execute
make_patch.batto update theclient.patchfile, and commit.
If the patch generated by make_patch.bat is gigantic, check the comments in make_patch.bat.
In order to make it clear when looking at the patched code what parts have been updated, all added code should be surrounded by the comment // WurMod.
For example;
public SomeConstructor() {
// WurMod: Optional description of what we are doing.
this.field = someValue;
this.field.call();
// WurMod
}In cases where edits are made in the middle of an existing line, a single comment should be placed above the line with a description of what was changed.
For example;
this.field = new SomeClass();
// Could become...
// WurMod: Pass the value to the class
this.field = new SomeClass(ourValue);