How the modding runtime works
Think of modding as a chain: game installation, compatible API, required libraries, individual mods and initialization inside the game. Lumafly is the desktop manager, not the runtime itself. A mod can appear as installed in Lumafly even if it fails to load in the game. The API can work even when a particular mod fails. Some mods only have an observable effect in specific scenes, while libraries may have no independent gameplay effect at all.
The API is a community project, not a feature supplied by Team Cherry. Developers can consult the API reference for interfaces and examples. Players normally do not need to compile anything.
Enable the API with Lumafly
- Close Hollow Knight and back up your saves.
- Open Lumafly and confirm that it points to the game installation you actually launch. See Game Path.
- Check the installed game's full build number against the target of the API package and check the requirements of your intended mods.
- Allow the manager to obtain the API when required. Use its API control to enable the runtime if it is disabled. Read any error before retrying.
- Launch the same game installation and inspect the modding information on its opening screen. Do not load an important save simply to test startup.
- If the runtime starts, enable one compatible mod with a feature you can easily check in-game and any required libraries. See mod dependencies if it fails.
Switch between modded and vanilla
Lumafly documents a control named Toggle API for changing between the two modes. Close the game first and record your existing mod setup. Disable the API for a vanilla startup check, then enable it again when returning to the modded configuration. Check the result in the game rather than assuming that a change in the manager has affected an already running process.
Disabling the runtime does not make a modded save equivalent to an untouched save. Some mods store additional data or change progression. Keep a separate backup and test at the menu before opening a save. Offline management is useful for components already available locally, but it does not guarantee that missing packages can be downloaded or installed without a connection.
Check the exact game and API versions
The Lumafly application version, Hollow Knight build and Modding API version are different identifiers. A release title such as 1.5.78.11833-77 identifies a target game build and an API revision. This is an example of a published release identifier, not a promise that it is the newest or suitable for every installation. Consult the API release list and package manifest to check the relevant package. Windows, macOS and Linux packages are distinct; choose according to the actual game build rather than just the host operating system when using a compatibility layer.
An update to the game can change the assemblies on which the API relies. Even with a compatible API, individual mods may still need updates. Consult the compatibility guide and individual project requirements. Avoid mixing files from different API releases to make an unsupported combination appear to work.
Diagnose API errors
The API fails to download or install. Record the message and whether the failure concerns a connection, archive or file access. Check that the selected game directory exists and that the manager can write to the required files. Follow download diagnostics or invalid path checks. Do not obtain replacement assemblies from an unknown file-sharing site.
Installation succeeds, but no modding information appears. Confirm the enabled state and the actual executable being launched. Check whether a client repair or game update replaced patched files. Test startup with the compatible API and no optional mods, then inspect the runtime logs.
The game crashes before the menu. Preserve existing logs before launching repeatedly. After backing up saves, compare a vanilla startup with an API-only startup. If both fail, investigate the base game, client and environment. If only the API configuration fails, check the exact target build and platform. If the API starts but a mod fails, restore mods incrementally, respecting required libraries. A missing dependency is not necessarily an API installation fault.
A network error occurs when toggling the API. This symptom has been reported in the project’s issue tracker and can have several causes. Record the error, distinguish a missing download from a local toggle problem and check the relevant package source. Use offline mode only for operations supported by locally available files.
Read and preserve the mod log
The API documentation identifies ModLog.txt in the Hollow Knight save directory, with previous logs in Old ModLogs. These are separate from the game's installed Mods folder.
| Platform | Typical save directory |
|---|---|
| Windows | %APPDATA%\..\LocalLow\Team Cherry\Hollow Knight\ |
| macOS | ~/Library/Application Support/unity.Team Cherry.Hollow Knight/ |
| Linux | ~/.config/unity3d/Team Cherry/Hollow Knight/ |
A Proton installation may use a different save location. Copy the relevant log before another launch. Look for the first meaningful failure and its surrounding context rather than treating every subsequent exception as a separate cause. If the API never initializes, the game player log may contain useful evidence even if there is no new mod log. Absence of a log alone is not proof of a specific failure.
When reporting a problem, include the full game build, API revision if known, Lumafly version, platform, active mods, exact error and reproduction steps. Remove personal paths and other private information from shared logs. See the upstream logging documentation.
Manual installation and recovery
Prefer a single installation method so the manager and game do not disagree about which files are active. If manual installation is necessary, back up your data and follow the instructions included with the matching upstream API release. Its package layout and target build determine where the files belong. Do not combine platform-specific assemblies or overwrite individual DLLs from unrelated releases.
The upstream API instructions describe restoring original files using Steam's integrity check or GOG's Verify / Repair feature. Close the game and manager first. Such a repair may remove API modifications to original files but should not be assumed to delete all additional mod files. Inspect the remaining configuration before enabling mods again. See repair game files and updates.
Frequently asked questions
Do I need Lumafly open while playing?
The API runs inside the game; the manager prepares and manages the installation. It is not the in-game loader.
Do cosmetic mods require the API?
API-based projects such as Custom Knight require their documented runtime and libraries. Check each project's requirements rather than assuming all cosmetic changes work the same way.
Does enabling the API update every mod?
No. Enabling the API and updating your mods are separate actions. Check individual packages and their requirements separately.
Can I use the newest API on an older game?
Only if the release explicitly targets that build. A newer revision number is not evidence of compatibility with an unrelated game version.
Why does an installed library have no menu?
Libraries often provide services to other mods rather than a standalone interface. Check the dependent mod's documented behavior.
Sources and next steps
- Lumafly release documentation
- Hollow Knight Modding API repository
- API releases
- API package manifest
- Logging documentation
- Upstream installation instructions
Need the manager itself? Visit the Lumafly download page for release information and download options. For first-time setup, follow the installation guide.