csharp

  1. Gess1t

    [1.1.5] StandPoint not detecting agents

    I have been struggling to make UsableMachine work these past few days, eventually, i got them to start ticking, but now, i'm looking for why standpoints don't work. I have tried making my own StandPoint based class to only allow interactions from the main agent, but no matter the StandPoint...
  2. Removing of agent weapon through script

    I'm currently trying to create a system for breaking weapons. I want it to based on damage dealt. Anyway, my issue is that I get a random crash when a weapon is removed. Sometimes it works fine, but it will usually crash after 4-5 NPCs make a strike. Here's really simple sample code...
  3. Wüstenkrieger

    Playing an agent animation via code

    Hi, I have a function which gets called by a hotkey, that unequips an item and equips a different one. In between I would like the agent to do a custom animation. The animation is already added via the modding kit, but I cant find any code to carry out an animation by string. Has anyone any...
  4. Aragas

    [Tool] Localization Parser

    This tool allows to extract every hardcoded localization string (e.g. `{=TauRjAud}{NAME} of the {FACTION}`) from the game's libraries or from a module's libraries to a .csv file. Link to the GitHub repository. Using as a dotnet Tool Installation 1. Install the latest .NET 5.0 Runtime. 2. Run...
  5. Aragas

    OSP Kit Module Template for Visual Studio and dotnet

    Template extension for dotnet, eases the process of creating new mods for M&B 2: Bannerlord. This is another Module Template for Bannerlord. Just like dealman's template, it can work with Visual Studio, but it's based on the new dotnet template system instead of the classic .vsix extension...
  6. Retsam

    Suggestion General Ability to attach custom observers to simulated battles

    The goal The goal is to have a mod be able to track the results of a simulated battle as it progresses - similar to how a mod might use MissionBehavior to track kills and such in a non-simulated battle. (For my particular use case, I'm trying to keep track of when individual soldiers in the...
  7. C# Scripting

    C# Scripting for Mount and Blade Ⅱ: Bannerlord Download Nexus: https://www.nexusmods.com/mountandblade2bannerlord/mods/1651?tab=files GitHub: https://github.com/int19h/Bannerlord.CSharp.Scripting Description The mod wraps the .NET Compiler Platform SDK (aka Roslyn) to allow you to compile...
  8. SP Native C# Scripting

    C# Scripting for Mount and Blade Ⅱ: Bannerlord Download Nexus: https://www.nexusmods.com/mountandblade2bannerlord/mods/1651?tab=files GitHub: https://github.com/int19h/Bannerlord.CSharp.Scripting Description The mod wraps the .NET Compiler Platform SDK (aka Roslyn) to allow you to compile...
  9. alligator shoes

    Tried my hand at C# modding but my DLLs crash the launcher

    I tried following this very simple tutorial from april: https://docs.bannerlordmodding.com/_tutorials/basic-csharp-mod.html#preparation Creating a hello world mod and exporting the DLLs. But when I've followed it to the end my launcher wont even start, when I run visual studio debugger on the...
  10. dealman

    OSP Kit [Release] Mod Template for Visual Studio (Automatically configs, adds references and more!)

    Decided to try and create a project template for Visual Studio to make it a bit faster and less painful to create new mods for Bannerlord. This is the first time I've made a template so there may be some issues I haven't encountered yet. But hopefully it'll work out of the box for you! Features...
  11. Bannersample - An example mod using Harmony

    Hey guys, I created a small example project for anyone to start their own projects/mods from. It uses Harmony to patch existing methods from the game with your own implementations, more on that in the Readme and Harmony documentation. https://github.com/schplorg/bannersample-mod Download the...
Back
Top Bottom