code

  1. unable to convert from "bool" to "System.Func<(bool, TaleWorlds.Localization.TextObject)>"

    Мy first experience. I do it according to the tutorial and i have problem. Module.CurrentModule.AddInitialStateOption(new InitialStateOption("Message", new TextObject("Message", null), 9990, () => { InformationManager.DisplayMessage(new InformationMessage("Hello World!")); }...
  2. Alzey

    Help for make mod, Mod yapmak için yardım.

    Muhterem Okuyucular, büyük ve güzel bir mod yapmak istiyorum ancak texture,langue gibi dosyaların nerede bulunduğunu anlayadım dosyaları nereden bulabileceğimi bilen varsa beni bilgilendirmeleri rica olunur. Bu konudaki cahilliğimi mazur görün. Büyük bir mod yapmak istiyorum ancak bilgim çok az...
  3. How to activate the royale mode in the NW?

    I checked the source code of NW and I find a new game type call royale. I change the header_common and let this mode shows on the Admin panel. But it seems that don't have any trigger on this mode.(Like press C to battle cry and P to surrender). So it seems that I fail to activate that mode...
  4. Notealot

    About why lance/spear cavalry so weak in SandBox

    There is a thread discussed about this issue before: https://forums.taleworlds.com/index.php?threads/fix-cavalry-charge.442262/ As we know, developers changed reorganizing range of cavalry in Beta e1.5.10, but it affects few. Every reason you can found in codes. For example, the Mount Charge...
  5. Tharos_PT

    Help with Custom NameMarkers

    Hi there, I was trying to make my own Name markers, similar to what you can see below but with my own text. I was trying to follow the code on MissionGauntletNameMarker (SandBox.GauntletUI.MissionGauntletNameMarker), where it looks that is initialized. It creates a new MissionNameMarkerVM...
  6. The_Schwarz

    Ragdoll Physics post 1.5.7

    Maybe this is a little late but did something change with the application of ActivateRagdoll()??? It exists off of both Agent.AgentVisuals.GetEntity().ActivateRagdoll(); and Agent.AgentVisuals.GetEntity().ActivateRagdoll(); Seems prior to 1.5.7 I could just instantiate my agent object as lets...
  7. Eärendil Ardamírë

    LSP Kit QoL Troop Diversification with Random Items - Bags & Bottles LSP Code Kit

    The purpose of this LSP Code Kit is to enable a bit of diversification of the looks of troops at the battles, to reduce a little bit the clone like look of them at the scenes. It contains code examples for different cases as well as example resource files (1 brf file + 1 texture) which can get...
  8. KnowsCount

    does merging custom troop trees require diplomacy based code?

    Hi.. I am adding custom troop trees into my mod and it outputs this: the error is caused by this line: index = [i for i, dialog in enumerate(orig_dialogs) if dialog[1] == "dplmc_constable_recruits_and_training" and dialog[4] == "dplmc_constable_pretalk"][0]. Does it mean I need to add...
  9. KnowsCount

    Usage of unassigned global variable & Global variable never used the same time

    It tells me this: WARNING: Usage of unassigned global variable: $gpu_storage WARNING: Usage of unassigned global variable: $gpu_data WARNING: Usage of unassigned global variable: $gpu_storage WARNING: Usage of unassigned global variable: $gpu_storage WARNING: Usage of unassigned global...
  10. BladeofWar's

    B Tutorial Module System How to add New Tableau Materials

    Hello, I had to add new tableau_materials for my mod because the standard ones didn't work. And now I decided to do a lesson if you need it too. Required files module_scripts.py and module_tableau_materials.py. Let's start. Firstly we'll create own tableau_material. For example...
  11. Heroes die in Simulated Battles?

    As the post asks, are you or your siblings/companions and enemies able to die during simulated battles or will it always turn out wounded?
  12. InputToken in ConversationSentence

    Hello, I am trying to mod Bannerlord and I am going to be working close with dialog and sentences, as I've seen in the decompiled code, there's an important class named ConversationSentence and as of writing this I think I have a good understanding on how it works. However, I do not understand...
  13. frozenpainter

    SP Nova Aetas v5 Submod

    Here a submod for Nova Aetas, Including; -All kingdom troops stats fixed now more balancer troops. -All troops equipmant stats fixed. -Sword or pike thrust animation fixed. -and more... Download: https://drive.google.com/file/d/1cvm9u74lt4LHcPFsgm7x0zo-V-1FnPdp/view?usp=sharing
  14. 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...
  15. SupaNinjaMan

    Native OSP Shaders Warband HLSL Shader Exchange

    Warband HLSL Shader Exchange [OSP] HLSL is a rough language to learn, especially if you aren't familiar with C-based languages, but with enough patience and willpower it's a really rewarding and fairly underutilized area of modding. Getting Start with Shaders: Read First: Swyter's...
  16. Dalion

    OSP Kit Axe Trap

    Another creative use of Native resources. Warning: to implement this OSP, coding skills aren't enough, you should also have at least basic scene editor experience. If you don't, hiner's tutorial is a great starting point. Any part of this code could use improvements. You are free to improve...
  17. frozenpainter

    Moving ships

    This code added to mission templates, I added spr_ship to point A, entry_point 21 is point B When this code woriking spr_ship moving point A to point B, but when I enter scene after spr_ship doesnt spawn point A, it spawn point B I want to starting position of spr_ship must point A, every I...
  18. frozenpainter

    Parties belong who?

    I added a triggers look like, I want to if p_town_6 has belong to fac_kingdom_6, code must me active, if p_town_6 has belong another kingdom code must be disable. (5.7, 0, 5.0, [ (store_num_parties_of_template, reg3, "pt_crusade_army"), (lt, reg3, 2), (faction_slot_eq...
  19. Makarov45

    Help with Protection level of Code

    i was fixing a dead mod (Workshop Stash) and had a problem with this code: protected override void DefineGenericClassDefinitions() { this.ConstructGenericClassDefinition(typeof(MBObjectManager.ObjectTypeRecord<TownWorkshopStash>)); } the...
  20. ἀποκάλυψις

    SP - General add GetDaysSinceWarWithFaction(IFaction faction1, IFaction faction2) method to FactionManager Class

    Recommend add of method public static int GetDaysSinceWarWithFaction(IFaction faction1, IFaction faction2) to FactionManager class. Per the following thread... https://forums.taleworlds.com/index.php?threads/getdayssincetrucewithfaction-seems-to-return-wrong.418087/
Back
Top Bottom