> 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](/files/-MFNXId07ewmT96MqaFk)

### 友军的颜色

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](/files/-MFNXPfbjApre0PqaOZU)

### 派对的颜色

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:

![](/files/-MFNXxOxEejXw6ZH6s8k)

### 你自己名字的颜色

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:

![](/files/-MFCiHROMk3ACPrr1ek8)

## 重新打包 <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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://noskill.gitbook.io/titanfall2/chinese/modding/user-interface/in-game/scoreboard-colors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
