Flying Squirrel Entertainment

Mount & Blade Warband: Napoleonic Wars => Modifications => Topic started by: Frosting on January 02, 2013, 01:26:12 am

Title: How do i change the Unit's name?
Post by: Frosting on January 02, 2013, 01:26:12 am
Dumb question if you wanna say..

But how do i change the Unit's name in Napoleonic Wars again?

For example changing the 33rd Regiment of Foot's name or some thing like that.
Title: Re: How do i change the Unit's name?
Post by: Tali on January 02, 2013, 01:30:53 am
Dumb question if you wanna say..

But how do i change the Unit's name in Napoleonic Wars again?

For example changing the 33rd Regiment of Foot's name or some thing like that.

There is a file called troops.txt in your NW folder, you simply edit that one.
Title: Re: How do i change the Unit's name?
Post by: Mr. Kochi on January 27, 2013, 07:52:28 am
In the "troops.txt" file, look up whatever unit you wish to edit and rewrite only the part that shows up ingame. DON'T FORGET to have a backup of the original file and make sure you have the latest version of the game.
Title: Re: How do i change the Unit's name?
Post by: Van_Hulstein on January 27, 2013, 10:18:39 am
Use Ctrl+f to search your unit you want to change, simple it is.
Title: Re: How do i change the Unit's name?
Post by: sev666 on January 27, 2013, 10:22:00 pm
Ive edited the unit names
 
Spoiler
trp_french_infantry_ai 1st_New_Yorks Militia 0 133169152 0 0 7 0 0
  187 0 582 0 473 0 105 0 31 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
  7 5 4 4 20
 50 5 130 5 120 5 10
274 131072 0 48 208896 0
  34359738369 1315051091194281984 1835136 0 50465891015 7916447985573822463 2031036 0

trp_french_infantry2_ai 2nd_Virgina Grenadiers 0 133169152 0 0 7 0 0
  189 0 599 0 478 0 105 0 31 0 91 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
  7 5 4 4 20
 50 5 130 5 120 5 10
274 131072 0 48 208896 0
  34359738369 1315051091194281984 1835136 0 50465891015 7916447985573822463 2031036 0
[close]
but when i go to the module host a map and pick one of the sides as france the names havent changed how do i fix this?
Title: Re: How do i change the Unit's name?
Post by: Chosen1 on January 28, 2013, 02:23:21 am
You're editing the wrong troop names. I believe those are the custom battle AI names.. you're going to want to edit the ones like

Code
["french_infantry","45e Regiment d'Infanterie de ligne","Line Infantry",tf_guarantee_all,0,0,fac_france,
   [itm_french_45e_body_ranker,itm_french_voltigeur_officer_pants,itm_french_inf_shako_45_ranker,itm_bullets,itm_french_charleville],
   def_attrib_multiplayer|level(20),wpex(50,5,130,5,150,5),knows_common|knows_ironflesh_3|knows_power_strike_3|knows_athletics_3,swadian_face_middle_1, swadian_face_old_2],

that one

EDIT: My bad, thats how it looks in the actual module troops file.

You're going to want to edit this

Code
trp_french_infantry 45e_Regiment_d'Infanterie_de_ligne Line_Infantry 0 133169152 0 0 7 0 0
  187 0 582 0 473 0 105 0 31 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
  14 14 4 4 20
 50 5 130 5 150 5 10
274 131072 0 48 208896 0
  34359738369 1315051091194281984 1835136 0 50465891015 7916447985573822463 2031036 0

instead trp_french_infantry_ai one.
Title: Re: How do i change the Unit's name?
Post by: EgoisticPenny on January 28, 2013, 04:04:45 am
A pretty obvious tip; but it is one that can be a life-saver:  If you're going to edit the troop names make sure to use underscores (_) in the place of spaces; for example, 85th (Bucks Volunteers) Regiment of Foot would become 85th_(Bucks Volunteers)_Regiment_of_Foot.  However, you needn't add them when putting in punctuation marks that aren't preceded/followed by a space(s).
Title: Re: How do i change the Unit's name?
Post by: Bad_Highlander on February 20, 2013, 11:21:00 am
Make sure you make a copy of your Napoleonic Wars folder first before you do this.. just incase ;)
Title: Re: How do i change the Unit's name?
Post by: Emperor Napoleon on February 20, 2013, 06:25:59 pm
This is confusing, theres only 1 folder called "troops.txt" or are they in that?
Title: Re: How do i change the Unit's name?
Post by: Bad_Highlander on February 20, 2013, 11:56:22 pm
Warband>Modules>Napoleonic Wars>Troops.txt    you have all troop names in there.  You will have to scroll down to find the specific ones you have to choose.  Itss start off with the different unit type eg. Line inf, german line inf, arty .. etc  it will do this for all antions then after that you will have all the regiments listed per ranks too eg.  trp_british_highlander 42nd_Regiment_of_Foot_(Black_Watch) Line_Infantry   (these are the ones you want to change)   but as i said, make a copy of your whole napoleonic wars folder before you start :)
Title: Re: How do i change the Unit's name?
Post by: Emperor Napoleon on February 21, 2013, 08:48:40 am
Nice, thanks ;)
Title: Re: How do i change the Unit's name?
Post by: ColtonOswald on March 29, 2013, 08:08:53 pm
Ive edited it before myself.



trp_british_highlander 42nd_Regiment_of_Clan_(Macgregor) Line_Infantry 0 133169152 0 0 6 0 0
  246 0 627 0 628 0 533 0 35 0 105 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
  14 14 4 4 20
 50 500 130 5 150 5 10
274 131072 0 48 208896 0
  34359738369 1315051091194281984 1835136 0 50465891015 7916447985573822463 2031036 0