preload button hover image:
Current Time: Dec 17, 2018, 08:28:33 am
 Mount&Blade Repository » Modding Tools » M&B - Unofficial Troop Editor
Registration is not required to download. However, it will allow you to vote, comment, and request upload access. Forgot your password?
View this file on the M&B NexusFile Listing: M&B - Unofficial Troop Editor
Last Updated: Apr 08, 2010, 08:32:13 am
First Created: Mar 20, 2008, 11:29:54 pm
File version: 1.9
For M&B version: Warband 1.1xx
Downloads: 81,469 (119,393) Size: 56.5 KB
Views: 141,708 (184,041) Type: ZIP
Home:  Troop Editor Forum
Rating (20 votes): 4.8 / 5.0
I wrote an Unofficial Troop Editor for Mount & Blade which allows direct editing of the troops.txt, parties.txt and party_templates.txt files and should be compatible with M&B versions 0.9 - 1.x as well as M&B Warband. This allows viewing and modifying the following information:

+ troop names
+ troop attributes
+ troop proficiencies
+ troop skills
+ troop items
+ troop upgrade paths
+ troop flags
+ troop factions
+ troop faces
+ troop skins
+ parties
+ party templates

This could be useful to better balance individual troops and factions for your own personal use or possibly to create a new mod for Mount & Blade. Even if this is not used to directly edit the files this may be useful as a modding tool since it allows the ability to easily review troop information which may be helpful in balancing the game when making mods. I've done testing with this on several versions of M&B and everything seems to work fine but please let me know if there are any problems. A screenshot is below and please post on the forum if there are any questions. thanks




Morgh's Text Editor - Morgh is working on a text editor that is similar or most likely better then mine. I recommend checking out the thread below if you are interested in trying this on as well:,105928.msg2606968.html

[email protected] Excel Editor - [email protected] also has an excel based text file editor that you can download in the thread below:,117997.0.html

Changes and Saved Games - A lot of information in these text files are also saved within your saved game file so any changes made with the troop editor may not take effect immediately in your saved game. When testing saved games some changes seem to take effect immediately, some after waiting several days of game time for a new troop or party to spawn on the map, and some never update. This behavior may have also switched between version 0.9x and 1.x and the M&B developers would be the only ones that could tell us exactly what changes would and would not work. Therefore, if you are modifying these text files and want to guarantee that your changes are working you should start a new game.

NOTE: It is possible to refresh the module data so some changes can be visible in saved games.
1) You need to enable edit & cheat mode in the M&B configuration menu
2) Then press CTRL+M on the world map in-game
3) You should see a message that it was refreshed.

I do not know exactly what this functionality does but it has been helpful when doing some testing and not having to always start a new game each time. However, if you want to guarantee your changes work then you need to start a new game.

Adding new Troops - Troops are referenced in other files by a troop number, therefore it is not possible to add new troops to the middle of the text file without messing up the rest of the game. It is possible to add new troops to the bottom of the file and then add them into the party_templates or as an upgrade path.
- Balrog wrote a text summary of this process:,34154.msg1259116.html#msg1259116
- skiddledou wrote a summary with pictures:,68375.0.html

Changing Gender and Skins - This editor allows you to switch the gender and also to choose order skins (ie. races) in the game. There is an undead troop in the Native game which is Skin 2 and other mods may have added additonal skins. Switching between Male & Female should not cause a problem, but using other skins may cause problems. If you want to use Skin 2 or higher then you need to make sure you have limit_hair_colors = 0 in your module.ini and also that that Skin # exists in the skins.txt file.

Backup your files - This editor does not create backup copies of any files it modifies so I suggest at the minimum backing up the troops.txt, parties.txt and party_templates.txt files before modifying them. if you are going to try this editor out for the first time you can make a copy of the Native module and then try and edit that.

