> 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/maps/skyboxes.md).

# 地图-天空背景

Change the Skybox of different maps

## 前期准备

Navigate to your folder and find this VPK file:

> Origin Games\Titanfall2\vpk\\

Copy these files and paste them into an empty folder somewhere else:

`englishclient_mp_`**`<<mapname>>`**`.bsp.pak000_dir.vpk`

`client_mp_`**`<<mapname>>`**`.bsp.pak000_000.vpk`

{% hint style="danger" %}
Make sure to make a Backup of every single Map you edit, Since every map has it's own VPK.
{% endhint %}

You will need the Titanfall VPK Tool, a program which allows you to open and repack Titanfall VPK files. It can be found in the Modding Tools page

{% content-ref url="/pages/-LQf1VwnfcshCxN-w0r9" %}
[修改工具](/titanfall2/chinese/how-to-start-modding/modding-introduction/modding-tools.md)
{% endcontent-ref %}

## 解包

Now that these files have been backed up and everything is installed. Navigate to your game folder and open this file:

`Origin Games\Titanfall2\vpk\englishclient_mp_`**`<<mapname>>`**`.bsp.pak000_dir.vpk`

{% content-ref url="/pages/-LQezxgguZKAdHMEde32" %}
[如何备份，解包和重新打包](/titanfall2/chinese/how-to-start-modding/modding-introduction/how-to-backup-extract-and-repack.md)
{% endcontent-ref %}

## 编辑

Navigate to this location in your extracted folder

`\models\vistas`

This folder contains the models for the skyboxes and scene elements. Edit those files at your own risk.

{% content-ref url="/pages/-M2D0iaLwD6moB5TQaAF" %}
[基础天空盒](/titanfall2/chinese/information/textures/skybox-basics.md)
{% endcontent-ref %}

The only working Skybox is the extraction scene named `planet_blue_sun.mdl` which is present in every `\models\vistas` directory (except live fire maps, excluding deck). Because it is mandatory for the successful extraction phase process of every map. &#x20;

To swap skyboxes simply duplicate `planet_blue_sun.mdl` and rename the duplicate to the name of the skybox of the map.&#x20;

![duplicate "planet\_blue\_sun.mdl"](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-M1fF7lpgPJFw35rXPyc%2F-M1fKPcUkM4Gr4P4lf66%2Fstep%201.PNG?alt=media\&token=ff1175e7-a864-47ea-bdc2-b81dca1afcb9)

![rename the duplicate](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-M1fF7lpgPJFw35rXPyc%2F-M1fKSEnO-gT7zEpKkxd%2Fstep%202.PNG?alt=media\&token=c68f7894-119f-40c3-b1b3-f01a95f1b8b6)

![delete the original skybox](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-M1fF7lpgPJFw35rXPyc%2F-M1fKUYIjgabHmKAHhWs%2Fstep%203.PNG?alt=media\&token=b3285969-222b-4262-bde7-461d17d37070)

#### 特殊情况

{% hint style="warning" %}
Some maps have the ending **\_*****se*** instead of ***\_sky***. It is the exact same editing process though.

![](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-M1fF7lpgPJFw35rXPyc%2F-M1fLQOpMsmRdlEWb9lB%2Fexception.PNG?alt=media\&token=70ee80f0-e555-4a29-9bf3-1499ef2b505c)

Some maps feature an additional file in the directory.  Make sure not to swap the wrong ones.

