Page 1 of 2 12 LastLast
Results 1 to 20 of 29

Thread: A Guide to Modding Character Names in M2TW

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    deRougemont's Avatar Yeoman
    Join Date
    Nov 2006
    Location
    North Carolina, USA
    Posts
    2,539

    Icon2 A Guide to Modding Character Names in M2TW

    Please do not post questions in this thread. Refer instead to the link here. This link will take you to my forum where an regularly updated guide exists and where I answer any and all question related to this topic.

    Regards,

    deRougemont


    A Guide to Modding Character Names in MTW2

    The name-modding process in MTW2 is relatively simple. The hardest part is doing the tedious dirty work of creating the necessary .txt file-fragments for the faction(s) you are concerned with. However, if you are new to name-modding in MTW2, nothing will be immediately clear when you start. This guide is designed to point out the most important details about the process.

    The Files

    There are four .txt files in MTW2 that control what and how the character names will appear in the game. Below I’ve listed them and their locations in the MTW2 folders. (Keep in mind that to find these files you must use the unpacker tool that came with patch 1.1. For everyone's convenience and reference I have posted the vanilla names files at the bottom of this post.)

    1.) descr_names.txt – located in MTW2/data

    2.) names.txt.bin – located in MTW2/data/text

    3.) descr_names_lookup.txt – located in MTW2/data

    4.) descr_strat.txt – located in MTW2/data/world/maps/imperial_campaign

    What To Know About The Files

    1.) descr_names.txt – The most important of these files is the descr_names.txt. Unlike the other files, it is organized firstly by faction; then by male first names, surnames and female first names. When the program creates a name for a newly created character in the game, it searches this file first. Therefore, no matter what names you have listed in any of the other three files, if that name is not listed in the descr_names.txt, you will never see it appear in the game (but the game will still function).

    2.) names.txt.bin – On the other hand, if the names in descr_names.txt are not listed in the names.txt file you will have a serious error. More than likely when you try to start a new campaign, it won’t load, but kick you back to the MTW2 main menu. I personally have no idea what purpose names.txt serves. It is simply a list of all the names (one name per line) organized in no particular fashion, such as:

    {Henry}Henry
    {Agatha}Agatha
    {von_Sachsen}von Sachsen

    However, it should be pointed out that in names.txt you can alter the way the program sees a name, and how that name is actually displayed in the game. For example, if you have the following name:

    {Henry}Henry

    …the game will display Henry in-game. However if you change that name listing to:

    {Henry}Heinrich

    …anytime the program hits Henry in descr_names.txt, and then moves to names.txt, it will think you wish to have Heinrich rather than Henry show up in-game. Why this works is unknown to me, but it could be useful. Keep in mind however, that the above example would change the name Henry to Heinrich for every faction that uses that name since the names.txt file is not organized by factions. Thus, in this case, Both HRE and England would be affected by changes made to the line {Henry}Henry, as both factions contain a reference to Henry in their descr_names.txt listings. Also keep in mind when you create these files that a byname composed of two words such as “von Sachsen” must be written with an underscore mark when it is contained within brackets. Thus, “von_Sachsen”.

    There is one last thing to point out concerning the names.txt. When you add this file to the MTW2/data/text folder and start the game, the program will convert your names.txt into a names.txt.bin file and place it in the same folder. So any time you alter the names.txt file, make sure to delete the previous names.txt.bin file created by your computer (if one exists).

    3.) descr_names_lookup.txt – This file is similar to names.txt in that it is one, single, unorganized list that lists every name in the game; one per line. Though it is simpler than names.txt in that names are listed so:

    Henry
    Agatha
    von_Sachsen

    Like names.txt, those bynames with two words in them need to include and underscore. Other than that, there is nothing special or noteworthy about this file that I know of.

    4.) descr_strat.txt – This file contains a load of data that effects what you find on the map when you start a new campaign; including character names. Since every faction begins a campaign with a family and a few characters already on the map, a section of the descr_strat.txt is dedicated to giving them all names. The problem with this is that when you change the names in the other three .txt files, you may have deleted some starting character names. So before ever starting a new campaign with your new names lists, you need to make sure that all the names in the descr_strat.txt are also in the names.txt, descr_names.txt, and descr_names_lookup.txt. If you don’t, you will get kicked back the main menu when you start a new campaign. Also, when modding names in this file, be careful as these files seem to be space sensitive. So if you kick around parts of the text while changing the names, you may end up getting the error I just mentioned above. Though I have personally modded this file many times, I rarely do so anymore. Its simply much easier to put up with a few names I don’t like than to alter this particular file.

    Potential Sources for Medieval Era Names (most of which can be found online)

    *Geneologies
    *Battle histories
    *Monastery records
    *Church records
    *Articles pertaining to famous writers/leaders/weapons makers, etc.
    *Typing in one known name will usually bring up articles that include the names of many other people from the same time period
    *Title histories (i.e., searching for "English Baronies" will give you tons of sites that list everyone who has ever held any English royal baronial title in the Medieval period.
    *Town histories

    Comments: This Guide is a work in progress. It is rough, but I will flesh it out and generally improve it over time. For right now, it is better than nothing. However, for those with experience modding these files I will leave this thread open so can add hints, tricks or advice to modding these files. I will attempt to add what others suggest to the guide when I can. Thanks!
    Last edited by deRougemont; July 11, 2007 at 03:08 AM.






  2. #2
    Johan217's Avatar Campidoctor
    Join Date
    Jan 2005
    Location
    Gent, Belgium
    Posts
    1,965

    Default Re: A Guide to Modding Character Names in MTW2

    Using a spreadsheet program for editing names.txt
    This tip should save you a lot of typework when editing names.txt. In the example I use OpenOffice Calc, but you can use any other spreadsheet program (like MS Excel).

    1) First, type (or copy) your names in the spreadsheet program.


    2) Make sure that Autocorrection is turned OFF.


    3) Select the column you want to edit by right clicking on the column name.


    4) Click on "Cell Properties"


    5) Here, you can change the notation of the cells. This means that anything that is written in the cells will be presented in a specific format. In this case, we want the names to be written so that Louis becomes {Louis}Louis. The notation code for this is \{@\}@.
    Enter \{@\}@ in the field User Specified Notation Code and click OK.


    Note: It is possible that other spreadsheet programs like Excel use a different notation code system. As I don't have Excel you'll have to consult the manual. Sorry.

    6) The result is this: all names in the column are now nicely written in the {name}name format, so you don't need to type it all manually. Note that you will still have to remove any spaces or special characters (like ' é ç etc) between the brackets and replace them with an underscore _. Then, just copy and paste the names into your names.txt file.
    Rock 'n' roll is the only religion that will never let you down

  3. #3
    Lopus's Avatar Biarchus
    Join Date
    Oct 2004
    Location
    SJ, MM, Republic of the Banana (Philippines)
    Posts
    664

    Default Re: A Guide to Modding Character Names in MTW2

    deRougemont, I've a question, the names in descr_strat.txt, should it match the names within the {} or outside or the names within the {} but without the underscore?

  4. #4
    deRougemont's Avatar Yeoman
    Join Date
    Nov 2006
    Location
    North Carolina, USA
    Posts
    2,539

    Default Re: A Guide to Modding Character Names in MTW2

    Quote Originally Posted by Lopus View Post
    deRougemont, I've a question, the names in descr_strat.txt, should it match the names within the {} or outside or the names within the {} but without the underscore?
    Hmmm, not exactly clear what the question is, but I'll try... The names in the descr_strat.txt should match the names outside of the {}. Also, whatever is outside the {} is exactly what you will see in the game. What is inside the {} is only for the use of the program/computer.






  5. #5
    Lopus's Avatar Biarchus
    Join Date
    Oct 2004
    Location
    SJ, MM, Republic of the Banana (Philippines)
    Posts
    664

    Default Re: A Guide to Modding Character Names in MTW2

    Quote Originally Posted by deRougemont View Post
    Quote Originally Posted by Lopus View Post
    deRougemont, I've a question, the names in descr_strat.txt, should it match the names within the {} or outside or the names within the {} but without the underscore?
    Hmmm, not exactly clear what the question is, but I'll try... The names in the descr_strat.txt should match the names outside of the {}. Also, whatever is outside the {} is exactly what you will see in the game. What is inside the {} is only for the use of the program/computer.
    So, in names.txt (later the names.txt.string.bin) there are two names. The names inside the {} should not have spaces and ' marks, substitute _ for these correct?
    In export_descr_names.txt it should be the names outside the {}.
    In export_descr_names.lookup.txt it should be the names inside the {}.
    In descr_strat.txt it should be the names outside the {}.

    Thanks for the help deRougemont.

  6. #6
    deRougemont's Avatar Yeoman
    Join Date
    Nov 2006
    Location
    North Carolina, USA
    Posts
    2,539

    Default Re: A Guide to Modding Character Names in MTW2

    Quote Originally Posted by Lopus View Post
    So, in names.txt (later the names.txt.string.bin) there are two names. The names inside the {} should not have spaces and ' marks, substitute _ for these correct?
    In export_descr_names.txt it should be the names outside the {}.
    In export_descr_names.lookup.txt it should be the names inside the {}.
    In descr_strat.txt it should be the names outside the {}.

    Thanks for the help deRougemont.
    Correct! You got it.






  7. #7
    Lopus's Avatar Biarchus
    Join Date
    Oct 2004
    Location
    SJ, MM, Republic of the Banana (Philippines)
    Posts
    664

    Default Re: A Guide to Modding Character Names in MTW2

    Hmmm ... I tried it, but ended up getting error messages.

    I edited the following name in names.txt (and erased the old names.txt.string.bin)
    {Curthose}Robert Curthose

    Then in export_descr_names.txt I added
    Robert Curthose under names for England and Normans and erased it as a surname.

    Then in export_descr_names.lookup.txt I didn't edit Curthose (as it was already) in the file.

    In the descr_strat.txt file I just used Curthose and it comes out alright, but when I use Robert Curthose in the descr_strat.txt file, I get an error message (character record cannot be found).

    This is FYI.

  8. #8
    deRougemont's Avatar Yeoman
    Join Date
    Nov 2006
    Location
    North Carolina, USA
    Posts
    2,539

    Default Re: A Guide to Modding Character Names in MTW2

    Quote Originally Posted by Lopus View Post
    Hmmm ... I tried it, but ended up getting error messages.

    I edited the following name in names.txt (and erased the old names.txt.string.bin)
    {Curthose}Robert Curthose

    Then in export_descr_names.txt I added
    Robert Curthose under names for England and Normans and erased it as a surname.

    Then in export_descr_names.lookup.txt I didn't edit Curthose (as it was already) in the file.

    In the descr_strat.txt file I just used Curthose and it comes out alright, but when I use Robert Curthose in the descr_strat.txt file, I get an error message (character record cannot be found).

    This is FYI.
    Yeah, that wouldn't work. You can't put two names with a space in between outside the {}.

    You could put:

    {Curthose}Curthose
    {Curthose}Robert

    but not

    {Curthose}Robert Curthose

    The space in the name outside {} is giving you the problem, since the program sees no _ inside the {}. At least, that's how I think it works.

    Anyway, if you have "Robert Curthose" in the descr_strat.txt then all you need is:

    {Robert}Robert
    {Curthose}Curthose

    ...and make sure Robert and Curthose are listed in the other two .txt files. Then it should work.






  9. #9
    Lopus's Avatar Biarchus
    Join Date
    Oct 2004
    Location
    SJ, MM, Republic of the Banana (Philippines)
    Posts
    664

    Default Re: A Guide to Modding Character Names in MTW2

    No, I meant by using:
    {Curthose}Robert Curthose
    in the names.txt file
    and just typing Curthose in the descr_strat.txt file, it works. But as I understood your description, I should have typed Robert Curthose in the descr_strat.txt file.

  10. #10
    Methoz's Avatar Senator
    Join Date
    Jul 2005
    Location
    Bohemia (Czech: Čechy; German: Böhmen) (CZE)
    Posts
    1,281

    Default Re: A Guide to Modding Character Names in MTW2

    i think you excel isnt englsh i dont understan
    TotalWarForum.cz
    Česko-Slovenské fórum o hrách ze série Total War

  11. #11
    vlad's Avatar Artifex
    Join Date
    Nov 2004
    Location
    city Kiev , Ukraine
    Posts
    2,723

    Default Re: A Guide to Modding Character Names in MTW2

    Using a spreadsheet program for editing names.txt
    where i can find this prog
    i need edit many names toooooooooooo
    Video about Vlad Total War Rome Expansion and Barbarian invasion mods https://www.youtube.com/watch?v=iOFZWS5gE-o
    my facebook page https://www.facebook.com/vladimir.kudin/
    my youtube page https://www.youtube.com/vlad9vt
    New download links of Vlad Total war mod Rome Expansion and Barbarian invasion on google drive https://drive.google.com/file/d/1IU1...ew?usp=sharing

  12. #12
    Lopus's Avatar Biarchus
    Join Date
    Oct 2004
    Location
    SJ, MM, Republic of the Banana (Philippines)
    Posts
    664

    Default Re: A Guide to Modding Character Names in MTW2

    @Methos: What Johann217 is talking about is using the format (ctrl + 1) in excel. I think he is using a German version of openoffice calc instead, but the basic function works the same way.

    @vlad: Excel is part of microsoft office. The example used is openoffice calc, a freeware you can download here. <-- link courtesy of -apocalypsis-

  13. #13
    liper's Avatar Laetus
    Join Date
    Mar 2007
    Location
    Belgium
    Posts
    5

    Default Re: A Guide to Modding Character Names in MTW2

    Hi
    I try to change the caracther names, I think I did 3 of the 4 points, I can't do the 2) because I can't open the files. What Have I to use to open this files. I don't uderstand a lot of thing in modding and I don't understand very well English (I'm belgian so I speak french) and I think I don't speak very well English. I can't find any french tuto, so I need your help. Can you help with a easy langage?

  14. #14
    Lopus's Avatar Biarchus
    Join Date
    Oct 2004
    Location
    SJ, MM, Republic of the Banana (Philippines)
    Posts
    664

    Default Re: A Guide to Modding Character Names in MTW2

    Quote Originally Posted by liper View Post
    Hi
    I try to change the caracther names, I think I did 3 of the 4 points, I can't do the 2) because I can't open the files. What Have I to use to open this files. I don't uderstand a lot of thing in modding and I don't understand very well English (I'm belgian so I speak french) and I think I don't speak very well English. I can't find any french tuto, so I need your help. Can you help with a easy langage?
    Here is a copy of the names.txt file. Edit this (make a backup copy) and delete the names.txt.string.bin file.

    I hope this helps.

  15. #15
    liper's Avatar Laetus
    Join Date
    Mar 2007
    Location
    Belgium
    Posts
    5

    Default Re: A Guide to Modding Character Names in MTW2

    I don't if I understand your post, I save your copy and add it in my data, and I delete the names.txt.bin file but I can't begin a campaign. Waht did I do bad ? Can tou try to speak with easy words? thanks

  16. #16
    deRougemont's Avatar Yeoman
    Join Date
    Nov 2006
    Location
    North Carolina, USA
    Posts
    2,539

    Default Re: A Guide to Modding Character Names in MTW2

    Please do not post questions in this thread. Refer instead to the link here. This link will take you to my forum where an regularly updated guide exists and where I answer any and all question related to this topic.

    Regards,

    deRougemont
    Last edited by deRougemont; April 08, 2007 at 02:05 AM.






  17. #17

    Default Re: A Guide to Modding Character Names in MTW2

    Ive followed this guide step by step and i get the return to the main menu, i did something different tho i added names that weren't in the game originally could this cause the problem?

  18. #18

    Default Re: A Guide to Modding Character Names in M2TW

    Excellent. Thanks!

  19. #19
    Ser Elmond Starr's Avatar Decanus
    Join Date
    Aug 2015
    Location
    No Man's Land
    Posts
    506

    Default Re: A Guide to Modding Character Names in M2TW

    I have a question that has not been answered anywhere, and it's not such a big deal, so I just decided to post it in this thread: How do you make titles for characters? For example, I want a character to be called Jon, the Lord Commander of the Night's Watch. How exactly do I do that? Is it like this?
    descr_strat:
    character Jon_1...
    descr_names:
    Jon_1
    names.txt:
    {Jon_1}Jon, the Lord Commander of the Night's Watch
    ??????????????

  20. #20

    Default Re: A Guide to Modding Character Names in M2TW

    or Jon 998th commander of the night's watch? Kidding of course. There's a chance that a new general to that faction could end up with the same name. Best option is to leave Jon in names.txt as jon and use a trait that gives someone thats in the game from the start the trait that'll give the surname you want. If you look into the http://www.twcenter.net/forums/showthread.php?t=77650 tutorial it'll explain how to do this so only one character can gain this trait meaning only one character can have this surname. I use this thought of character names unique often and best to find a trait that gives an epithet and follow the logic it uses and it's rather simple

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •