-
Notifications
You must be signed in to change notification settings - Fork 89
Description
I am trying to assign colors to characters (portraits) in custom campaign. It would be more memorable to know when you are fighting “red” opponent, that it is always the same “character”. What I noticed is that colors set in LUAs are acting strange.
Tested on versions 20260124 and 20250626
luas and maps can be downloaded here:
Eric Ver1.1.zip
Color index :
0 Blue
1 Yellow
2 Red
3 Pink
4 Grey
5 Green
6 Orange
7 Turquoise
8 White
9 Brown
10 Purple
Mission 2 example:
Player 1 = white (8)
Player 2 = red (2)
Player 3 = turquoise (7)
8(white) 2(red) 7(turquoise) results in 8(white) 3(pink) 7(turquoise) in game menu
I tried :
8 7 2 => 8 7 2 correct – Just changed order of colors (cannot be used in every mission)
8 0 7 => 8 0 7 correct
8 1 7 => 8 1 7 correct
8 3 7 => 8 3 7 correct ( same result as 8 2 7)
8 4 7 => 8 4 7 correct (Initially I thought grey is causing issues, you will see why later)
5, 6, 9 , 10 correct
All colors are working, except 2-red for map 2 on player position 2.
Tried also 8 7 9 – result 8 7 9 correct
Map 3:
8 0 2 => 8 0 2 Correct
Map 4:
8 5 2 7 => 8 5 2 7 Correct
Map 5 same setup as map 2, same result
Map 6
8 1 2 6 => 8 1 2 6 Correct
Map 7
8 10 2 => 8 10 2 Correct
Tried 8 2 10 => 8 3 10
Map 8
8 0 2 7 5 => correct
Map 9
8 1 6 2 => correct
Map 10
8 10 5 4 2 => 8 10 5 6 2 – This is where I first noticed it. Instead of Grey 4 I got first available color from 4 up = 6
Map 11
8 10 1 2 7 - correct
Map 12
8 3 9 2 7 => 8 5 9 2 7
Map 13
8 5 2 4 0 => 8 5 2 6 0
Map 14
8 1 2 3 6 7 4 => 8 1 2 3 7 9 4
Map 15
8 10 2 7 9 0 6 5 => 8 10 2 9 0 1 6 5
0 1 2 3 4 5 6 7 – correct
Anyone know what might be causing this? There are some weird patterns to this I believe. At first I noticed it only on maps where I used Grey color, but it also happens when there is Red and color skips. Also it happens with higher amount of players on certain player slots.
I have attached also visualization and scripts with maps if anyone wants to test it