1. Medivhtratos

    1.5.10 Athletics to slow for you? Here a solution

    1. Install DNSpy or Visual Studio 2. Open the TalesWorldCampaign.dll 3. Search in this .dll after the "DefaultSkillEffects" class 4. Change in this class the numbers, regarding Athletic, by right clicking the Method "InitializeALL" and than press "C# to work with method" 5. Save your changed...
  2. BL Coding Help initializing a battle of my own

    Hello everyone, I need to initialize a field battle within my campaign and, while searching for how native starts its battles I found how it started its custom battle. It uses the function "OpenCustomBattleMission" which can be found in the class "BannerlordMissions". This is the function which...
  3. BL Coding I am having some difficulty creating a dropdown menu

    Hey everyone, I am working on a GUI for my mod and I need to create a dropdown menu. I am having some difficulties doing it though and the mod I am using as an example is not helping. I am looking for other mod examples which have dropdown menus I can take inspiration from. Thank you in advance
  4. Makarov45

    BL Coding Help with code

    i used to find StatExplainer in TaleWorlds.CampaignSystem.SandBox.GameComponents.Party in that code public static void Postfix(MobileParty party, StatExplainer explanation, ref int __result) in last update StatExplainer isnt in TaleWorlds.CampaignSystem.SandBox.GameComponents.Party and i cant...
  5. Is there a way to create new Behaviors from BehaviorComponent?

    Hello everyone, I am currently working on a mod that aims to overhaul the battle AI currently implemented on Bannerlord. I am using Harmony and I already know what I need to do in order to change the AI during a battle. I have created my own tactics which use the behaviors already implemented by...
  6. KratosMKII

    WB Coding Making player teleport to the prison entrance?

    How do i make the player character teleport next to the prison of a town/castle? I tried making a copy of "town_center" menu in the and set the entry point to the player to 24 (the prison guard entry) but the player enters the scene off map and is stuck. Other attempts at...
  7. KratosMKII

    WB Coding Constants

    It is very annoying that there is a need to manually assign values to constants like slot_item_is_checked = 0. Is there a way that i can edit the process files to make them auto assign the values based on order of placement in the file?
  8. KnowsCount

    WB Coding WSE on Unix?

    I am a modder using a macOS, and everything was good so far but one thing: WSE has a .exe file. How can I also use WSE on Unix systems?
  9. DetektivAro

    WB Coding Coding advice? Anyone?

    So I was thinking of making a magic weapon that will act like a ranged weapon. It would shoot like a bow or crossbow, but instead of a arrow coming out, a meteor would fall out of the sky on the targeted place with it not falling right on the crosshair but in its general vicinity ( like some...
  10. BL Coding is_mafia, is_outlaw?

    There are a few values you can add to your custom factions such as is_outlaw, is_mafia and is_sect. How do these affect the faction's behaviour, though? I've marked one of my modded factions as outlaws but they don't seem to act any different.
  11. The_Schwarz

    BL Coding Does Anyone Run into the method for Agent Despawn?

    Hey all I am looking for the opposite action of this: public Agent SpawnAgent( AgentBuildData agentBuildData, bool spawnFromAgentVisuals = false, int formationTroopCount = 0) {...} Want to control when an Agent I spawn into a mission fades away and is disposed (Despawns)...
  12. 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...
  13. PeasantOP

    BL Coding New Modder> Is there somthing wrong with my code on troop editing. Followed the examples on the web

    Took 3 days to do this please, why does it crash on campaign map start up and on custom battles? I followed the examples and samples on the web Revamp Folder> ModuleData Folder and SubModule.xml> STroops.xml> SubModule.xml File: Code: <Module> <Name value="Revamp"/> <Id...
  14. PeasantOP

    BL Coding How do you delete this forum thread, accidentally clicked solved

    How do you delete this forum thread, accidentally clicked solved
  15. BL Coding Help finding party information an respective GUI

    Hello everyone, I am starting to learn how to mod Bannerlord in order to try and build a mod focused on army placement before battles. I've been reading the game's source code but I would like to have some help finding what I need: - When you encounter an hostile party a GUI appears asking if...
  16. HammY2776

    BL Coding Creating new conversations

    I have an event that occurs, after it occurs I want to open a Map Conversation with a character (mostly heroes).But I want him/her to say something specifc, give an option or two on how to respond and then the conversation will be over. The conversation will of course be related to the event. I...
  17. A way to make troops more organic and decrease work time

    Hello, i hope this fits here, because well, its something that affects a huge part of the game (characters as in units and so on) and i hope that a developer gets to read this so this can be considered (if it hasnt already, maybe it came up and just doesnt work) the way troops are given gear...
  18. CutContent

    WB Coding Player's face code to troop, invalid player ID

    [anyone|plyr,"member_talk", [ (troop_get_type,":gender","$g_talk_troop"), (troop_get_type,":p_gender","trp_player"), (get_player_agent_no, ":plyr"), (eq, ":gender", 1),(eq, ":p_gender", 0),(str_store_troop_face_keys, s30, "$g_talk_troop", 1),(str_store_player_face_keys...
  19. Makarov45

    BL Coding 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. Garedyr

    WB Coding Formula for the final weapon speed

    Hello guys, I've been doing a lot of tests lately and the results were satisfying up to some point where the numbers stopped being accurate so my guess & proof method failed at sth. What's the actual formula for the weapon speed that takes the speed rating, animation sequence duration and...
Top Bottom