LogoLogo
简体中文
简体中文
  • 主页
  • 联系我们
  • 感谢名单
  • 维基101 - 如何开始?
    • 修改指南
      • 如何备份,解包和重新打包
      • 如何配置修改用一个工作环境
      • 修改工具
        • 如何使用RSPNVPK
        • 资源
          • 游戏目录
          • BSP
            • BSPSource
            • BSP Viewer
            • BSP2MAP
            • BSPZIP
            • EntEd
            • Entspy
            • Map Analyst
            • PackBsp
            • Pakrat
            • VBSP_h4xed
            • VIDE
            • VMEX
            • WinBSPC
            • WinBSPZip
          • Hammer
            • 位移Luxel密度
          • VTF & VMT
            • VTFEdit
            • Vtex
              • Vtex - 编译参数
              • Vtex - 疑难解答
  • 信息
    • 纹理
      • Valve纹理格式-VTF
        • 创建材质
        • 创建动画粒子
        • 修改动画粒子-Wanty的方法
      • Valve材质类型-VMT
      • 纹理和颜色
        • 颜色和纹理信息
      • 着色器
        • $basetexture
        • $color
        • $reflectivity
        • 材质标志
      • 反照率贴图
      • 凹凸贴图
        • $bumpmap
        • $ssbump
      • 立方环境贴图
      • 光照贴图
      • 矢量材质
      • 纹理映射
      • 内容丢失
      • 基础天空盒
        • 2D天空盒
        • 3D天空盒
    • 脚本
      • 关键值
        • Gameinfo.txt
        • 武器配置
      • VScript
    • 文件格式
      • NUT & GNUT-Squirrel游戏语言
      • PSD-Photoshop文档
      • TGA-Truevision图像文件
      • TXT-文本文件
      • VPK-Valve包文件
    • 文件位置
      • VPK
      • 武器
        • 武器模型
        • 武器脚本
        • 武器配置
      • 模型
        • 模型-天空背景
        • 铁驭
          • 模型-铁驭能力
          • 模型-铁驭武器
        • 泰坦
        • 模型-引导标志
        • 模型-容器
        • 模型- Fixtures
        • 模型-IMC基础
        • 模型-工业
        • 模型- 虎大前进基地_live_fire
        • 模型-NPC
        • 模型-边境防御
  • 修改
    • 武器
      • 自定义武器皮肤
        • 使用\应用自定义武器皮肤
          • VTF文件制作
        • 制作武器自定义皮肤
          • 2D图像线框渲染模式(Wireframe mode)
        • 武器自定义皮肤样例
      • 武器效果
      • 准星修改
        • 批量修改准星
        • 准星样例
      • 武器定位
      • 武器视野
      • 一键更换武器视野
      • 特殊/独特武器修改
        • 电能步枪-电弧枪
        • 电能步枪-蓄力颜色
        • LSTAR-蓄力颜色
    • 铁驭
      • 模型-铁驭类
    • 泰坦
      • 泰坦的穹顶护盾
      • 北极星
        • 线缆-钩爪和绊索陷阱
        • 电浆磁轨炮-蓄力特效
        • 北极星-重力特效
        • 北极星-铝热剂特效
      • 浪人
        • 剑封颜色
      • 军团
        • 强大火力-蓄力颜色
      • 离子
        • 镭射炮-蓄力颜色
        • 漩涡防护罩颜色
    • 地图
      • 地图-天空背景
      • 地图-立体地图
      • 战争游戏
        • 全息墙颜色
    • 用户界面
      • 游戏文本修改-r1_language
      • 游戏中
        • 计分板背景
      • 菜单
        • 暂停菜单模糊
        • 主菜单背景
        • 网路-菜单
        • 新闻和聚焦
        • 设置
          • 控制
          • 按键设置
    • 声音
      • 击杀音效
      • 大厅背景音乐
    • 杂项
      • 电缆-滑索
      • 马文机器人-胸部显示屏
      • 脉冲刀范围特效
      • 被声呐探测到的效果
      • 模型-炸蛛
      • 尼斯湖水怪模型
  • 脚本数据
    • 准星
    • 特效(FX)
    • 特效
      • 特效-铁驭
        • 特效-铁驭武器
          • 特效-突击步枪
          • 特效-冲锋枪
          • 特效-轻机枪
          • 特效-狙击步枪
          • 特效-散弹枪
          • 特效-榴弹发射器
          • 特效-副手武器和手枪
          • 特效-反泰坦武器
          • 特效-特殊武器
        • 特效-铁驭投掷物
          • 特效-电弧效果
          • 特效-飞火星
          • 特效-重力星
        • 特效-铁驭能力
      • 特效-泰坦
        • 特效-离子
        • 特效-强力
        • 特效-北极星
          • 特效-电浆轨道炮
          • 特效- Holo Railgun
          • 特效-毒蛇
        • 特效-帝王
          • 特效-Monarch Beam
        • 特效-浪人
        • 特效-烈焰
          • 特效-铝热剂发射器
          • 特效-Meteor First
          • 特效-火墙
        • 特效-军团
      • 特效-NPC和炮台
        • 特效-NPC
          • 特效-无人机
          • FX - Drone Cloak
          • FX - Drone Frag
          • FX - MRVN
          • FX - Mortar
          • FX - Holo Spectre
        • 特效-炮台
      • 特效-杂项和未知项
        • 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 - 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
    • 声音
      • 声音-默认语音
      • 声音-铁驭
        • 铁驭武器
          • 突击步枪
          • 冲锋枪
          • 轻机枪
          • 狙击步枪
          • 散弹枪
          • 榴弹枪
          • 副手武器及手枪
          • 反泰坦武器
        • 铁驭投掷物
        • 铁驭能力
      • 声音-泰坦
        • 声音-离子
        • 声音-强力
        • 声音-北极星
        • 声音-帝王
        • 声音-浪人
        • 声音-烈焰
        • 声音-军团
      • 声音-无人机和NPC
        • 声音 -巨型炮塔
      • 声音-杂项和未知项
        • 声音-电弧炮
        • 声音-电弧枪
        • 声音- Flamethrower
        • 声音- Triplethreat
    • 图标和HUD
      • 菜单
        • 私房加载界面
        • 私人比赛
        • 计分板
  • 修改样例
    • 低配模式
    • 无HUD修改
  • 导出资源
    • 导出地图
    • 导出模型
    • 使用Legion的方式导出
  • 资源
    • 纹理库
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

Was this helpful?

  1. 修改
  2. 武器
  3. 自定义武器皮肤

使用\应用自定义武器皮肤

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 open 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 file path on your desktop that has the same name as the common vpk (without the .vpk extension), and replicating the file path that the .mdl files 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

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

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. It replaces instead of deleting then placing new objects. 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 unedited .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

Setting up and using RSPNVPK

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

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!

Previous自定义武器皮肤NextVTF文件制作

Last updated 3 years ago

Was this helpful?

​

How to extract VPK's properly ?
VTF文件制作
武器自定义皮肤样例
Valve材质类型-VMT
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