Search results for query: *

  • Users: Llxr
  • Order by date
  1. Documentation Coding Community Modding Documentation

    EDIT: It works now but ill keep this here if anyway else wants to see the code
    Game crashed upon running the Basic C# Mod.
    C#:
    using TaleWorlds.Core;
    using TaleWorlds.Localization;
    using TaleWorlds.MountAndBlade;
    
    namespace ExampleMod
    {
        public class MySubModule : MBSubModuleBase
        {
            protected override void OnSubModuleLoad()
            {
                Module.CurrentModule.AddInitialStateOption(new InitialStateOption("Message",
                    new TextObject("Message", null),
                    9990,
                    () => {
                        InformationManager.DisplayMessage(new InformationMessage("Hello World!"));
                    },
                    false));
            }
        }
    }
    The code compiled and was enabled on the mods screen on the launcher. It went to the loading screen and then said "Application Crash"

    EDIT: Note the xml is a copy paste from the tutorial and also the ExampleMod.dll file is in the Modules\ExampleMod\bin folder
    EDIT2: My problem was that i did not create the Win64_Shipping_Client folder
Back
Top Bottom