LogoLogo
English
LogoLogo
English
  • Titanfall 2 Modding Guide
  • Contact & Help
  • Contributing
  • Credits
  • Wiki 101 - How to start ?
    • Modding introduction
      • How to backup, extract & repack
      • How to setup a modding environment
      • Modding tools
        • How to use RSPNVPK
        • Source
          • Game Directory
          • BSP
            • BSPSource
            • BSP Viewer
            • BSP2MAP
            • BSPZIP
            • EntEd
            • Entspy
            • Map Analyst
            • PackBsp
            • Pakrat
            • VBSP_h4xed
            • VIDE
            • VMEX
            • WinBSPC
            • WinBSPZip
          • Hammer
            • Displacement Luxel Density
          • VTF & VMT
            • VTFEdit
            • Vtex
              • Vtex - Compile Parameters
              • Vtex - Troubleshooting
    • FAQ
  • Documentation
    • Textures
      • Valve Texture Format - VTF
        • Creating a Material
        • Creating Animated Particles
      • Valve Material Type - VMT
      • Texture & Colors
        • Color & Texture info
      • Shader
        • $basetexture
        • $color
        • $reflectivity
        • Material Flags
      • Albedo
      • Bump map
        • $bumpmap
        • $ssbump
      • Cube Mapping
      • Skybox Basics
        • 2D Skybox
      • Lightmap
      • Material Vector
      • MIP Mapping
      • Missing content
    • Scripts
      • KeyValues
        • Gameinfo.txt
        • WeaponConfig.txt
      • VScript
    • File Format
      • NUT & GNUT - Squirrel
      • PSD - Photoshop Document
      • TGA - Truevision Graphics Adapter
      • TXT - Text file
      • VPK - Valve Pak file
    • File Location
      • VPK list
      • Weapon
        • Weapon model
        • Weapon script
        • Weapon config
      • 3D Models
        • Model - Skyboxes
        • Pilot
          • Models - Pilot Ability
          • Models - Pilot Weapons
        • Titan
        • Model - Beacon
        • Model - Containers
        • Model - Fixtures
        • Model - imc_base
        • Model - Industrial
        • Model - kodai_live_fire
        • Model - NPC
        • Model - Frontier Defense
  • Modding
    • Weapons
      • Crosshair modding
        • Batch crosshair modding
        • Crosshair example
      • Weapon Positioning
      • Weapon FOV
      • Hipfire zoom
      • Special/Unique weapon mods
        • Charge Rifle - Arc Rifle
        • Charge rifle - Heat color
        • LSTAR - Heat color
    • Pilots
      • Models - Pilot class
    • Titans
      • Titan Domeshield
      • Northstar
        • Cable - Grapple & Tether Trap
        • Railgun - Heat color
        • Northstar - Gravity
        • Northstar - Thermite
      • Ronin
        • Sword block color
      • Legion
        • Power shot heat color
      • Ion
        • Splitter Rifle - Heat effect
        • Vortex shield color
    • Custom Skins
      • Formats
      • Installing
        • DDS Format (tool)
        • VTF Format (manual)
      • Making
      • Info
        • Getting a Model into Blender
        • 2D Wireframes
    • Maps
      • Maps - Skyboxes
      • Maps - Cube Map
      • War Games
        • Holographic wall color
    • User Interface
      • Text modding r1_language
      • In Game
        • Scoreboard colors
      • Menus
        • Pause Menu Blur
        • Menu Background
        • Network - Menus
        • Whats new and Spotlight
        • Settings
          • Controls
          • Key Bindings
    • Sounds
      • Killsound
      • Lobby music
    • Misc
      • FF ID Color change
      • Remove Sun Flares
      • Cable - Zipline
      • Marvin - Chest screen
      • Pulse Effect
      • Sonar Detected
      • Ticks - Model
      • Nessie- Frag Model
  • Script Values
    • Effect (FX)
    • FX
      • FX - Pilot
        • FX - Pilot Weapon
          • FX - Assault Rifle
          • FX - SMG
          • FX - LMG
          • FX - Sniper
          • FX - Shotgun
          • FX - Grenadier
          • FX - Secondary & Pistols
          • FX - Anti-Titan
          • FX - Arc Tool
        • FX - Pilot Ordnance
          • FX - Arc Trap
          • FX - Firestar
          • FX - Gravity Star
        • FX - Pilot Ability
      • FX - Titans
        • FX - Ion
        • FX - Tone
        • FX - Northstar
          • FX - Railgun
          • FX - Holo Railgun
          • FX - Viper
        • FX - Monarch
          • FX - Monarch Beam
        • FX - Ronin
        • FX - Scorch
          • FX - Thermite Launcher
          • FX - Meteor First
          • FX - Firewall
        • FX - Legion
      • FX - NPC & Turret
        • FX - NPC
          • FX - Drone
          • FX - Drone Cloak
          • FX - Drone Frag
          • FX - MRVN
          • FX - Mortar
          • FX - Holo Spectre
        • FX - Turret
      • FX - Misc & Unknown
        • FX - Holo Map
        • FX - Beacon
        • FX - Skybox
          • FX - Skybox 1K
          • FX - Skybox Carrier
          • FX - Skybox Creature
          • FX - Skybox Nuke
          • FX - Skybox Station Traffic
        • FX - Skyway
        • FX - Dev
          • FX - Bug Repro
        • FX - Droppod
        • FX - Scan
      • FX - Raw Data
        • FX - EMP
        • FX - Env
        • FX - Grenade
        • FX - Harvester
          • FX - Coop Harvester FX
        • FX - HUD
          • FX - HUD AR FX
          • FX - HUD AR Impacts
          • FX - HUD AR Lines
          • FX - HUD AR Ordinance
          • FX - HUD AR Pings
          • FX - HUD AR Titandroppoint
        • FX - Impact
          • FX - Impact FX EXP Cutom
        • FX - Light
        • FX - Orbital Strike
        • FX - Projectile Plasma
        • FX - Reload
        • FX - Shell Eject
        • FX - Smoke
        • FX - Tracers
        • FX - Weapon
          • FX - Arc Cannon
          • FX - Dragonbreath
          • FX - Flamethrower
          • FX - Malta Gun
          • FX - Triple Threat
    • Sound
      • Sound - Voiceline
      • Sound - Pilot
        • Pilot Weapon
          • Assault Rifle
          • SMG
          • LMG
          • Sniper
          • Shotgun
          • Grenadier
          • Secondary & Pistol
          • Anti-Titan
        • Pilot Ordnance
        • Pilot Ability
      • Sound - Titans
        • Sound - Ion
        • Sound - Tone
        • Sound - Northstar
        • Sound - Monarch
        • Sound - Ronin
        • Sound - Scorch
        • Sound - Legion
      • Sound - Drone & NPC
        • Sound - MegaTurret
      • Sound - Misc & Unknown
        • Sound - Arc Cannon
        • Sound - Arc Tool
        • Sound - Flamethrower
        • Sound - Triplethreat
    • UI & HUD
      • Menu
        • Loadscreen
        • Private match
        • Scoreboard
  • Mods
    • Plastic Mode
    • No-HUD Mod
  • Exporting Assets
    • Exporting Maps
    • Exporting using Legion
    • Exporting Models
  • Assets
    • Texture library
