Guides
Modding Whiskerwood
Set up the Whiskerwood mod kit, write a small mod in Loom, and load it in the game. The mod adds up the numbers to 100 and writes the total to the game’s mod log.
- Game
- Whiskerwood
- Mod kit
- Whiskerwood-Project
- Platform
- Windows · Linux
How the pieces fit
Section titled “How the pieces fit”You write the mod inside the mod kit, an Unreal project laid out like the game. The kit turns it into a package that Whiskerwood loads from its mods folder.
- Mod kit · Unreal editor
- Your mod
Mods/PK_LoomSum/BP_MapLoad.lm - Loom buildsThe Blueprint, beside the file, on save
- Cook & InstallPacks the folder into a .pak
- Your mod
- Whiskerwood
- Mods folder.pak and .uplugin, side by side
- Colony loadsThe mod runs and writes to the mod log
-
Set up the mod kit
Section titled “Set up the mod kit”- Install Whiskerwood.
- Set up the mod kit as its README describes, including the custom build of Unreal it needs.
- Add the Whiskerwood mod kit build of Loom to the kit’s
Pluginsfolder, as in Installing Loom. On Linux, use the Source build. - Open the kit in the editor. Under Project Settings › Plugins › Loom, add
/Game/Mods/to Instanced Class Paths.
Why the last step: the kit’s copies of the game’s Blueprints are stand-ins, and the real ones only exist inside the game. So a mod can create components and widgets only from its own Blueprints and from native (C++) classes. Listing
/Game/Mods/tells Loom which Blueprints are the mod’s own. -
Create the mod
Section titled “Create the mod”On the kit’s toolbar, choose Mod Tools › New Mod….
Mod ToolsOn the kit's toolbar Launch Whiskerwood (steam only)Open Installed Mods FolderNew Mod...Plugin Settings...In the dialog it opens:
- Mod name:
PK_LoomSum, so the code below works as is. It becomes the mod’s folder. The dialog asks for letters and digits only, but the underscore is fine. - Display name and Description: what players see. Write what you like.
- The rest can stay as they are.
This makes the folder
Content/Mods/PK_LoomSum/. AddBP_MapLoad.lmto it: the Actor where a mod starts, which runs when a colony loads. - Mod name:
-
Write it
Section titled “Write it”Put this in
BP_MapLoad.lmand save. Loom builds the Blueprint beside it.Content/Mods/PK_LoomSum/BP_MapLoad.lm blueprint BP_MapLoad : Actor at /Game/Mods/PK_LoomSum/BP_MapLoadvar Total: int = 0fn Sum(N: int) {Total = 0let I: int = 0while I <= N {Total = Total + II = I + 1}}fn Status() -> string {return "PK_LoomSum: Total " + string(Total)}on ReceiveBeginPlay {Sum(100)ModAPI.GetModAPI().LogMessage(Status(), false)}on ReceiveBeginPlayruns when the colony loads.ModAPI.GetModAPI().LogMessagewrites a line to the mod log. Starting each line with the mod’s name makes it easy to find. -
Install and run it
Section titled “Install and run it”-
In the kit’s Content Browser, right-click the
PK_LoomSumfolder and choose Cook & Install.PK_LoomSumThe folder's right-click menu in the Content Browser Whiskerwood Mod ToolsInstallCook & InstallUninstallUpdate Mod Version... -
Start Whiskerwood and load a colony.
-
Open the mod log.
Mod log %LOCALAPPDATA%\Whiskerwood\Saved\Logs\modlog.txt
~/.local/share/Steam/steamapps/compatdata/2489330/pfx/drive_c/users/steamuser/AppData/Local/Whiskerwood/Saved/Logs/modlog.txt
The last line should read:
PK_LoomSum: Total 5050On Linux the game runs through Steam’s Proton, so its folders sit inside Steam’s compatibility data. The path assumes Steam’s default library.
-
Sharing a mod
Section titled “Sharing a mod”Cook & Install puts the mod in the game’s mods folder, as a folder holding PK_LoomSum.pak and
PK_LoomSum.uplugin. To share it, zip that folder. Players unzip it into the same place.
%LOCALAPPDATA%\Whiskerwood\Saved\mods\PK_LoomSum\
~/.local/share/Steam/steamapps/compatdata/2489330/pfx/drive_c/users/steamuser/AppData/Local/Whiskerwood/Saved/mods/PK_LoomSum/
Use your own prefix
Section titled “Use your own prefix”Every mod’s folder sits in /Game/Mods/, beside every other mod a player has installed, so its
name has to be unique. Start it with a short prefix of your own, such as your initials, and use
the same one for all your mods. PK_ is the prefix of Loom’s demos. In your own mods, use yours,
in the folder’s name and in the paths in your Loom files.