Lord Kinlar
Master Knight
How to change the back color of heraldic armors.
This is not saved-game compatible, you have to start a new game!(1)
(1) But you can always find the hex/decimal number in your saved game file and change it to whatever you like using a HEX editor if you really want to. I've tried it myself and it worked. See the bottom of the message for more info.
The back colors for banners are all assigned at the beginning of a new game and they are in game_start script in scripts.txt.
Here's my banner, the one with yellow dragon thingy on a reddish background. The hex value of this reddish background is approximately 701918.
The original banner underneath it (banner #118 in the pic below) has a whitish back color as you can see in the list below which is incompatible with my reddish banner. The hexadecimal color value for it is DEDBD6. Note that this color representation is exactly the same as the one used in web design.
Now, all I need to do is to replace dedbd6 with 701918.
You can find all the hex values for banner back colors in module_scripts.py which comes with 1.010 module system, but here is a short list for the ones who don't have it (ignore the 0xFF bit).
As you can see above, the original back color for banner #118 is 0xFFdedbd6 which is 4292795350 as decimal. Now, I need to find this decimal number in game_start script in scripts.txt and replace it with 4285536536 for 0xFF701918 which is my reddish color. You can use the Windows Calculator in 'scientific mode' for HEX/DEC conversion.
This is the piece of code in scripts.txt that I'm talking about...
Now I can save it and start a new game.
Here's a screenshot
Tips for editing the saved game:
Open your saved game using a hex editor and search for the hex value (FFDEDBD6) or the reversed hex value (D6DBDEFF) or the integer value (4292795350) as integer or string/text and when you find the right value simply replace/overwrite it with your color. If you do it right, the file size will remain unchanged.
This is not saved-game compatible, you have to start a new game!(1)
(1) But you can always find the hex/decimal number in your saved game file and change it to whatever you like using a HEX editor if you really want to. I've tried it myself and it worked. See the bottom of the message for more info.
The back colors for banners are all assigned at the beginning of a new game and they are in game_start script in scripts.txt.
Here's my banner, the one with yellow dragon thingy on a reddish background. The hex value of this reddish background is approximately 701918.
The original banner underneath it (banner #118 in the pic below) has a whitish back color as you can see in the list below which is incompatible with my reddish banner. The hexadecimal color value for it is DEDBD6. Note that this color representation is exactly the same as the one used in web design.
Now, all I need to do is to replace dedbd6 with 701918.
You can find all the hex values for banner back colors in module_scripts.py which comes with 1.010 module system, but here is a short list for the ones who don't have it (ignore the 0xFF bit).
0 0xFF8f4531
1 0xFF315458
2 0xFF373736
3 0xFFa48b28
4 0xFF497735
5 0xFF82362d
6 0xFF793329
7 0xFF262521
8 0xFFd9dad1
9 0xFF524563
10 0xFF91312c
11 0xFFafa231
12 0xFF706d3c
13 0xFFd6d3ce
14 0xFF912929
15 0xFF394584
16 0xFF42662e
17 0xFFdfded6
18 0xFF292724
19 0xFF58611b
20 0xFF313a67
21 0xFFb5a231
22 0xFFbdb629
23 0xFF6e7929
24 0xFFd6d3ce
25 0xFF94a642
26 0xFF944131
27 0xFF893b34
28 0xFF425510
29 0xFF94452e
30 0xFF475a94
31 0xFFd1b231
32 0xFFe1e2df
33 0xFF4a4942
34 0xFFc6b74d
35 0xFF7b5184
36 0xFF212421
37 0xFF3c5d9a
38 0xFF4d7136
39 0xFFdfdfd6
40 0xFF527539
41 0xFF9c3c39
42 0xFF42518c
43 0xFFa46a2c
44 0xFF843829
45 0xFF2c6189
46 0xFF556421
47 0xFF9d621e
48 0xFFdeded6
49 0xFF6e4891
50 0xFF865a29
51 0xFFdedfd9
52 0xFF524273
53 0xFF8c3821
54 0xFF948403
55 0xFF313031
56 0xFF47620d
57 0xFFdfded6
58 0xFFd6d7d6
59 0xFF2e2f2c
60 0xFF604283
61 0xFF395584
62 0xFF313031
63 0xFF7e3f2e
64 0xFF343434
65 0xFF3c496b
66 0xFFd9d8d1
67 0xFF99823c
68 0xFF9f822e
69 0xFF393839
70 0xFFa54931
71 0xFFdfdcd6
72 0xFF9f4a36
73 0xFF8c7521
74 0xFF9f4631
75 0xFF793324
76 0xFF395076
77 0xFF2c2b2c
78 0xFF657121
79 0xFF7e3121
80 0xFF76512e
81 0xFFe7e3de
82 0xFF947921
83 0xFF4d7b7c
84 0xFF343331
85 0xFFa74d36
86 0xFFe7e3de
87 0xFFd6d8ce
88 0xFF3e4d67
89 0xFF913331
90 0xFF4d6994
91 0xFF4a6118
92 0xFFd9d8d3
93 0xFF394479
94 0xFF343331
95 0xFF3f4d5d
96 0xFF4a6489
97 0xFF313031
98 0xFFd6d7ce
99 0xFFc69e00
100 0xFF638e52
101 0xFFdcdbd3
102 0xFFdbdcd3
103 0xFF843831
104 0xFFcecfc6
105 0xFF8f4431
106 0xFF602926
107 0xFFd3d4cb
108 0xFFdcdbd3
109 0xFF556024
110 0xFF602d2c
111 0xFF315184
112 0xFF313031
113 0xFFe7e7e7
114 0xFF526d47
115 0xFFdedbd6
116 0xFFb2a631
117 0xFF76713f
118 0xFFdedbd6
119 0xFFe9eae7
120 0xFF6b5131
121 0xFF31557b
122 0xFF703324
123 0xFFe7e3de
124 0xFFd6d7ce
125 0xFF3f6e39
1 0xFF315458
2 0xFF373736
3 0xFFa48b28
4 0xFF497735
5 0xFF82362d
6 0xFF793329
7 0xFF262521
8 0xFFd9dad1
9 0xFF524563
10 0xFF91312c
11 0xFFafa231
12 0xFF706d3c
13 0xFFd6d3ce
14 0xFF912929
15 0xFF394584
16 0xFF42662e
17 0xFFdfded6
18 0xFF292724
19 0xFF58611b
20 0xFF313a67
21 0xFFb5a231
22 0xFFbdb629
23 0xFF6e7929
24 0xFFd6d3ce
25 0xFF94a642
26 0xFF944131
27 0xFF893b34
28 0xFF425510
29 0xFF94452e
30 0xFF475a94
31 0xFFd1b231
32 0xFFe1e2df
33 0xFF4a4942
34 0xFFc6b74d
35 0xFF7b5184
36 0xFF212421
37 0xFF3c5d9a
38 0xFF4d7136
39 0xFFdfdfd6
40 0xFF527539
41 0xFF9c3c39
42 0xFF42518c
43 0xFFa46a2c
44 0xFF843829
45 0xFF2c6189
46 0xFF556421
47 0xFF9d621e
48 0xFFdeded6
49 0xFF6e4891
50 0xFF865a29
51 0xFFdedfd9
52 0xFF524273
53 0xFF8c3821
54 0xFF948403
55 0xFF313031
56 0xFF47620d
57 0xFFdfded6
58 0xFFd6d7d6
59 0xFF2e2f2c
60 0xFF604283
61 0xFF395584
62 0xFF313031
63 0xFF7e3f2e
64 0xFF343434
65 0xFF3c496b
66 0xFFd9d8d1
67 0xFF99823c
68 0xFF9f822e
69 0xFF393839
70 0xFFa54931
71 0xFFdfdcd6
72 0xFF9f4a36
73 0xFF8c7521
74 0xFF9f4631
75 0xFF793324
76 0xFF395076
77 0xFF2c2b2c
78 0xFF657121
79 0xFF7e3121
80 0xFF76512e
81 0xFFe7e3de
82 0xFF947921
83 0xFF4d7b7c
84 0xFF343331
85 0xFFa74d36
86 0xFFe7e3de
87 0xFFd6d8ce
88 0xFF3e4d67
89 0xFF913331
90 0xFF4d6994
91 0xFF4a6118
92 0xFFd9d8d3
93 0xFF394479
94 0xFF343331
95 0xFF3f4d5d
96 0xFF4a6489
97 0xFF313031
98 0xFFd6d7ce
99 0xFFc69e00
100 0xFF638e52
101 0xFFdcdbd3
102 0xFFdbdcd3
103 0xFF843831
104 0xFFcecfc6
105 0xFF8f4431
106 0xFF602926
107 0xFFd3d4cb
108 0xFFdcdbd3
109 0xFF556024
110 0xFF602d2c
111 0xFF315184
112 0xFF313031
113 0xFFe7e7e7
114 0xFF526d47
115 0xFFdedbd6
116 0xFFb2a631
117 0xFF76713f
118 0xFFdedbd6
119 0xFFe9eae7
120 0xFF6b5131
121 0xFF31557b
122 0xFF703324
123 0xFFe7e3de
124 0xFFd6d7ce
125 0xFF3f6e39
As you can see above, the original back color for banner #118 is 0xFFdedbd6 which is 4292795350 as decimal. Now, I need to find this decimal number in game_start script in scripts.txt and replace it with 4285536536 for 0xFF701918 which is my reddish color. You can use the Windows Calculator in 'scientific mode' for HEX/DEC conversion.
This is the piece of code in scripts.txt that I'm talking about...
500 3 360287970189640282 118 4292795350 500 3 360287970189640282 119
Now I can save it and start a new game.
Here's a screenshot
Tips for editing the saved game:
Open your saved game using a hex editor and search for the hex value (FFDEDBD6) or the reversed hex value (D6DBDEFF) or the integer value (4292795350) as integer or string/text and when you find the right value simply replace/overwrite it with your color. If you do it right, the file size will remain unchanged.