Alliances :Alliances are made of 7 bytes, Located 2 bytes after the force color, it is made by adding up specifique numbers for each force you ally with, the number 2^x , you replace x with your force number (the number is found in the allegiance byte for officers and cities) here is an example which is better for explaining:
Let's try an ally Gongsun Zan and Gongsun Du in RoH senario :
you open up your hex editor, find
Gongsun Zan (the officer) : his allegiance number is
0B which gives us 11 in decimal , we find 2^11= 2048 which gives us 800 in hex, as usual we inverse the bytes and that gives us
00 08 , this is the number we will use to ally him. we go to
Gongsun Du (officer) and find his allegiance number, it is
0C, 12 in decimal , we have 2^12 = 4096 and that would be 1000 in hex, inverse the byte and we get
00 10 Now we go to
Gongsun Zan's force code , find the alliance part and we put Gongsun Du's alliance number
00 10 We go to
Gongsun Du's force code , find the alliance part and we put Gongsun Zan's alliance number
00 08Coalitions: For creating coalitions, all we have to do is add up the alliance numbers, for example if we want to have a force allied with both the gongsun's we add 00 10 and 00 08 to get 00 18 , which is the number we will put in our force's code alliance part
This was Lord Cao Cao's and Zyzyfer's deduction, most I did was the testing