Powered by GitBook
On this page
  • Introduction
  • Preparation
  • Unpacking
  • Retrieving files to edit
  • Editing .mdl's with a Hex Editor
  • VTF's and VMT's
  • VTF
  • VMT File (managing file)
  • Setting up and using RSPNVPK
  • Final Product?

Was this helpful?

  1. Modding
  2. Custom Skins
  3. Installing

VTF Format (manual)

Installing VTF skins.

Introduction

In this article, we will be editing the path in a weapon's .mdl file to modify the weapon skin to use a custom skin, and applying a custom skin using .vtf and .vmt files.

Preparation

Locate your game folder and find this folder if you are on Origin:

Origin Games\Titanfall2\vpk\

Or this folder if you are on Steam:

Steam\steamapps\common\Titanfall2\vpk\

Copy these files and paste them in a backup folder somewhere else preferably a backup folder:

  • englishclient_mp_common.bsp.pak000_dir.vpk

  • client_mp_common.bsp.pak000_000.vpk

And client_mp_common.bsp.pak000_228 if you have used RSPNVPK for mods before.

Unpacking

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

\Titanfall2\vpk\englishclient_mp_common.bsp.pak000_dir.vpk

Retrieving files to edit

From your extracted vpk, navigate to the \models\weapons\ folder, and then to the folder of the gun you want to edit.

Start by creating a folder/file path on your desktop that has the same names as the common vpk (without the .vpk extension), and replicating the file path that leads to the .mdl files that are in:\englishclient_mp_common.bsp.pak000_dir\models\weapons\<gun name>

We are creating this path so that we can copy and repack the VPK using RSPNVPK

In this example, I will use the CAR smg, so I will copy the 2 .mdl files to\englishclient_mp_common.bsp.pak000_dir\models\weapons\car101

Editing .mdl's with a Hex Editor

We will be using a hex editor to adjust the weapons texture path to something we can work with/input our own textures.

To start, open your .mdl file in the hex editor. Using this, we can edit the file path for the factory skin, or for each non-paid weapon skins.

