How to rename units
Moderators: rbodleyscott, Slitherine Core, Gothic Labs
-
- Lieutenant Colonel - Elite Panther D
- Posts: 1368
- Joined: Tue Dec 08, 2009 9:38 am
- Location: Italy
How to rename units
Differently from the editor of FoG II the P&S one doesn't seem to have a button to rename units into a user made scenario.
But I find that in every battle created by the modders each unit has its own specific name.
How is this possible?
But I find that in every battle created by the modders each unit has its own specific name.
How is this possible?
"Audentis fortuna iuvat"
- Virgilius
(Good luck favours the brave)
- Virgilius
(Good luck favours the brave)
Re: How to rename units
If you want to rename the Hussars that appear in Text1.txt as :
IDS_UNITINFO100, "Hussars - Light Horse with Carbine.",
IDS_UNITNAME100, "Hussars",
then :
IDS_UNITINFO100, "New Name - New description",
IDS_UNITNAME100, "New Name",
where 100 is the number of the unit that appears in the SQUADS.cvs file.
IDS_UNITINFO100, "Hussars - Light Horse with Carbine.",
IDS_UNITNAME100, "Hussars",
then :
IDS_UNITINFO100, "New Name - New description",
IDS_UNITNAME100, "New Name",
where 100 is the number of the unit that appears in the SQUADS.cvs file.
-
- Lieutenant Colonel - Elite Panther D
- Posts: 1368
- Joined: Tue Dec 08, 2009 9:38 am
- Location: Italy
Re: How to rename units
Thanks a lot Athos, your help is much appreciated!
"Audentis fortuna iuvat"
- Virgilius
(Good luck favours the brave)
- Virgilius
(Good luck favours the brave)
-
- Lieutenant Colonel - Elite Panther D
- Posts: 1368
- Joined: Tue Dec 08, 2009 9:38 am
- Location: Italy
Re: How to rename units
Hi Athos, with your hints I was able to rename the various kind of units in general (for example Balkan Cavalry are now Wallachian cavalry).
But, at the moment, I still am not able to rename singularly each unit of that particular kind in order to give each one the name of his general (for example Huseyn Pasha's Wallachian Cavalry and Damad Alì's Wallachian Cavalry).
Looking at the files of other scenarios, like Blenheim, I noted that to achieve this result in the squads.csv file new units have been added in order, like:
Blue_Bayonet_RG,1,Allies,2
Blue_Bayonet_RG1,2,Allies,2
Blue_Bayonet_RG2,3,Allies,2
and so on, each then named in different manner, but when I tried to do the same with a Pike and Shot unit the game crashed and an error signal appeared saying: "Duplicate unit name in custom campaign squads file: BLUE_PIKE_AND_SHOT (0)"
followed by this one: "Unhandled exception! ExpCode:0x80000003 ExpFlags:0 ExpAddress:0x00490240".
Any idea of what got wrong here?
But, at the moment, I still am not able to rename singularly each unit of that particular kind in order to give each one the name of his general (for example Huseyn Pasha's Wallachian Cavalry and Damad Alì's Wallachian Cavalry).
Looking at the files of other scenarios, like Blenheim, I noted that to achieve this result in the squads.csv file new units have been added in order, like:
Blue_Bayonet_RG,1,Allies,2
Blue_Bayonet_RG1,2,Allies,2
Blue_Bayonet_RG2,3,Allies,2
and so on, each then named in different manner, but when I tried to do the same with a Pike and Shot unit the game crashed and an error signal appeared saying: "Duplicate unit name in custom campaign squads file: BLUE_PIKE_AND_SHOT (0)"
followed by this one: "Unhandled exception! ExpCode:0x80000003 ExpFlags:0 ExpAddress:0x00490240".
Any idea of what got wrong here?
"Audentis fortuna iuvat"
- Virgilius
(Good luck favours the brave)
- Virgilius
(Good luck favours the brave)
Re: How to rename units
To create a new unit, you'll have to :
1) Add it in squads.csv file with a new name and number that haven't already been used in the file.
So if there is already a 'Blue_Bayonet_RG,1,Allies,2 etc.' you can't use the name 'Blue_Bayonet_RG' nor the number '1'.
Call it for example 'My_Bayonet, the last number of the list + 1, Allies, 2, etc.'
So you copy-paste the line you want and change the unit name, its number and whatever traits you want to modify.
2) Give this unit a name in Text1.txt. Now you know how to :
IDS_UNITINFOthe last number of the list + 1, "Bla",
IDS_UNITNAMEthe last number of the list + 1,"Bla",
3) Add this unit to the army list(s) in the ArmyList.txt file and decide how many of it you want.
In my example, it is 'My_Bayonet' that you add to your Army list(s).
If there's 7 units in the army list and you want to add an 8th unit, 'My_Bayonet' in my example above, then you'll add :
UNIT_8 My_Bayonet
MIN_8 1
MAX_8 6
It means the unit 8 is My_Bayonet. Min : 1. Max : 6.
(Hoping I don't forget anything : I haven't done it for ages)
1) Add it in squads.csv file with a new name and number that haven't already been used in the file.
So if there is already a 'Blue_Bayonet_RG,1,Allies,2 etc.' you can't use the name 'Blue_Bayonet_RG' nor the number '1'.
Call it for example 'My_Bayonet, the last number of the list + 1, Allies, 2, etc.'
So you copy-paste the line you want and change the unit name, its number and whatever traits you want to modify.
2) Give this unit a name in Text1.txt. Now you know how to :
IDS_UNITINFOthe last number of the list + 1, "Bla",
IDS_UNITNAMEthe last number of the list + 1,"Bla",
3) Add this unit to the army list(s) in the ArmyList.txt file and decide how many of it you want.
In my example, it is 'My_Bayonet' that you add to your Army list(s).
If there's 7 units in the army list and you want to add an 8th unit, 'My_Bayonet' in my example above, then you'll add :
UNIT_8 My_Bayonet
MIN_8 1
MAX_8 6
It means the unit 8 is My_Bayonet. Min : 1. Max : 6.
(Hoping I don't forget anything : I haven't done it for ages)
-
- Lieutenant Colonel - Elite Panther D
- Posts: 1368
- Joined: Tue Dec 08, 2009 9:38 am
- Location: Italy
Re: How to rename units
Thank's Athos, with your hints it was easy to rename the units and, being working on a simple scenario and not a campaign, it wasn't even necessary to use the armylist.txt file! 

