> For the complete documentation index, see [llms.txt](https://noskill.gitbook.io/titanfall2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://noskill.gitbook.io/titanfall2/chinese/modding/user-interface/in-game/scoreboard-colors.md).

# 计分板背景

## 前期准备

In this guide you will have to edit text. Simply use a text editor for that such as Atom, NotePad++, VIM or one that you prefer.

Navigate to this directory:

> Origin Games\Titanfall2\vpk\\

Copy these file and paste them in an empty folder somewhere else:

* englishclient\_frontend.bsp.pak000\_dir.vpk
* client\_frontend.bsp.pak000\_000.vpk

For the next step you'll need the [Titanfall VPK Tool](https://noskill.gitbook.io/titanfall2/how-to-start-modding/modding-tools), a program which allows you to open and repack Titanfall VPK files.&#x20;

## 解包 <a href="#unpacking" id="unpacking"></a>

Now that these files have been backed up, navigate to your game folder and open this file:

> &#x20;Origin Games\Titanfall2\vpk\englishclient\_frontend.bsp.pak000\_dir.vpk

​[How to extract VPK files properly?](https://noskill.gitbook.io/titanfall2/how-to-start-modding/how-to-backup-extract-and-repack)​

## 编辑

To edit the colors, go to this location:

> \englishclient\_frontend.bsp.pak000\_dir.vpk\scripts\vscripts\\

All colors on the scoreboard are stored in one file, `sh_consts.gnut`. The file is quite large, so it's recommended to navigate trough it using the search (ctrl+F) function.

Colors of individual elements are stored as a vector variable which is made out of 3 integer variables that accept the values from 0 to 255; each of the integers corresponds to a certain amount of one of the basic [rgb colors ](https://noskill.gitbook.io/titanfall2/information/textures/colors#rgb)(red, green or blue). In simpler terms, you'll be changing the color by changing the amount of red, green and blue it has; 0 means no color at all (black) and 255 means the maximum.

{% content-ref url="/pages/-M2CrH4-Us2ybuWbBmVR" %}
[纹理和颜色](/titanfall2/chinese/information/textures/colors.md)
{% endcontent-ref %}

### 敌人的颜色

Lines: 255, 256 and 257; 1st line corresponds to red, 2nd to green,  3rd to blue

```
global const int ENEMY_R = 
global const int ENEMY_G = 
global const int ENEMY_B = 
```

Example, values used were R=200 G=0 B=0:

![Note that the Badge color also changed](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MFNV3MnBB92sGK1V0cj%2F-MFNXId07ewmT96MqaFk%2Fenemies.png?alt=media\&token=d2705de2-3d24-463e-9eaf-fef4c082da12)

### 友军的颜色

Lines: 250, 251 and 252; 1st line corresponds to red, 2nd to green,  3rd to blue

```
global const int FRIENDLY_R = 
global const int FRIENDLY_G = 
global const int FRIENDLY_B = 
```

Example, values used were R=0 G=255 B=50:

![Note that the Badge color also changed](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MFNV3MnBB92sGK1V0cj%2F-MFNXPfbjApre0PqaOZU%2Fteam.png?alt=media\&token=9583b6a8-79be-4e11-babb-5a0518d964d6)

### 派对的颜色

Lines: 265, 266 and 267; 1st line corresponds to red, 2nd to green,  3rd to blue

```
global const int PARTY_R = 
global const int PARTY_G = 
global const int PARTY_B = 
```

Example, values used were R=255 G=111 B=0:

![](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MFNV3MnBB92sGK1V0cj%2F-MFNXxOxEejXw6ZH6s8k%2Fparty.png?alt=media\&token=80d56892-8a6c-4247-ad36-d965d7f42861)

### 你自己名字的颜色

Lines: 260, 261 and 262; 1st line corresponds to red, 2nd to green,  3rd to blue

```
global const int LOCAL_R = 
global const int LOCAL_G = 
global const int LOCAL_B = 
```

Example, values used were R=255 G=50 B=255:

![](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-MFCNPlANXCwziP1QHF6%2F-MFCiHROMk3ACPrr1ek8%2Flocal.png?alt=media\&token=f9cf7a57-5026-4c91-a90e-ab7920b9c0ae)

## 重新打包 <a href="#repacking" id="repacking"></a>

After following [this guide](https://noskill.gitbook.io/titanfall2/how-to-start-modding/how-to-backup-extract-and-repack), rename:

* **pak000\_000.vpk** to **client\_frontend.bsp.pak000\_000.vpk**
* **pak000\_dir.vpk** to **englishclient\_frontend.bsp.pak000\_dir.vpk**

Then place both of the renamed files back into your game's vpk folder. After starting the game you should be able to see the changes you've made.
