Overview
How to add portraits to SR:HK without replacing any file.
Preparation
First, ensure that you have a picture that is 212 x 278 pixels and is a PNG file.
Cut or a copy the picture into Steamapps/Common/Shadowrun Hong Kong/SRHK_Data/StreamingAssets/ContentPacks/HongKong/art/portraits
Next, open up a Decimal to Hexadecimal converter or use this one[www.binaryhexconverter.com].
You’ll need to convert the number of charcaters (in your portrait file name) into hexadecimal format.
You’ll also need to convert that number above, +2.
So, for example if your portrait has 20 charcaters, the hexadecimal number you’ll use later will be 14. The other hexadecimal will be 16.
These hexadecimals are important, write it down.
Finally, get a hex editor. I used HxD which you can get here[mh-nexus.de]
Editing hongkong.pl
The file we’re going to edit is called hongkong.pl and can be found in:
Steamapps/Common/Shadowrun Hong Kong/SRHK_Data/StreamingAssets/ContentPacks/HongKong/data/portraits
Open this file, and you should get something like this:
This is fine. Scroll down to the bottom of the file.
First, add 0A to the end of the file.
You’ll then need to add the hexadecimal number from earlier, plus two.
So for example, 14 was the hexadecimal number from earlier, so I’ll need to add 16.
So now I should have 0A 16.
After that, add 0A, then the hexadecimal number from earlier.
So now I have 0A 16 0A 14.
Now, in the text portion of hex editor, write the file name of your portrait. Ensure that the first letters of the Race and Sex of the portrait is capitalized along with PC.
So now i have 0A 16 0A 14 … PORTRAIT FILE NAME IN HEXADECIMAL HERE …
Finally add 10 05 18 01 to the end of your edit.
The End
Now if you followed this guide correctly, you’ll end up with your custom portrait in the charcater creation screen.
If you didn’t, you’ll get a black screen on charcater creation, which means theres probably something wrong with your hexfile edit.
For example, if you’re adding alot of portraits, i.e >1, try naming them like so:
PC_RaceSex_## or, using human females as an example, PC_HumanFemale_30
For reasons unknown, this appears to have a higher chance of working.