Starting modding

So if a person with a programming base wanted to start making mods for the game is there a resource he could look at to get more information about how to get started and what api (if there is one) calls he can make.

Thanks, Old Butter Cow

Posted Jul 26, 2017, 10:47 PM UTC

128
WonkaBottleCapsGekokujo•

https://forums.taleworlds.com/index.php/topic,240255.0.html

This guy has a pretty excellent step by step guide on how to get started.

5
MitchPTIPersistent Troop Identities Dev•

That thread is most certainly where to start.

5
treygreen13Kingdom of Rhodoks•

If you wanna dip your toe in and just make new troops to see if you like that part, Morgh's has a nice gui. You can get a riff on Vanilla up in a night of poking around.

http://terrafluxus.net/morgh/pages/morghs-mb-wbwfas-editor/

2
MitchPTIPersistent Troop Identities Dev•

I don't know if you'd call it an API, I'm a little hazy on that term. What there is for modding is the module system, which is kinda hard to explain. It's a set of python files, but you're not writing python code that'll be executed in the game. Instead, those python files simply generate text files, which contain many things the game uses such as scripts written in TaleWorlds' proprietary scripting language. That language is... rather clunky and limited I'm afraid (thankfully they've confirmed that with Bannerlord they're replacing it with C#). Python experience can be helpful, but just be fully aware that you're only actually using it to create a list of tuples that contain instructions in a totally different language that's much more limited than Python itself. We're talking no such thing as while loops, arrays or exception handling limited.

1
Carhugar1OP•

Oh..... I see. I'll just give it a try and see what I come up with

1
MitchPTIPersistent Troop Identities Dev•

What kind of stuff were you thinking about modding?

1
Carhugar1OP•

Ideally I would like to learn the true limitation of the game in regards to co-op mode.... but I think I'll start with something smaller first. (New troop?)

1
BNSMarkoBear Force II Dev•

Brace yourself for tons of engine limits and get ready to make some crazy workarounds :P

1