"Audentis fortuna iuvat"
- Virgilius
(Good luck favours the brave)
- Virgilius
(Good luck favours the brave)
Re: How to rename units
Indeed !being working on a simple scenario and not a campaign, it wasn't even necessary to use the armylist.txt file!![]()

-
- Lieutenant Colonel - Elite Panther D
- Posts: 1368
- Joined: Tue Dec 08, 2009 9:38 am
- Location: Italy
Re: How to rename units
By the way, in order to change the quality of a unit from average to superior which is the parameter to modify in the squads.csv file?
Morale, experience or elan?
And, to finish, which is the difference between the TotalMen data and the UnitSize data?
Morale, experience or elan?
And, to finish, which is the difference between the TotalMen data and the UnitSize data?
"Audentis fortuna iuvat"
- Virgilius
(Good luck favours the brave)
- Virgilius
(Good luck favours the brave)
Re: How to rename units
You'll find all the information you're looking for in the following threads. See also the link to the ScenarioDesign.pdf.
https://www.slitherine.com/forum/viewto ... 22&t=53873
https://www.slitherine.com/forum/viewto ... 22&t=62999
https://www.slitherine.com/forum/viewto ... 22&t=53873
https://www.slitherine.com/forum/viewto ... 22&t=62999
-
- Lieutenant Colonel - Elite Panther D
- Posts: 1368
- Joined: Tue Dec 08, 2009 9:38 am
- Location: Italy
Re: How to rename units
Thank's Athos, really useful!
"Audentis fortuna iuvat"
- Virgilius
(Good luck favours the brave)
- Virgilius
(Good luck favours the brave)