code

  1. Wüstenkrieger

    BL Coding 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...
  2. Yagababa

    WFaS Coding Health Bars

    Hey guys, sorry to double post. I found this code for a health bar presentation code, but for some reason they aren't appearing in-game. ("multiplayer_agent_hp_bar", prsntf_read_only, 0, [ (ti_on_presentation_load, [...
  3. Pitch

    Monitor for any changes in your code and automatically compile module system.

    Monitor for any changes in your code and automatically compile module system with nodemon. Perfect for development Nodemon is a development dependency that monitors for any changes in your project and automatically re-compiles your code, saving time and tedious work. Nodemon does not require...
  4. AlbertFaubrein

    WB Coding Presentation's slider not working

    Hello, I have a problem with my presentation, I create a range of image_buttons but only 3 of them are working and like the title say my presentation's slide is not working. Thanks for your help.
  5. Campaign Map Speed

    Hello Everyone! I often find myself in looking for x8 button when moving around the map and it just really frustrates me that it is not there. I know that I can go to cheat menu and type "campaign.multiply_campaign_speed 20 " and that does the trick for me, but I don't want to do that every...
  6. BL Coding AddPlayerLine() AddDialogLine() there are no selection lines in the secondary action? C#

    Hi! Construction: AddPlayerLine("Question1", "lord_talk_ask_something", "Question2","Text1"...) 1. presses "lord_talk_ask_something". a dialog appears with the button "Text1" AddDialogLine("Question2", "Question2", "Question3", "Text2"...) 2. The NPC responds to "Text2"...
  7. BL Coding Determine the current state of the game (character) С#

    Is it possible to track the state of the game at the moment when the event occurs.? For example - on the global map or conversation or inventory menu. let's finish so I can output the message once at the event OnGameStart protected override void OnGameStart(Game game, IGameStarter...
  8. BL Coding 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!")); }...
  9. 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...
  10. NW Coding 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...
  11. 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...
  12. Tharos_PT

    BL Coding 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...
  13. The_Schwarz

    BL Coding 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...
  14. Eärendil Ardamírë

    LSP Kit QoL 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...
  15. KnowsCount

    WB Coding 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...
  16. KnowsCount

    WB Coding 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...
  17. 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...
  18. 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?
  19. BL Coding 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...
  20. 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
Top Bottom