Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

More Colors - A Config Script for Wargus.

98 3 kb Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
-- stratagus.lua

DefinePlayerColors({
  "red", {{164, 0, 0}, {124, 0, 0}, {92, 4, 0}, {68, 4, 0}},
  "blue", {{12, 72, 204}, {4, 40, 160}, {0, 20, 116}, {0, 4, 76}},
  "green", {{44, 180, 148}, {20, 132, 92}, {4, 84, 44}, {0, 40, 12}},
  "violet", {{152, 72, 176}, {116, 44, 132}, {80, 24, 88}, {44, 8, 44}},
  "orange", {{248, 140, 20}, {200, 96, 16}, {152, 60, 16}, {108, 32, 12}},
  "black", {{40, 40, 60}, {28, 28, 44}, {20, 20, 32}, {12, 12, 20}},
  "white", {{224, 224, 224}, {152, 152, 180}, {84, 84, 128}, {36, 40, 76}},
  "yellow", {{252, 252, 72}, {228, 204, 40}, {204, 160, 16}, {180, 116, 0}},
  "brown", {{90, 30, 7}, {70, 15, 5}, {45, 8, 3}, {20, 4, 1}},
  "skyblue", {{153, 203, 225}, {111, 164, 193}, {87, 137, 161}, {55, 94, 121}},
  "darkgreen", {{33, 120, 85}, {20, 86, 66}, {12, 62, 22}, {2, 40, 8}},
  "indigo", {{85, 0, 150}, {68, 0, 120}, {40, 0, 90}, {21, 0, 62}},
  "beige", {{144, 132, 53}, {112, 101, 42}, {92, 83, 30}, {78, 61, 19}},
  "nightblue", {{0, 0, 140}, {0, 0, 109}, {0, 0, 89}, {0, 0, 57}},
  "grey", {{128, 128, 128}, {64, 64, 64}, {32, 32, 32}, {16, 16, 16}},
  "fuchsia", {{244, 0, 161}, {191, 0, 122}, {145, 0, 94}, {104, 0, 67}},
})


-- guichan.lua

 local colorlist = {_("~red~Red"),_("~blue~Blue"),_("~green~Green"),_("~violet~Violet"),_("~orange~Orange"),_("~black~Black"),_("~white~White"),_("~yellow~Yellow"),_("~brown~Brown"),_("~skyblue~Skyblue"),_("~darkgreen~Green"),_("~indigo~Indigo"),_("~beige~Beige"),_("~nightblue~Night"),_("~grey~Grey"),_("~fuchsia~Fuchsia")}

-- fonts.lua
DefineFontColor("brown",
  {    0,   0,   0,    -- 0
    90, 30, 7,    -- 224
    90, 30, 7,    -- 224
    90, 30, 7,    -- 224
    90, 30, 7,    -- 224
    0,   0,   0,    -- 239
    0,   0,   0})    -- 0

DefineFontColor("skyblue",
{    0,   0,   0,    -- 0
  153, 203, 225,    -- 224
  153, 203, 225,    -- 224
  153, 203, 225,    -- 224
  153, 203, 225,    -- 224
  0,   0,   0,    -- 239
  0,   0,   0})    -- 0

DefineFontColor("darkgreen",
{    0,   0,   0,    -- 0
33, 120, 85,    -- 224
33, 120, 85,    -- 224
33, 120, 85,    -- 224
33, 120, 85,    -- 224
0,   0,   0,    -- 239
0,   0,   0})    -- 0

DefineFontColor("indigo",
{    0,   0,   0,    -- 0
75, 0, 130,    -- 224
75, 0, 130,    -- 224
75, 0, 130,    -- 224
75, 0, 130,    -- 224
0,   0,   0,    -- 239
0,   0,   0})    -- 0

DefineFontColor("beige",
{    0,   0,   0,    -- 0
144, 132, 53,    -- 224
144, 132, 53,    -- 224
144, 132, 53,    -- 224
144, 132, 53,    -- 224
0,   0,   0,    -- 239
0,   0,   0})    -- 0

DefineFontColor("nightblue",
{    0,   0,   0,    -- 0
25, 25, 112,    -- 224
25, 25, 112,    -- 224
25, 25, 112,    -- 224
25, 25, 112,    -- 224
  0,   0,   0,    -- 239
  0,   0,   0})    -- 0

DefineFontColor("grey",
{    0,   0,   0,    -- 0
128, 128, 128,    -- 224
128, 128, 128,    -- 224
128, 128, 128,    -- 224
128, 128, 128,    -- 224
  0,   0,   0,    -- 239
  0,   0,   0})    -- 0

DefineFontColor("fuchsia",
{    0,   0,   0,    -- 0
244, 0, 161,    -- 224
244, 0, 161,    -- 224
244, 0, 161,    -- 224
244, 0, 161,    -- 224
  0,   0,   0,    -- 239
  0,   0,   0})    -- 0
Have you ever wanted to have more color choices in WarCraft II? With this guide you are able to add more colors to choose for your gameplay.

Important Note! The following guide will show how to add only eight new colors since Stratagus (the engine that runs Wargus) has a possibility to handle at max 16 type of player colors. Plus the file that are required to be modified are the ones inside Script folder.

The colors that are going to be added are the following ones:

  • Brown
  • Sky Blue
  • Dark Green
  • Indigo
  • Beige
  • Night Blue
  • Grey
  • Fuchsia

It is possible to add any specific color or even change the original eight colors.

Add new colors

The first thing it is required to do is to make changes in the file stratagus.lua more specifically it is necessary to make changes inside the function call DefinePlayerColors. If Wargus has been installed, by default, this function adds the original eight colors for the player and it doubles the amount because in the game it is possible to play at max with 16 players. Inside the file remove the entire piece of code of the function and add the ones written in the Script section.
Once this is done the new colors have been added but are still not selectable in custom scenarios.

Add the color list in custom scenario

After the addition of the colors inside the stratagus.lua it is necessary to modify a local variable declared inside the file guichan.lua, more specifically it is required to modify a variable called colorlist where it is possible to select the color of the player in the skirmish modern menu. Even in this case it is just needed to remove the variable and copy and paste the one declared in the Script section.

Add the font color inside the list

This is an optional step to take but if you want to have also the font colored with a specific color then it is required to add some code inside the file fonts.lua in this file scroll to the end of the file and define the font colors, similar to the ones in the Script section, so the game is able to recognize the new colors defined in the previous two modified files.

No comments yet