{"id":18484786,"url":"https://github.com/butr/bannerlord.moduleloader","last_synced_at":"2025-04-19T14:55:15.722Z","repository":{"id":36957605,"uuid":"447357964","full_name":"BUTR/Bannerlord.ModuleLoader","owner":"BUTR","description":"Library that provides an universal loader for distributing multiple implementations for different game versions within one module.","archived":false,"fork":false,"pushed_at":"2025-02-18T09:52:11.000Z","size":100,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T13:52:58.740Z","etag":null,"topics":["bannerlord","mount-and-blade-bannerlord","roslyn-generator"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BUTR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-12T20:15:50.000Z","updated_at":"2025-02-18T09:52:08.000Z","dependencies_parsed_at":"2023-02-14T05:45:34.331Z","dependency_job_id":null,"html_url":"https://github.com/BUTR/Bannerlord.ModuleLoader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUTR%2FBannerlord.ModuleLoader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUTR%2FBannerlord.ModuleLoader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUTR%2FBannerlord.ModuleLoader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BUTR%2FBannerlord.ModuleLoader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BUTR","download_url":"https://codeload.github.com/BUTR/Bannerlord.ModuleLoader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249718677,"owners_count":21315091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bannerlord","mount-and-blade-bannerlord","roslyn-generator"],"created_at":"2024-11-06T12:42:56.366Z","updated_at":"2025-04-19T14:55:15.704Z","avatar_url":"https://github.com/BUTR.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bannerlord.ModuleLoader\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.nuget.org/packages/Bannerlord.ModuleLoader\" alt=\"NuGet Harmony\"\u003e\n    \u003cimg src=\"https://img.shields.io/nuget/v/Bannerlord.ModuleLoader.svg?label=NuGet%20Bannerlord.ModuleLoader\u0026colorB=blue\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.nuget.org/packages/Bannerlord.ModuleLoader.Injector\" alt=\"NuGet Harmony\"\u003e\n    \u003cimg src=\"https://img.shields.io/nuget/v/Bannerlord.ModuleLoader.Injector.svg?label=NuGet%20Bannerlord.ModuleLoader.Injector\u0026colorB=blue\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nUses the new C# 9 Source Generator (could have used an MSBuild task) to generate a loader library for the implementation-loader technique.  \n\n## Requirements\n* Will add a requirement to the `Bannerlord.Harmony` module.\n* Requires the `ModuleId` and `ModuleName` MSBuild property widely used in our BUTR stack. Should be the same as the mod's Module Id and Name.  \n* Requires standard `MSBuildProjectFullPath` and `OutputPath` properties. Tampering with them will break the injector.  \n\n## Installation\nInstall the [Bannerlord.ModuleLoader.Injector](https://github.com/BUTR/Bannerlord.ModuleLoader.Injector) package.\n\n## Usage\nEach build will create `Bannerlord.ModuleLoader.$(ModuleId).dll|.pdb` files.  \n\n```xml\n    \u003c!-- Bannerlord Module Loader. Do not change the name! --\u003e\n    \u003cSubModule\u003e\n      \u003cName value=\"Bannerlord Module Loader\" /\u003e\n      \u003cDLLName value=\"Bannerlord.ModuleLoader.$moduleid$.dll\" /\u003e\n      \u003cSubModuleClassType value=\"Bannerlord.ModuleLoader.$moduleid$\" /\u003e\n      \u003cTags\u003e\n        \u003cTag key=\"LoaderFilter\" value =\"$moduleid$.*.dll\" /\u003e\n      \u003c/Tags\u003e\n    \u003c/SubModule\u003e\n```\n\n\u003e **ℹ️ NOTE**  \n\u003e The `$moduleid$` and `$modulename$` properties is from BUTR's [Bannerlord.BuildResources](https://github.com/BUTR/Bannerlord.BuildResources), it injects MSBuild's $(ModuleId) and $(ModuleName) properties.  \n\u003e Just replace it with the actual Module Id if you don't use the package!\n\n\u003e **⚠️ ATTENTION**  \n\u003e If the Module Id contains invalid C# identity symbols (like dot '.'), override the `SubModuleClassType` property manually, replacing each invalid char as underscore `_`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbutr%2Fbannerlord.moduleloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbutr%2Fbannerlord.moduleloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbutr%2Fbannerlord.moduleloader/lists"}