Skip to main content

TavernLib.Backend.Mods

Every type in TavernLib.Backend.Mods, from TavernLib's own assembly. See the overview for how these pages are made.

TypeKindPublic membersWhat it is
InstalledModInfoclass3A tracked mod from ModInstaller.ScanMods: its record and whether it's enabled.
InstalledTargetclass3What a mod record says is installed for one target.
LibraryDependencyclass6A library a mod build needs in UserLibs, from the build's library_dependencies in its manifest.
MelonModFoldersinternal static class1Internal: edits MelonLoader's private list of mod folders at start to match the disk: disabled mods are dropped, and each enabled mod of ours gets this side's build folder (.server or .client_windows).
ModArtifactclass10One build of a mod from its manifest: which targets it's for, where to download it and how it's packaged.
ModDependencyResolverstatic class1Works out every mod a mod needs, from the merged index and fetched manifests, for one target.
ModHandshakestatic class1The server's mod snapshot for the auth port's ping, mods_list and the join's parity check, cached for 5 seconds.
ModHandshake.Entryclass8One server mod in the handshake: what a client needs to match it.
ModIncompatibilityclass4One entry of a mod source's incompatible list: two mods that don't work together while each is below its below version. Read by ModRepoClient.IncompatibilitiesFrom; the reconciler only warns about a clash, since the host chose both mods.
ModIndexclass8Every trusted source's repository.json merged: a list of ModSummary plus the replacements they list.
ModInstallerstatic class8Installs, verifies, enables and scans the mods in Mods, keeping a record (manifest.json) in each mod folder. Downloads are checked against their SHA-256 and built in a staging folder.
ModManagerConstantsstatic class10Fixed names for the mod manager: the default source, target names and record file names.
ModManagerExceptionclass2The exception the mod manager throws for a problem it can describe, such as a bad manifest, a failed download or an unsafe file name.
ModManifestclass14One version of one mod, from a source's manifests folder (schema version 2 only).
ModPathsstatic class8Where the mod manager keeps things under the game folder, with a check that ids and file names can't escape their folder.
ModReconcilerstatic class2Brings Mods in line with a modlist before mods load on a headless server: installs or updates listed mods and their dependencies, and disables unlisted server mods (never deletes). Server.
ModReconciler.Passprivate class2Private: one reconcile pass, with its deadline, the fetched index and per-pass verify results.
ModRecordclass17A mod folder's record (manifest.json or manifest.disabled.json): the manifest it was installed from plus what's installed per target. Written in the same bytes as the launcher's Python installer writes it.
ModReplacementclass5One entry of a source's replaced list: a retired mod id and the mod that takes its place.
ModRepoClientclass8Fetches indexes and manifests from the trusted mod sources over NativeHttp. Runs off the main thread.
ModSummaryclass7One mod's entry in a source's repository.json for one major version: the versions it lists.
ModVersionstruct12A mod version, exactly MAJOR.MINOR.PATCH in ASCII digits with no pre-release or build parts, compared by major, minor, then patch.
ModWithdrawalclass5One entry of a mod source's withdrawn list: a mod version nothing should install. A server pinned to it gets that major's latest version instead, with a warning.
UntrackedModclass6A DLL or folder in Mods that TavernLib's mod manager didn't install. Never resolved, updated or checked against a player.