搜索结果: *

  1. Barnick

    BL Coding Is it possible to give foot units Mounted Archer combat AI?

    Not to derail this thread but, after reading the title, all I can think about it is a Fian Champion running around followed by a looter clapping some coconuts together.

    That being said, I haven't seen any XML that looks like it guides combat behavior but I've mostly been focused on culture/kingdom files.
  2. Barnick

    BL Coding Struggling with Visual Studio, need help

    There are a few of things you can do.

    1) You can poke around the namespaces and see what they offer. You already know the namespace you are interested. You can create a class, then type the namespace and add a "." (period) after it. It public varaibles, properties, classes, and methods will show up. (Intellisense is the best thing about Visual Studio... I've been using it professional for more than a decade.)

    2) You can look at what others have done. Many modders have put their code in github.

    3) You can decompile the source and see what they did. This is the most informative but probably the hardest to understand. You can watch GlorifiedPig's video on the topic:

    There is lots of valuable info here: https://docs.bannerlordmodding.com/
  3. Barnick

    BL Other Is there a way to replace the value of {LIEGE_TITLE}?

    I have added a new kingdom whose culture is based on the vlandians. The problem is that during conversations my new king declares himself the king of the Vlandians when he is not. The conversation variable in question is {LIEGE_TITLE} which apparently derives from culture information rather...
  4. Barnick

    BL Other Can a settlement initial owner be changed via XML?

    There's an issue where the game is going back and resetting ownership of settlements. Its a known issue.

    I've reported it in a few places and I'm frustrated as hell. For now I've had to rely on hardmodding settlements.xml.

    Thanks for the confirmation. I was using your mod as a test case.

    What I ended up doing is creating a C# mod which processes an XML file I created to change the ownership. Everything else is pretty much as you made it.
  5. Barnick

    BL Other Can a settlement initial owner be changed via XML?

    I have a clan I added and want to make it so that Poros starts a new campaign with a new name and under the new clan's control. I added a settlements.xml to the ModuleData folder, pasted in the Settlement info for Poros, then edited the name and owner. The changed name appears as expected when...
  6. Barnick

    BL Coding How can I add new Kingdoms?

    I appreciate the response!

    Technically <relationships/> and <relationships></relationships> are the same thing but maybe TW is doing something weird while parsing.

    At home I use Visual Studio Code with a good XML extension.

    I will tinker with what you supplied.
  7. Barnick

    BL Coding How can I add new Kingdoms?

    My ultimate goal is to change the names and owners existing towns and castles to give them to new kingdoms. Step one (rename some settlements) was easy and successful. I followed the steps outlined in this github repo. I renamed two towns and their related villages. I loaded the game, created...
后退
顶部 底部