Converting text files to the module system - The troop editor directly updates troops.txt, so if you were to re-build your mod using the module system your changes to this file will be overwritten. However, kt0 has written a script to convert the troops.txt and parties.txt into python code which would then be usable in the module system. So if you want to use this editor to make changes and then re-compile your mod you now can.
troops.txt -,69313.0.html
parties.txt -,61873.0.html
item_kinds1.txt -,59985.0.html (if you used the unofficial item editor)
party_templates.txt - these changes cannot be converted to module system code

Windows Vista - Several users have had issues trying to use the unofficial editors (and mods in general) with the Windows Vista operating system. I do not have Vista but most likely you will need to start this editor with Admin rights or it will prevent you from modifying text files. I believe this functionality is a security feature called VirtualStore that primarily protects the C:\Program Files\ folder so I think problems installing mods or using editors in Vista is most common for people who have the game installed into that directory. Apparently you can find the files under the "C:\Users\YOURUSERNAME\AppData\Local\VirtualStore\Program Files\" folder or some people have re-installed M&B into a different directory and found that this worked as well.

Troop Editor Installation Package:
This is a full installation package for the Troop Editor that contains all the required files. You should download and try running this version if you get any errors when trying to use the editor. For example, one user reported an ActiveX error in Windows Vista and this resolved his issue.

Troop Editor Source Code:
The Troop Editor should currently be compatible with M&B 1.x. However, I do not have time to update or maintain this in the future so have published my source code in case anybody is interested in reviewing it.

thanks to Jordan and his great item editor for assistance with understanding the troops file


March 21, 2008 - version 1.0
Initial release with the ability to edit troop names, attributes, proficiencies, skills, and items.

April 4, 2008 - version 1.1
Editor now includes the ability to edit troop upgrade paths and flags. Also included some minor bug fixes.

April 10, 2008 - version 1.2
Editor now includes the ability to edit troop factions and faces. Also included some data validation and minor bug fixes.

May 5, 2008 - version 1.3
Editor now has the ability to modify some of the data in the party_templates.txt file. Made the editor compatible with M&B version 0.950 (version 0.90x still works). Removed COMDLG32 from the code so Windows Vista users will not get an error. Minor changes to the interface and some bug fixes.

June 3, 2008 - version 1.4
Editor now has the ability to modify some of the data in the parties.txt file. Minor changes were made to the Browse button functionality and the interface.

March 12, 2009 - version 1.5
Very minor update to fix the parties.txt option to work with M&B 1.x, enabled changes to the looting skill, fixed a crash when trying to remove items, and removed the Face Codes section since it doesn't currently work in 1.x.

January 8, 2010 - version 1.6
Updated to allow changing face codes and skins for troops in M&B 1.x, also some minor bug fixes.

February 1, 2010 - version 1.7
Minor update so if the editor cannot determine what version the mod is it will default to M&B 1.010/1.011.

February 3, 2010 - version 1.8
Another minor update to try and fix a bug that was causing the invalid line #8 error for some users.

April 8, 2010 - version 1.9
Update to also allow modification of M&B Warband files.
More From This Author
Comments (Page 2 of 3)
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by HokieBT on Apr 21, 2008, 11:56:07 am
Usually I saw these errors if I made a change to a troop that was not possible or not expected by the game. For example, giving yourself 99 power strike, making an undead female, using a " " instead of a "_" when typing a troop name, possibly giving a troop guaranteed ranged and guaranteed shield, etc. I have tried to add some data validation to my most recent version to limit some of this from happening. But basically I would be careful about changing a lot of values at once or changing them to be really high numbers that might not be possible to get when playing the game. I'd suggest restoring the original troops.txt file and only making a few changes to try and narrow down what change is breaking the game. Then, if you think its a valid change post what you changed and the error in the forum and we can do some troubleshooting. :)
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by gerhen on Jun 04, 2008, 05:23:24 am
Is there any way to add new troop to the game? I mean make an absulutely new one, not just edit them!
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Lucayen on Jul 16, 2008, 07:35:03 am
When i tried to do undeads the face whent white...Do you know why? Maybe its because im changing it on trying on v.955 now
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Lucayen on Jul 16, 2008, 09:55:30 am
Ehrrm...Nvm :oops:
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by MBvicio on Jul 30, 2008, 06:05:40 pm
can anyone help me? I can't edit the troops itens because the window don't have a bar to scroll down...i can only edit the skills ,atributes ,upgrades, and etc...but i can't edit the itens...and no, my mouse wheel does not get the rolls get down
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by adamar on Aug 27, 2008, 07:32:30 pm
when I try to load my saved game It says "Can not open file Troop.txt" what the heck is wrong with it some one please help me.
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Was on Sep 02, 2008, 04:36:05 pm
This looks like a nice tool, but I've been having a problem with it. I did a simple test to try to isolate what was happening, and I'll describe that test to illustrate my problem.

