Results 1 to 13 of 13

Thread: How to change names?

  1. #1
    Prussian Musketeer Member Faenaris's Avatar
    Join Date
    Jan 2004
    Location
    Belgium.
    Posts
    348

    Default How to change names?

    I was fooling around a bit in the data files of M2TW and I tried changing the name of a starting general.

    His name was Otto von Kassel, a HRE. I wanted to name him "Daan von Swabia". I went to the descr_strat file and changed his name. I also added the names "Daan" to the descr_names folder and the descr_names_lookup.

    The general had no name when I started M2TW.

    Is there a file I forgot to change?
    Signature by Atterdag

    "Hunde, wollt ihr ewig leben?" ("Dogs, do you want to live forever?") - Frederick II of Prussia at the battle of Kolin when adressing his fleeing Prussian soldiers.

  2. #2
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: How to change names?

    Yep, text/export_names.txt

  3. #3
    Prussian Musketeer Member Faenaris's Avatar
    Join Date
    Jan 2004
    Location
    Belgium.
    Posts
    348

    Default How to change names?

    Please delete this. Double post.
    Last edited by Faenaris; 12-26-2006 at 13:49. Reason: Double post
    Signature by Atterdag

    "Hunde, wollt ihr ewig leben?" ("Dogs, do you want to live forever?") - Frederick II of Prussia at the battle of Kolin when adressing his fleeing Prussian soldiers.

  4. #4
    Prussian Musketeer Member Faenaris's Avatar
    Join Date
    Jan 2004
    Location
    Belgium.
    Posts
    348

    Default Re: How to change names?

    Aha, thanks alpaca.

    Oh, and thanks again for your work on the PTPV mod. It is a work of art.
    Signature by Atterdag

    "Hunde, wollt ihr ewig leben?" ("Dogs, do you want to live forever?") - Frederick II of Prussia at the battle of Kolin when adressing his fleeing Prussian soldiers.

  5. #5
    Prussian Musketeer Member Faenaris's Avatar
    Join Date
    Jan 2004
    Location
    Belgium.
    Posts
    348

    Default Re: How to change names?

    Just took a look at the text folder and there wasn't an export_names.txt
    There was a names.txt.string.bin file, other than that, nothing.

    Should I unpack again?

    EDIT: After some searching, I downloaded the "names.txt" file from ER, added my name and then placed the file in my "text" folder. Works like a charm. Thanks again for the help, alpaca.
    Last edited by Faenaris; 12-26-2006 at 14:53.
    Signature by Atterdag

    "Hunde, wollt ihr ewig leben?" ("Dogs, do you want to live forever?") - Frederick II of Prussia at the battle of Kolin when adressing his fleeing Prussian soldiers.

  6. #6
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: How to change names?

    Ah right, it's names.txt not export_names.txt lol
    No, you don't have to unpack again, that won't change anything.
    You'll have to convert the .strings.bin files using my .strings.bin converter tool. You can find it in the tutorials section.

  7. #7
    Man-at-Arms Member Dave1984's Avatar
    Join Date
    Jun 2006
    Location
    Staffordshire
    Posts
    255

    Default Re: How to change names?

    Hi, I've changed all the names in the descr_names and names.txt and descr_names_lookup and finally I come to descr_strat.


    Now I want to change the names of the living characters at the start of the game.
    So I change all instances of them and the game boots but bumps me back to the menu when I try to start the campaign. The error message I get simply says

    13:59:36.311 [script.err] [error] Script Error in data/world/maps/campaign/imperial_campaign/descr_strat.txt, at line 2216, column 47
    could not find next child. Children list must be terminated with an end

    Looking at the relevant section in strat, it is a point about halfway through the first line of the relatives section, and is actually in the middle of a name. There is definitely an , end bit, and the format is all exactly the same as other trees.

    So how can I get this to work?

    Not changing the names and leaving them as their defaults causes the game to load fine, but the characters are all named ; and only the faction leader appears on the family tree, meaning of course that there is no heir and you have to wait for him to adopt a child or marry a new woman in order to start generating characters on the family tree. However all characters that are recruited or adopted or born or appear or whatever after the start of the game are given the new names I have added perfectly and correctly.

    Obviously having to wait for an adoption to kickstart your family tree at the start of a campaign is not a great idea, so can anyone tell me how to fix this?

    Help is much appreciated, thanks.

  8. #8

  9. #9
    Relentless Bughunter Senior Member FactionHeir's Avatar
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    8,115

    Default Re: How to change names?

    I've done a few tests on this changing the descr names and the lookup file and had the same results as the OP.

    After reading this topic and especially alpaca's reply, I wonder whether I need to change 3 files now for the names to fix or only the names.txt (after bin string it)

    D Wilson:
    I tried the same and got the same result as you (I tried changing HRE names etc)
    I think thats because the family is referenced in another file which determines your family tree to begin with or the spaces between the children names may be significant (note the spacing varies). I think that the info being in another file is more likely. You also can't change the spouse names at the start or it will mess up as well btw.
    Want gunpowder, mongols, and timurids to appear when YOU do?
    Playing on a different timescale and never get to see the new world or just wanting to change your timescale?
    Click here to read the solution
    Annoyed at laggy battles? Check this thread out for your performance needs
    Got low fps during siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus many annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this! (included in VanillaMod 0.93)

  10. #10
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: How to change names?

    Quote Originally Posted by FactionHeir
    I've done a few tests on this changing the descr names and the lookup file and had the same results as the OP.

    After reading this topic and especially alpaca's reply, I wonder whether I need to change 3 files now for the names to fix or only the names.txt (after bin string it)

    D Wilson:
    I tried the same and got the same result as you (I tried changing HRE names etc)
    I think thats because the family is referenced in another file which determines your family tree to begin with or the spaces between the children names may be significant (note the spacing varies). I think that the info being in another file is more likely. You also can't change the spouse names at the start or it will mess up as well btw.
    Did you try to make sure to exactly keep the format? The children have to be in age order iirc, and the tabs may have some bearing, not sure.

  11. #11
    Man-at-Arms Member Dave1984's Avatar
    Join Date
    Jun 2006
    Location
    Staffordshire
    Posts
    255

    Default Re: How to change names?

    Quote Originally Posted by alpaca
    Did you try to make sure to exactly keep the format? The children have to be in age order iirc, and the tabs may have some bearing, not sure.
    I ensured that everything was in exactly the correct order, agewise and "tabwise", I scrapped the whole file and rewrote it from scratch and I've still got the same problem and I just can't see what it is. I've even tried putting the names in for a different faction on the off chance that the one I was working with (Milan) had something preventing it working properly.

    Have you or anyone you know succeeded in this?

    Because the names not working from the off removes all family members from the tree the only thing I'm doing now until it can be fixed is to keep in the names from descr strat on the names lookup and so on and those names only, alongside the newones I've put in, and it keeps the first generation with Milanese names but pretty much every character, recruited adopted or born after that has a (in this case) Welsh name as I intended, but it's still a frustrating dirty little fix just to make sure everything else is working.

  12. #12
    Relentless Bughunter Senior Member FactionHeir's Avatar
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    8,115

    Default Re: How to change names?

    Quote Originally Posted by alpaca
    Did you try to make sure to exactly keep the format? The children have to be in age order iirc, and the tabs may have some bearing, not sure.
    Yup. Just changed the name itself.
    I.e. for HRE i named the kid "Heinrich" instead of "Henry"
    Tried a few other names too but to no avail. Same for the wife of the king.
    Want gunpowder, mongols, and timurids to appear when YOU do?
    Playing on a different timescale and never get to see the new world or just wanting to change your timescale?
    Click here to read the solution
    Annoyed at laggy battles? Check this thread out for your performance needs
    Got low fps during siege battles in particular? This tutorial is for you
    Want to play M2TW as a Vanilla experience minus many annoying bugs? Get VanillaMod Visit the forum Readme
    Need improved and faster 2H animations? Download this! (included in VanillaMod 0.93)

  13. #13

    Default Re: How to change names?

    One quick question: I want to correct some of the names for the HRE (most of them aren't even names and lots of them are misspelled) - so to fix e.g. "Gottfied", (which lacks an r), I plan to just go into names.txt and change the line {Gottfied}Gottfied to {Gottfied}Gottfried - would that work or do I have to mess around with the other files as well?

    Also, would changing names that way cause conflicts with characters existing in the beginning of the game (like I change {Henry}Henry to {Henry}Heinrich)?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO