: You need to have some basic knowledge of how to edit .json files. It is also recommended that you do backups before changing stuff left and right. It is possible to make the game unplayable if you do this wrong.
That out of the way, let’s have some fun!Opening the files
All modding of characters are done via Units.json and/or NPCs.json which you can find in "Jagged Alliance Flashback\game_Data\StreamingAssets\Original\Data\Units\Units.json"
Open the file with some text editing software that you are comfortable with(I usually use Notepad++ and sometimes MonoDevelop that ships with Unity, the free version also has this tool). Once opened you will be presented with all current existing units in our game (excluding some NPCs found in NPCs.json), complete with stats, visuals and such. For this tutorial we’re going to be modding JAF’s starter unit “#0047”. Search for “unitID”: “CIA_Agent” (at the moment of writing you can find this unit at the very bottom of the list).Changing Colors
I’ll go into more depth further down what all these properties mean, but for now we’re going to look at the properties underneath “Visual”. The first thing in the list are the color settings. At this point a character has 9 color properties. The default values for #0047 looks like this:
"UpperBodyColor1": "0.208, 0.216, 0.271",
"UpperBodyColor2": "0.878, 0.804, 0.757",
"UpperBodyColor3": "0.318, 0.231, 0.192",
"LowerBodyColor1": "0.412, 0.427, 0.502",
"LowerBodyColor2": "0.396, 0.431, 0.451",
"LowerBodyColor3": "0.412, 0.427, 0.502",
"HairColor": "0, 0, 0",
"HeadColor": "1, 0.612, 0.494",
"MoustacheColor": "0, 0, 0",
As you can see, UpperBody and LowerBody models has a max support of 3 changeable colors, while HairColor, HeadColor and MoustacheColor only has 1. This does not necessarily mean all upperbody and lowerbody models have 3 changeable colors, they all technically support it however. Don’t think too much about it, but if you happen to change a color and you see no impact on the character, that means that the color property is not in use on that particular bodypart.
The colors are also presented in 3 decimal values(In the order of R, G and B) these are basically the result from converting RGB scale(0-255) to a number between 0 and 1, for instance UpperBodyColor1 has 0.208, 0.216 and 0.271.
Let’s change this number to something else, like orange.
To convert a RGB value to a 0-1 decimal value , all you have to do is to divide the RGB number by 255. For instance here’s the RGB for bright orange I chose: 255, 127, 39
255/255 = 1
127/255 = 0,4980392156862745
39/255 = 0,1529411764705882
I’ll round these values down to 1, 0.5, 0.15. Then we’ll push this into our CIA_Agent, UpperBodyColor1 property:
"UpperBodyColor1": "1, 0.5, 0.15",
Now, save Units.json and load up the game. Unit #0047 should now look like this image below. Feel free to experiment with other colors and explore further!Changing body parts
Now continuing we’re we left off in the Units.json file, you’ll find that right after colors you’ll come across this:
This is the part where we define which parts of the body we want to show on this character. Both the male and female characters has a set of models you can turn on and off using this list. I don’t want a mask on my guy anymore. So I’ll erase Mask and instead add a head with beard and also a cap.
Save your changes and once again start up JAF. Congratulations, you’ve created a lumberjack merc! Below is our current lists of available body parts. #0047 should now look like this:Available parts, Male characters:UpperBody01
- Shirt, rolled up sleevesUpperBody02
- Shirt without sleevesUpperBody03
- Unzipped jacket with shirt underneathLowerBody01
- Army style pants + bootsLowerBody04
- Shorts + shoesHead01
- Basic headHair01
- Short receding hairHair02
- Short hairHair03
- Commander Spice specificMask01
- Standard balaclavaHat01
- A hat.Hat02
- Take a guess...Baret
- Red baret, signature element of The Prince’s ArmyCap
- Green baseball capRadio
- A radio headset for communicationBeard01
- Commander Spice specificMoustache01
- That hair you grow above your mouth and underneath your nose...Apron
- An apron fitting for bartenders and butchersArmPatch
- Army insignia, signature element of The Prince’s ArmyAvailable parts, Female characters:UpperBody01
- Sleeveless shirtUpperBody02
- T-Shirt LowerBody01
- Army pants + BootsLowerBody02
- Shorts + shoesHair01
- Short hairHair02
- Long hair
Note that these lists are to be changed as we progress further.