Add a New Commander - Step by Step
Posted: Tue Aug 11, 2020 6:19 am
In OOB it is interesting to assign a commander to units (land / air / naval) in various scenarios. With this commander you can assign certain bonus combat values to the unit. How do you assign a new commander? As a little guide for me and also as a supplement for the modding guide, I have made a small explanation.
For this I have chosen a famous Japanese General who has a picture on the web that can be transformed into an avatar. As an exampel this is General Todamichi Koribayashi, the defender of the battle Iwo Jima 1945. Since it is customary not to use original names, I have renamed the commander to Taro Kuribashi. For the correct display of the new commander, a picture for commander and a picture for the avatar with the dimensions 256x256 px must be made (Image 1). For the picture that can be seen in the lower unit window after assignment, a picture with the dimensions 256x162 px must be made (Image 2). The images can be created in a drawing program such as Photoshop or GIMP.
The images are named as follows:
[1] commander_200.png (256x256 px)
[2] commander_200_unit.png (256x162 px)
[1] avatar_200.png. (256x256 px, identical to commander_200 image)
The top two images are putting in the directory:
... / Order of Battle Pacific / Order of Battle - WWII_Data / Content / Graphics / Commander.
The image of the avatar is to put in the directory:
... / Order of Battle Pacific / Order of Battle - WWII_Data / Content / Graphics / Avatars.
Further additions are now required in the system files to identify and name the new commander.
In the directory ...:
... / Order of Battle Pacific / Order of Battle - WWII_Data / Content / Data
... an entry must be made in the commanders.txt file to identify the new commander, which should be based on the consecutive id number of all commanders. The new bonus combat values are then entered here. The bonus combat values refer, for example, to attack for infantry and vehicles. You can also assign bonus values for defense. The nation must also be entered here, as an example it looks like this:
[TARO_KURIBASHI]
id = 200
category = land
faction = japan, ijn
range = 2
weapon = vehicle_attack, 2
defense = vehicle_defense, 1
Next step...
For this I have chosen a famous Japanese General who has a picture on the web that can be transformed into an avatar. As an exampel this is General Todamichi Koribayashi, the defender of the battle Iwo Jima 1945. Since it is customary not to use original names, I have renamed the commander to Taro Kuribashi. For the correct display of the new commander, a picture for commander and a picture for the avatar with the dimensions 256x256 px must be made (Image 1). For the picture that can be seen in the lower unit window after assignment, a picture with the dimensions 256x162 px must be made (Image 2). The images can be created in a drawing program such as Photoshop or GIMP.
The images are named as follows:
[1] commander_200.png (256x256 px)
[2] commander_200_unit.png (256x162 px)
[1] avatar_200.png. (256x256 px, identical to commander_200 image)
The top two images are putting in the directory:
... / Order of Battle Pacific / Order of Battle - WWII_Data / Content / Graphics / Commander.
The image of the avatar is to put in the directory:
... / Order of Battle Pacific / Order of Battle - WWII_Data / Content / Graphics / Avatars.
Further additions are now required in the system files to identify and name the new commander.
In the directory ...:
... / Order of Battle Pacific / Order of Battle - WWII_Data / Content / Data
... an entry must be made in the commanders.txt file to identify the new commander, which should be based on the consecutive id number of all commanders. The new bonus combat values are then entered here. The bonus combat values refer, for example, to attack for infantry and vehicles. You can also assign bonus values for defense. The nation must also be entered here, as an example it looks like this:
[TARO_KURIBASHI]
id = 200
category = land
faction = japan, ijn
range = 2
weapon = vehicle_attack, 2
defense = vehicle_defense, 1
Next step...