Once you've opened your file press CTRL+F and search for skin31 . If nothing shows up, then search for skin_31. This is part of one of the paths that you can edit to change the skins. The 2 paths for the 2 skins are .models\WeaponsR2\<gun name>\<gun name> and .models\WeaponsR2\<gun name>\<gun name>_skin31 / .models\WeaponsR2\<gun name>\<gun name>_skin_31

You can have 2 custom skins per gun in the game. Editing \<gun name> replaces the path used for the factory (default) skin, and \<gun name>_skin31 will replace the path for all of the non-paid skins.

Hex Editors work differently from normal text editing. It replaces instead of deleting then placing new characters. So click before the letter you want to change and press the key of the letter you now want.

We will make a simple change of changing the path from .models\Weapons_R2\car_smg\CAR_smg to .models\weapons_r2\car_lmg\car_lmg . The new path can be whatever you want , but to keep the gallery organized, we have a list of recommended names for each gun.

After you save your edits, the file will be saved and you will have a .mdl.bak extension file. You can go ahead and delete the .mdl.bak file, as it's just the previous version .mdl.

Notice that we made the edited path lowercase. If you are using RSPNVPK, you need to use lowercase in the edited path.

Now that we have edited our paths, we can start the process of applying custom skins!

VTF's and VMT's

VTF

With our new paths for custom skins, we need to create the folders following said paths. In the same folder on your desktop, create the file path englishclient_mp_common.bsp.pak000_dir\materials\models\weapons_r2\<edited gun name>.

For this example, the path would be englishclient_mp_common.bsp.pak000_dir\materials\models\weapons_r2\car_lmg. Next, put a .vtf file of your choice in the weapon folder (\car_lmg). A Valve Texture Format (VTF) is a texture that the Source engine uses. That texture is used in our custom skin. If you don't have one, we have a few in the gallery. See below on how to get VTF's:

The .vtf we will be using for an example is the Not Your Savior skin:

Find the download in the gallery:

VMT File (managing file)

Now that we have our VTF(s) in our file system, We can create a Valve Material Type (VMT) file, which manages the .vtf and applies it to the models. In the folder with your VTF, create a blank text document and name it the last string in the path that you edited with the .vmt extension:

Note that if you want to change the skin31 or prime paths, your .vmt file will have to be the same number of characters. For ease of use, just use the name of the path (example .vmt name: car_lmg_skin_31.vmt).

Next, we are going to create a small bit of code so the skin (.vtf) is applied to the model. Open the .vmt file in a text editor and copy the code below, replacing the values inside of <>, and not using the .vtf extension:

"VertexlitGeneric"
{
	$basetexture "models\weapons_r2\<gun name>\<vtf name>"
}

In our example, the code would be:

"VertexlitGeneric"
{
	$basetexture "models\weapons_r2\car_lmg\90notyoursavior"
}

After you are done, save and that's it for the VMT. You can find more documentation about VMT's here:

After you are done with editing the .mdl files and the .vmt and .vtf files, your folder on your desktop should look like this:

Make sure you have a backup of the vpks you are modding before continuing in case something breaks or you are not satisfied with the results

Now drag and drop englishclient_mp_common.bsp.pak000_dir.vpk onto the RSPNVPK.exe . It should bring up a command prompt. Press ENTER to start, and ENTER when RSPNVPK tells you it is finished.

After the tool is finished, copy englishclient_mp_common.bsp.pak000_dir.vpk and client_mp_common.bsp.pak000_228.vpk into your game directory and you should be done!

Final Product?

Say thanks to YawdinXiro for creating a Not your Savior Showcase for the Wiki. Thanks YawdinXiro! (Note; due to different mods, the showcase video lighting is different. The skin wont look exactly like this for you.)

PreviousDDS Format (tool)NextMaking

Last updated 1 year ago

Was this helpful?

​Using:

Time to use the Hex Editor. I will be using in this example.

Setting up and using

Now we are ready to compile our VPK. We will be using . Copy the folder on your desktop from earlier and englishclient_mp_common.bsp.pak000_dir.vpk from your game directory into the RSPNVPK directory:

How to extract VPK's properly ?
HxD
https://github.com/SenorGeese/Titanfall2/blob/master/modding/weapon-config-info/custom-gun-skins/broken-reference/README.md
https://github.com/SenorGeese/Titanfall2/blob/master/modding/weapon-config-info/custom-gun-skins/broken-reference/README.md
Valve Material Type - VMT
RSPNVPK
RSPNVPK
The green underline is the factory skin, and the red underline is the non-paid camos (skin31)
90notyoursavior.vtf
First layer in replacement directory
Main 'menu' of RPSNVPK
Starting Prompt before pressing Enter