preload button hover image:
HomeSearchRankingsStatisticsAboutContact
Current Time: Jun 20, 2018, 05:35: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: 79,458 (117,382) Size: 56.5 KB
Views: 137,331 (179,664) Type: ZIP
Home:  Troop Editor Forum
Rating (20 votes): 4.8 / 5.0
Description
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

Screenshot:

troopeditorv16screensho.th.jpg troopeditorv16screenshom.th.jpg troopeditorv16screensho.th.jpg


Forum:
http://forums.taleworlds.com/index.php/topic,34154.0.html

Notes:

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:
http://forums.taleworlds.com/index.php/topic,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:
http://forums.taleworlds.com/index.php/topic,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: http://forums.taleworlds.com/index.php/topic,34154.msg1259116.html#msg1259116
- skiddledou wrote a summary with pictures: http://forums.taleworlds.com/index.php/topic,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 - http://forums.taleworlds.com/index.php/topic,69313.0.html
parties.txt - http://forums.taleworlds.com/index.php/topic,61873.0.html
item_kinds1.txt - http://forums.taleworlds.com/index.php/topic,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.
http://www.mbrepository.com/file.php?id=1372

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.
http://www.mbrepository.com/file.php?id=1517

Credits:
thanks to Jordan and his great item editor for assistance with understanding the troops file
http://www.mbrepository.com/file.php?id=567


FILE HISTORY:

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.
Commands
More From This Author
Comments (Page 1 of 3)
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Charidemus on Mar 26, 2008, 12:10:19 am
Please, someone tell me how to use the editor.
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Charidemus on Mar 26, 2008, 12:11:57 am
nevermind - i forgot to read the instructions
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Stone on Mar 29, 2008, 08:45:04 am
Excellent useful resource. Well done!
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Flippy Gester on Apr 04, 2008, 11:44:02 pm
lol didnt downlaod yet. just wodnering can you edit your self and make it like a super dude? or no. jsut otehr people? lol hoep you reply
thnx
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Charidemus on Apr 05, 2008, 01:58:04 am
i don't know why, but the game crashes everytime i talk to my troops or go into battle after using your new version. :-( i thought i gave my men too many items, so i removed all the equipment, updated them, saved them and started a new game. but they still crashed. :-( Does anyone else have this problem?
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Tung on Apr 05, 2008, 06:17:53 am
Amazing :hammer: :hammer:
I'm using it, but i can't chang player's skills. Although i set them at lvl 9, they still return to the old lvl when i star a new game. Can u help me??
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Tung on Apr 05, 2008, 06:20:01 am
i don't have this prob, maybe ur troops do'nt have enough skill or str to use these item?? :roll:
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by HokieBT on Apr 05, 2008, 09:18:17 am
Are you clicking "Update Troop" after changing each players skills as described in the README file? If you don't then the change will not be saved.

After you have modified a troop and clicked update, click on a different troop and then click back on the one you just modified. You should see the skills updated and then if you save this file as troops.txt and start a new game it should work...
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by HokieBT on Apr 05, 2008, 09:27:06 am
hmm, thats strange. Can you give an example of what type of information you are changing? You should get a warning if you try to add more than the max number of items allowed so I don't think thats it. Some general comments...

1) I would be careful about making crazy changes with the 'troop flags'. You could turn a farmer into a 'female undead unkillable merchant with guaranteed ranged & shield' but that might really confuse the game...

2) make sure you open the items file that is associated with the game you are playing. The troops file has items by their number so if the items file was from a different game it might be confused...

3) are you modifying the native game or a mod? If so which one? You could potentially send me your troops.txt and item_kinds 1.txt and I could look at them.
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by kaeldragor on Apr 05, 2008, 11:52:49 am
Also, it should be pointed out to anyone having trouble seeing their changes - certain mods overwrite the skill levels of your character when they give you a background. (EGII and BoW for example.)
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by HokieBT on Apr 05, 2008, 12:03:25 pm
I don't think this is possible. I think the game overwrites the player skills when you start the game and choose the type of character you are.
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Tung on Apr 05, 2008, 06:16:54 pm
i did what the Readme told. My player have 200 str and 100 Agi, but skills don't change whatever i set. :lol: . Sorry, i am not good at E^^
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by perseus on Apr 07, 2008, 08:53:17 am
for some reason i followed all the instructions but i still came up with the same error
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Charidemus on Apr 08, 2008, 03:13:44 am
actually, this only happens when i made my troops undead :-(
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by HokieBT on Apr 09, 2008, 08:08:44 am
thanks for the info. I did some testing and I think its related to one of two things:

1) trying to use two flags (ie. undead & female)
2) from reading the forum you must have "limit_hair_colors = 0" in your module.ini for undead troops to work

I just released version 1.2 of the TroopEditor which contains several new features and some fixes for these two issues above.
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by HokieBT on Apr 09, 2008, 10:44:53 pm
what is the error ?
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Charidemus on Apr 10, 2008, 05:33:06 am
what perseus means, is that it doesn't work for him, the editor can't open properly, he got the COMDLG32.OCX or COMDLG32.DLL error and it doesnt work for me either: can you please put the older versions of the troop editor back on the repository?? :-( :-( :-( :-( :-( :-( :-( :-( :-( :-(
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Charidemus on Apr 12, 2008, 03:04:18 am
no, i just made a simple farmer an undead, and the game crashes - nevermind, ill just make them living thnx
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Charidemus on Apr 13, 2008, 02:31:59 am
hey, how do you edit faces??? the face keys are just a bunch of letters and numbers :-(
IP: logged
 Re: M&B - Unofficial Troop Editor  » posted by Intizion on Apr 17, 2008, 04:12:52 pm
Hey I started to check out your tool here and made some cool stuff but lately I get an error: ''Assertion Failed! Program: C:\Program\Mount&Blade\mount&blade.exe
File: E:\develop\mb\rgl\rglStream.h LINE: 686
''For information on how your program cause an assertion failure, see the Visual C++ documentations on asserts''

Any problem that you recognize? It pops everytime I start a new game. I havnt touched any system files and I have backupped the recommended files, and with the originals it work, but not with the modded one. Please any idea what it can be? I have run the map editor at the same time when I modded the names of the troops, and just so you know, im running version 1,0. It worked to change some stuff but the more names and stats i changed the more problematic it got. Sorry for having a noob asking for help but i had to try. Great work anyways!
Showing comments 1 to 20 of 52 Showing Page 1 of 3  1  2  3  > 
HomeSearchRankingsStatisticsAboutContact

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