Author Topic: How do i change the Unit's name?  (Read 5910 times)

0 Members and 1 Guest are viewing this topic.

Offline Frosting

  • Volunteer
  • *
  • Posts: 8
    • View Profile
  • Side: Neutral
How do i change the Unit's name?
« 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.

Offline Tali

  • First Lieutenant
  • *
  • Posts: 747
    • View Profile
  • Side: Neutral
Re: How do i change the Unit's name?
« Reply #1 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.

Offline Mr. Kochi

  • First Lieutenant
  • *
  • Posts: 443
  • Baah! Baah baah, baah? Baah baah!
    • View Profile
    • The Skin Warehouse
  • Nick: Mr. James Koach
  • Side: Neutral
Re: How do i change the Unit's name?
« Reply #2 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.

Offline Van_Hulstein

  • Captain
  • *
  • Posts: 987
  • Orangist and very proud ex-33rd Lieutenant.
    • View Profile
  • Nick: NL_VanHulstein
  • Side: Confederacy
Re: How do i change the Unit's name?
« Reply #3 on: January 27, 2013, 10:18:39 am »
Use Ctrl+f to search your unit you want to change, simple it is.
Nunc aut nunquam

Offline sev666

  • Second Lieutenant
  • *
  • Posts: 110
    • View Profile
  • Nick: 2CT_Skrim_Sgt_Sev
  • Side: Neutral
Re: How do i change the Unit's name?
« Reply #4 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?


Offline Chosen1

  • Major
  • *
  • Posts: 586
    • View Profile
  • Nick: Chosen1
  • Side: Confederacy
Re: How do i change the Unit's name?
« Reply #5 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.
« Last Edit: January 28, 2013, 02:31:10 am by Chosen1 »
9-11 Coaster.

Find out what it's like to spin, glide, skim and fly like a giant airplane when you experience "United Airlines Flight 175"® – the only flying roller coaster of its kind in the world. Riders are taunted by a head-first, face-down inverted crash into the twin towers… and that's just the beginning. Experience the full force and power of riding down the twin towers, all on one of the deadliest tracks in the world.

Offline EgoisticPenny

  • Corporal
  • *
  • Posts: 29
  • I quite liked MM.
    • View Profile
  • Side: Union
Re: How do i change the Unit's name?
« Reply #6 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).

Offline Bad_Highlander

  • Second Lieutenant
  • *
  • Posts: 468
    • View Profile
  • Side: Neutral
Re: How do i change the Unit's name?
« Reply #7 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 ;)

^^He's Right^^

Offline Emperor Napoleon

  • Colonel
  • *
  • Posts: 1647
    • View Profile
  • Nick: 1erMar/IrishNap
  • Side: Union
Re: How do i change the Unit's name?
« Reply #8 on: February 20, 2013, 06:25:59 pm »
This is confusing, theres only 1 folder called "troops.txt" or are they in that?

Offline Bad_Highlander

  • Second Lieutenant
  • *
  • Posts: 468
    • View Profile
  • Side: Neutral
Re: How do i change the Unit's name?
« Reply #9 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 :)

^^He's Right^^

Offline Emperor Napoleon

  • Colonel
  • *
  • Posts: 1647
    • View Profile
  • Nick: 1erMar/IrishNap
  • Side: Union
Re: How do i change the Unit's name?
« Reply #10 on: February 21, 2013, 08:48:40 am »
Nice, thanks ;)

Offline ColtonOswald

  • Private
  • *
  • Posts: 45
  • Leader of 42ND Macgregor regiment
    • View Profile
  • Nick: Colton_M_Jack
  • Side: Union
Re: How do i change the Unit's name?
« Reply #11 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
~Colton M. Jack leader of 42nd Macgregor regiment.
Greetings from the 42nd Macgregor regiment!