Difference between revisions of "Help:Accessing the game files"
m (.vpk and .bsp...(also supports opening .bsp files)) |
m (Gibbeds VPK Extractor can't do bsps) |
||
Line 9: | Line 9: | ||
** [[vdc:GCFScape|GCFScape]] | ** [[vdc:GCFScape|GCFScape]] | ||
** [[vdc:VPKEdit|VPKEdit]] | ** [[vdc:VPKEdit|VPKEdit]] | ||
− | ** [[vdc:Gibbeds VPK Extractor|Gibbeds VPK Extractor]] | + | ** [[vdc:Gibbeds VPK Extractor|Gibbeds VPK Extractor]] ({{code|.vpk}} files only) |
* {{code|[[vdc:VTF (Valve Texture Format)|.vtf]]}} and {{code|[[vdc:VMT|.vmt]]}} | * {{code|[[vdc:VTF (Valve Texture Format)|.vtf]]}} and {{code|[[vdc:VMT|.vmt]]}} | ||
** [[vdc:VTF Explorer|VTF Explorer]] | ** [[vdc:VTF Explorer|VTF Explorer]] |
Latest revision as of 20:14, 14 August 2024
|
Accessing the game files can be done by anyone who downloads Team Fortress 2. The accessible files consist of textures (for backpack icons, HUD elements, decals, etc.), voice lines (for all classes, the Administrator, Halloween bosses, etc.), models (for props, weapons, classes, etc.), and other miscellaneous files. These files are all contained in .vpk
(Valve Pak, also shortened to simply Pak) files. Note that any files used on community-created maps are contained within the .bsp
file instead.
Accessing the files
Most of the files Team Fortress 2 uses require special programs to open. Below is a list of programs that can be used to open and extract each of these file types. To find the .vpk
files for Team Fortress 2, navigate to steamapps\common\Team Fortress 2\tf
. There are many Pak files, but the _dir
files will contain everything. There are 4 different types, tf2_misc_dir.vpk
, tf2_sound_misc_dir.vpk
, tf2_textures_dir.vpk
, and tf2_sound_vo_[lang].vpk
(this file depends on your in-game voice language setting. Supports English, Russian, Spanish, French, and German. Only the language you've selected will appear in your folders).
.vpk
and.bsp
(map files)- GCFScape
- VPKEdit
- Gibbeds VPK Extractor (
.vpk
files only)
.vtf
and.vmt
.nut
,.cfg
, and.pop
- Any text editor or IDE
.zip
List of files
Below is a non-exhaustive list of files and their uses on the Wiki.
Type | Where | Wiki usage | Notes |
---|---|---|---|
![]() |
tf2_textures_dir.vpk Stored in .vtf format.
|
Strange Filter images |
Use the {{ExtractTF2}} licenseIf it is artwork, such as the Quickplay art, it uses {{ArtworkTF2}} .Textures for community maps are stored in their .bsp files.
|
Textures | |||
![]() |
tf2_sound_misc_dir.vpk Mostly stored in .mp3 or .wav format.
|
Audio cues |
Uses the {{AudioTF2}} license.
|
Sounds | |||
![]() |
tf2_sound_vo_[lang].vpk Mostly stored in .mp3 or .wav format.
|
Uses the {{AudioTF2}} license.Name of the .vpk file changes based on game language (Options > Audio > Audio (spoken) language).Supports English, Russian, Spanish, French, and German. | |
Voice lines | |||
![]() |
tf2_misc_dir.vpk
|
Not used on Wiki itself, but can aid in editing: Config ( |
This .vpk shares a similar file structure to the /tf/ folder.
|
Miscellaneous files | |||
![]() |
tf2_misc_dir.vpk Population ( .pop ) files in tf\scripts\population
|
Used on Robot articles to determine attributes. Used on mission pages to determine which Robots show up on a wave. |
This .vpk shares a similar file structure to the /tf/ folder.Split up into two different types: Mission files, containing information about waves (which Robots spawn, credit drops, etc.). Robot template files, stores information about Robots like weapons, name, health, skill, attributes, etc. for use in mission files. |
Mann vs. Machine Robot files | |||
![]() |
steamapps\common\Team Fortress 2\tf\maps Stored outside of .vpk files.
|
Accessing map-specific assets: Community-made posters |
Files cannot be extracted from .bsp files, rather the .zip file needs to be extracted then unpacked.
|
Map files | |||
![]() |
Stored in the map's .bsp file.Stored in .nut format.
|
Zombie infection abilities |
Written in Squirrel (documentation). If a page has a VScript reference, add {{VScript refnote}} at the top of the references section.Values found in VScript should always be referenced in the following format: vscripts\folder\file.nut:L1-10 Example reference: vscripts\infection\infection.nut:L525-526 .Function names/specific values are not required, but can be added for extra clarity. |
VScript |