I made a copy of the native mod folder and renamed it something else. I then opened this renamed mod in your editor and selected to edit the troops. I clicked on the player selection and adjusted the firearms skill to 20. I updated, saved and exited the editor.

When I opened this mod in M&B and tried to start a new game, it simply crashed the game on me. I went back into the editor and reversed what I did exactly (I set the firearms skill back to 0, where it had been, then update, save etc.). When I then tried to open this mod again and start a new game, but it crashed again. Somehow I had irrevocably messed up a file it seems.

Help? :-?
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by HokieBT on Sep 06, 2008, 09:37:50 am
hmm, that sounds strange, what version of M&B? It should work fine with 0.960 but I haven't done a lot of testing. You may also have to add "display_wp_firearms = 1" to the module.ini because the firearm skill isn't displayed by default in the game? Otherwise you can try sending me a PM with a link to your troops.txt file and I could try it out.
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Archangel Of Death on Sep 16, 2008, 10:50:58 pm
can you update this to version 960 please?
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by evil chicken on Oct 24, 2008, 04:26:23 pm
is this compatable with 1.003? :-?
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by HokieBT on Oct 24, 2008, 08:30:58 pm
yeah, it should be compatible with 1.003, I'll update the page.
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by evil chicken on Oct 24, 2008, 09:12:16 pm
I don't know what type of file to edit, or where it is :-(
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by SuomiLeijona on Dec 02, 2008, 12:27:15 am
I haven't have any problems, but i just wonder how can you edit parties. I know how to edit party templates, but in parties screen i just see an empty box and other stuff. By the way does that undead thing work only when using Dx 9.0
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by HokieBT on Dec 09, 2008, 05:42:39 pm
They changed the format of parties.txt in M&B 1.x, so currently my editor does not support modifying that file and that is why it is blank. Everything else should work ok and when I get some time I hope to release a version that fixes the issue with the parties file. In terms of the undead, I haven't tested them since 0.903, so I'm not sure what is required to get them to work in the latest version.
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Laedend Riht on Jan 04, 2009, 03:02:08 pm
Map i please put this application in a modders kit?
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by SLIPPY on Jan 29, 2009, 03:56:46 pm
whats the point of having the skill atributes and u can put each one to 10 without putting your character lvl 1000000 because if u but it to that lvl u can put all the attributes like ironflesh 10 on all but watch out if u put full max on all you will gub up the game when u win a battle -2 denars and u will loose morale aswell...but if u dont fight ur morale goes up lol...
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Assassin552 on Mar 16, 2009, 08:17:30 pm
I dont understand it says that you can edit troop faces but i dont know where exactly?
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by LordRichards on May 25, 2009, 03:15:01 pm
please can you tell me how to make troops in my party when i make new game or how to make like the ammount of troop i recruit a village 100
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Rockwell on Jun 29, 2009, 01:31:45 am
Yes, a perfect tool - I cannot even image WHAT i would do without it making my mods)))
But, the only question is where are these face slots in this program? On your screenshots they were so temptative))
IP: logged
 M&B - Unofficial Troop Editor (v 1.5)  » posted by XxFredxX on Oct 19, 2009, 04:46:57 pm
who know some paint tool? :?: :?: :?: :-|
Showing comments 21 to 40 of 52 Showing Page 2 of 3  <  1  2  3  > 

Hosted by Hypernia.
Website © 2018 FenriSoft. The core site script is PHCDownload (© 2005-2018).