Mount & Blade: Warband

Mount & Blade: Warband

View Stats:
AgeOfBacon Jan 3, 2019 @ 4:41pm
Modifying mod files without TweakMB
As many know, TweakMB isn't updated now for a long time. Many mods who used to be compatible aren't anymore. Also, an even greater number of mods aren't compatible with it.
That's why I would like to know which file I need to modify, and what to modify there, to get similar results.
I think it's possible, but after trying to find anything I needed, I couldn't figure out what to do.
< >
Showing 1-5 of 5 comments
redwitch Jan 4, 2019 @ 1:25am 
well, it depends on the mod and on what you want to change.
If you succeed in loading the mod you can edit some values without having to fiddle with the files. If I want to tweak some things with the tool I figure out at first if the mod I want to tweak is based on one of the mods the tool supports, i.e. Floris. In some cases it is just a native expansion so loading it based on the native module works mostly fine.
If you succeed in loading the mod then there are some values you can edit directly using the tool, i.e. disabling stats loss or editing the battle sizes works mostly fine.
In the other cases though editing the values you want to change will not be not possible with the help of the tool itself, then you'll have to edit the files. But even then the tool is of great help. That's the way I do it:
If you have used TweakMB before you know that the tool has a function TweakViewer. If you open that viewer you see a list of all editable module codes. i.e. Companions_PreventCompanionsFromLeaving. Select that code and the viewer will display the file you have to edit and on a panel below even highlight the value you have to change. To know what change to the value I have to make, I first open another TweakMB window and load the native module and make the change I want to make there too, so the viewer displays what the required value looks like. Depending on the changes the mod has done to the native files It may require a bit of work to find out in the module file where exactly the value to change is located. Using a file differencing tool like WinMerge may help. In any case you should save the files you want to change before.
Good luck!
AgeOfBacon Jan 4, 2019 @ 9:28am 
Originally posted by redwitch:
well, it depends on the mod and on what you want to change.
If you succeed in loading the mod you can edit some values without having to fiddle with the files. If I want to tweak some things with the tool I figure out at first if the mod I want to tweak is based on one of the mods the tool supports, i.e. Floris. In some cases it is just a native expansion so loading it based on the native module works mostly fine.
If you succeed in loading the mod then there are some values you can edit directly using the tool, i.e. disabling stats loss or editing the battle sizes works mostly fine.
In the other cases though editing the values you want to change will not be not possible with the help of the tool itself, then you'll have to edit the files. But even then the tool is of great help. That's the way I do it:
If you have used TweakMB before you know that the tool has a function TweakViewer. If you open that viewer you see a list of all editable module codes. i.e. Companions_PreventCompanionsFromLeaving. Select that code and the viewer will display the file you have to edit and on a panel below even highlight the value you have to change. To know what change to the value I have to make, I first open another TweakMB window and load the native module and make the change I want to make there too, so the viewer displays what the required value looks like. Depending on the changes the mod has done to the native files It may require a bit of work to find out in the module file where exactly the value to change is located. Using a file differencing tool like WinMerge may help. In any case you should save the files you want to change before.
Good luck!

Well what I was aiming for was more stuff like construction speed in villages and towns, food consumption, and maybe reputation.
I once found a tutorial I followed, but it had no effect ingame.
redwitch Jan 4, 2019 @ 10:18am 
well, as I wrote you can locate the module files yourself by loading the native module in TweakMB, look for what you want to change, do it, and then open the TweakViewer. Search there for the codes of the entries you have changed and look for the highlighted values in the panel at the bottom. In the TweakViewer you also find the corresponding module file. Look for it in the mod folder, then you'll have to find out in that file where to put the new value.

I.e. if you want to change food consumption, load the native module in TweakMB, on the left tree panel open the top entry named Tweaks, then select Food Consumption. On the right there are two edit fields, change the values according to the ranges, then open the TweakViewer, search on the left for Food_EatingInterval and Food_TroopsFed. For both codes the corresponding values are highlighted in the panel below, in the code section in the file: These are the values, you'll have to copy in the same file of the mod. The difficult part is find the exact spot in that file, because they are obviously not identical. The module file for Food Consumption is Simple_triggers. You'll have to open that file in the mod folder and look for where to change those values. It's doable, it requires just a bit of work.
AgeOfBacon Jan 4, 2019 @ 1:30pm 
Originally posted by redwitch:
well, as I wrote you can locate the module files yourself by loading the native module in TweakMB, look for what you want to change, do it, and then open the TweakViewer. Search there for the codes of the entries you have changed and look for the highlighted values in the panel at the bottom. In the TweakViewer you also find the corresponding module file. Look for it in the mod folder, then you'll have to find out in that file where to put the new value.

I.e. if you want to change food consumption, load the native module in TweakMB, on the left tree panel open the top entry named Tweaks, then select Food Consumption. On the right there are two edit fields, change the values according to the ranges, then open the TweakViewer, search on the left for Food_EatingInterval and Food_TroopsFed. For both codes the corresponding values are highlighted in the panel below, in the code section in the file: These are the values, you'll have to copy in the same file of the mod. The difficult part is find the exact spot in that file, because they are obviously not identical. The module file for Food Consumption is Simple_triggers. You'll have to open that file in the mod folder and look for where to change those values. It's doable, it requires just a bit of work.
I'm going to try this, not having much hope but maybe that will work.
Racoonstar78 Sep 4, 2021 @ 9:58pm 
Originally posted by redwitch:
well, as I wrote you can locate the module files yourself by loading the native module in TweakMB, look for what you want to change, do it, and then open the TweakViewer. Search there for the codes of the entries you have changed and look for the highlighted values in the panel at the bottom. In the TweakViewer you also find the corresponding module file. Look for it in the mod folder, then you'll have to find out in that file where to put the new value.

I.e. if you want to change food consumption, load the native module in TweakMB, on the left tree panel open the top entry named Tweaks, then select Food Consumption. On the right there are two edit fields, change the values according to the ranges, then open the TweakViewer, search on the left for Food_EatingInterval and Food_TroopsFed. For both codes the corresponding values are highlighted in the panel below, in the code section in the file: These are the values, you'll have to copy in the same file of the mod. The difficult part is find the exact spot in that file, because they are obviously not identical. The module file for Food Consumption is Simple_triggers. You'll have to open that file in the mod folder and look for where to change those values. It's doable, it requires just a bit of work.


THANKS that helped me a lot !
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Jan 3, 2019 @ 4:41pm
Posts: 5