![Don't touch "angel\_city\_scrolling\_uv.mdl"  ](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-M1fF7lpgPJFw35rXPyc%2F-M1fLu7bD1gkjvoPVrv2%2Fexception%201.PNG?alt=media\&token=fadfabd3-30d4-4ed2-81d7-6bbd4c77c581)

![Don't touch "timeshift\_warm\_se.mdl"](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-M1fF7lpgPJFw35rXPyc%2F-M1fLwBBaxZ1OfB3O9eR%2Fexception%202.PNG?alt=media\&token=9214c19d-8e85-4c41-966e-7d60d1a01b36)
{% endhint %}

#### 什么*不*该做

{% hint style="danger" %}
Removing the Files will result in the disappearing of the skybox.

![No skybox on Kodai](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-M1fF7lpgPJFw35rXPyc%2F-M1fGuC25lpupcFtK83G%2FDesktop%20Screenshot%202020.03.01%20-%2017.23.57.22.png?alt=media\&token=fb4f5569-374a-466d-8478-4c271c59279d)
{% endhint %}

{% hint style="danger" %}
Renaming other [skyboxes ](/titanfall2/chinese/information/textures/skybox-basics.md)to the existing ones of the map and replacing them leads to the textures not loading in, since they are applied via a script, which is not in the VPK itself.&#x20;

![Kodai Skybox on Glitch](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-M1fF7lpgPJFw35rXPyc%2F-M1fGzzyxwgCXSoeja68%2FDesktop%20Screenshot%202020.03.01%20-%2017.07.41.44.png?alt=media\&token=46f0af89-2a62-4343-ba2d-b36c8ed82555)
{% endhint %}

The reason behind this not working is because the textures are not applied via a VPK. Every map has a different VPK. Textures that are not normally on the map stay missing because the script applying them does not apply them there. Once we figured out how to edit `.rpak` files changing actual [skyboxes ](/titanfall2/chinese/information/textures/skybox-basics.md)becomes a possibility.&#x20;

## 样例

Obviously this wasn't made to be the skybox for normal maps. So there are little errors all around the place.

请注意，原地图的场景灯光仍然存在，并且在某些地图上可能看起来有点不合适。

{% embed url="<https://gfycat.com/alldecisivefinwhale>" %}

![Kodai with "mat\_sky\_color 0.5 0.5 0.5;mat\_sun\_color 0.5 0.5 0.5"](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-M1fY2CPdhTEdOwJWKN1%2F-M1fa4tsLUE8GHhC9hjk%2FDesktop%20Screenshot%202020.03.05%20-%2017.44.46.45.png?alt=media\&token=4e965fee-45ea-4b91-811d-2e0b66c7dcdd)

![Glitch with"mat\_sky\_color 0.5 0.5 0.5;mat\_sun\_color 0.5 0.5 0.5"](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-M1fY2CPdhTEdOwJWKN1%2F-M1faCU8GzijncRcr3UH%2FDesktop%20Screenshot%202020.03.05%20-%2017.46.24.61.png?alt=media\&token=6f5de02d-e419-4f5f-a9df-d09fbda67911)

![Homestead with "mat\_sky\_color 0.5 0.5 0.5;mat\_sun\_color 0.5 0.5 0.5"](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-M1fY2CPdhTEdOwJWKN1%2F-M1fYfQJd45ngt807MSy%2FDesktop%20Screenshot%202020.03.05%20-%2017.18.16.92.png?alt=media\&token=b92bed0c-5a5a-489b-a992-8bf39192a413)

**请注意，*****整个*****周围的风景都消失了。**

![Angel City with "mat\_sky\_color 0 0 0; mat\_sun\_color 0 0 0" ](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-M1fF7lpgPJFw35rXPyc%2F-M1fIsEv5xUIA-eLrlOp%2FDesktop%20Screenshot%202020.03.04%20-%2018.47.58.92.png?alt=media\&token=23562f03-8b97-4449-ba7f-99f5b9aef4a2)

![Drydock with"mat\_sky\_color 0.5 0.5 0.5;mat\_sun\_color 0.5 0.5 0.5"](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-M1fY2CPdhTEdOwJWKN1%2F-M1fYBOmjMWFMls5Rfzg%2FDesktop%20Screenshot%202020.03.05%20-%2017.27.28.28.png?alt=media\&token=6938bae3-b5b8-4763-8eb0-088a16c140b9)

![Complex with "mat\_sky\_color 0.5 0.5 0.5;mat\_sun\_color 0.5 0.5 0.5"](https://2905920047-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LPXG6BIVWwbrvVSOiBw%2F-M1fY2CPdhTEdOwJWKN1%2F-M1fYxs2uuXNp2aId40X%2FDesktop%20Screenshot%202020.03.05%20-%2017.20.31.33.png?alt=media\&token=f7ed8e66-6040-45db-b4f0-7617a4a2b4be)

## 重新打包

{% content-ref url="/pages/-LQezxgguZKAdHMEde32" %}
[如何备份，解包和重新打包](/titanfall2/chinese/how-to-start-modding/modding-introduction/how-to-backup-extract-and-repack.md)
{% endcontent-ref %}

After closely following the previous link step by step:

Rename `pak000_000.vpk` *to* **`client_mp_`** **`<<mapname>>`** **`.bsp.pak000_000.vpk`**

Rename `pak000_dir.vpk` *to* **`englishclient_mp_`** **`<<mapname>>`** **`.bsp.pak000_dir.vpk`**

{% hint style="danger" %}
Make sure to pay attention when renaming them because every map has it's own VPK.
{% endhint %}

Place both of the renamed files back into your game directory and then launch Titanfall 2. You should be able to see the changed [skybox](/titanfall2/chinese/information/textures/skybox-basics.md)!

> Origin Games\Titanfall2\vpk\\

{% content-ref url="/pages/-M2D0iaLwD6moB5TQaAF" %}
[基础天空盒](/titanfall2/chinese/information/textures/skybox-basics.md)
{% endcontent-ref %}
