Difference between revisions of "Help:Accessing the game files"
GrampaSwood (talk | contribs) m |
m (Gibbeds VPK Extractor can't do bsps) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Help navbar}} | {{Help navbar}} | ||
− | '''Accessing the game files''' can be done by anyone who downloads ''Team Fortress 2''. The accessible files consist of textures (for [[Backpack|backpack icons]], [[HUD]] elements, decals, etc.), [[Responses|voice lines]] (for [[Classes|all classes]], the [[Administrator]], [[Halloween boss responses|Halloween bosses]], etc.), models (for props, [[Weapons|weapons]], classes, etc.), and other miscellaneous files. These files are all contained in {{code|[[vdc:VPK|.vpk]]}} ('''V'''alve '''P''' | + | '''Accessing the game files''' can be done by anyone who downloads ''Team Fortress 2''. The accessible files consist of textures (for [[Backpack|backpack icons]], [[HUD]] elements, decals, etc.), [[Responses|voice lines]] (for [[Classes|all classes]], the [[Administrator]], [[Halloween boss responses|Halloween bosses]], etc.), models (for props, [[Weapons|weapons]], classes, etc.), and other miscellaneous files. These files are all contained in {{code|[[vdc:VPK|.vpk]]}} ('''V'''alve '''P'''a'''k''', also shortened to simply '''Pak''') files. Note that any files used on community-created [[List of maps|maps]] are contained within the {{code|.bsp}} file instead. |
== Accessing the files == | == Accessing the files == | ||
− | {{code|.vpk}} 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 {{code|.vpk}} files for ''Team Fortress 2'', navigate to {{code|steamapps\common\Team Fortress 2\tf}}. There are many Pak files, but the {{code|_dir}} files will contain everything. There are 4 different types, {{code|tf2_misc_dir.vpk}}, {{code|tf2_sound_misc_dir.vpk}}, {{code|tf2_textures_dir.vpk}}, and {{code|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). |
− | |||
− | |||
− | |||
− | + | * {{code|.vpk}} and {{code|[[vdc:BSP (Source)|.bsp]]}} (map files) | |
+ | ** [[vdc:GCFScape|GCFScape]] | ||
+ | ** [[vdc:VPKEdit|VPKEdit]] | ||
+ | ** [[vdc:Gibbeds VPK Extractor|Gibbeds VPK Extractor]] ({{code|.vpk}} files only) | ||
+ | * {{code|[[vdc:VTF (Valve Texture Format)|.vtf]]}} and {{code|[[vdc:VMT|.vmt]]}} | ||
+ | ** [[vdc:VTF Explorer|VTF Explorer]] | ||
+ | ** [[vdc:VTFEdit|VTFEdit]] | ||
+ | * {{code|.nut}}, {{code|.cfg}}, and {{code|.pop}} | ||
+ | ** Any text editor or [[w:Integrated development environment|IDE]] | ||
+ | * {{code|.zip}} | ||
+ | ** [https://www.win-rar.com/ WinRAR] | ||
+ | ** [https://www.7-zip.org/ 7zip] | ||
− | == | + | == List of files == |
− | + | Below is a non-exhaustive list of files and their uses on the Wiki. | |
− | + | {| class="wikitable grid" | |
− | + | ! class="header" | Type | |
− | + | ! class="header" | Where | |
− | + | ! class="header" | Wiki usage | |
− | + | ! class="header" | Notes | |
− | + | |- | |
− | + | | [[File:Tobor.png|100px]] | |
− | + | | rowspan=2 | {{code|tf2_textures_dir.vpk}}<br>Stored in {{code|.vtf}} format. | |
− | + | | rowspan=2 | | |
− | + | [[Strange Filter]] images<br> | |
− | + | [[Map Stamp]] images<br> | |
− | + | Backpack icon images<br> | |
− | = | + | [[Kill icon]]s<br> |
− | + | [[HUD]] images | |
− | + | | rowspan=2 | Use the {{tl|ExtractTF2}} license<br>If it is artwork, such as the Quickplay art, it uses {{tl|ArtworkTF2}}.<br>Textures for community maps are stored in their {{code|.bsp}} files. | |
− | + | |- | |
− | + | | class="nameplate" align="center" | {{Font colour|white|Textures}} | |
− | + | |- | |
− | + | | [[File:Speaker Icon.png|100px]] | |
− | = | + | | rowspan=2 | {{code|tf2_sound_misc_dir.vpk}}<br>Mostly stored in {{code|.mp3}} or {{code|.wav}} format. |
− | + | | rowspan=2 | | |
− | + | [[Audio cue]]s<br> | |
− | + | [[Weapon]] and [[Building]] sounds | |
− | + | | rowspan=2 | Uses the {{tl|AudioTF2}} license. | |
− | + | |- | |
− | + | | class="nameplate" align="center" | {{Font colour|white|Sounds}} | |
− | + | |- | |
− | == | + | | [[File:Leaderboard class administrator.png|100px]] |
− | + | | rowspan=2 | {{code|tf2_sound_vo_[lang].vpk}}<br>Mostly stored in {{code|.mp3}} or {{code|.wav}} format. | |
− | + | | rowspan=2 | | |
− | = | + | [[Voice commands]]<br> |
− | + | [[Voice responses]] | |
− | + | | rowspan=2 | Uses the {{tl|AudioTF2}} license.<br>Name of the {{code|.vpk}} file changes based on game language (Options > Audio > Audio (spoken) language).<br>Supports English, Russian, Spanish, French, and German. | |
− | === | + | |- |
− | + | | class="nameplate" align="center" | {{Font colour|white|Voice lines}} | |
− | + | |- | |
− | + | | [[File:TF2 crosshair.png|100px]] | |
− | + | | rowspan=2 | {{code|tf2_misc_dir.vpk}} | |
− | == | + | | rowspan=2 | Not used on Wiki itself, but can aid in editing:<br> |
− | + | Config ({{code|.cfg}}) files<br> | |
− | + | Model ({{code|.mdl}}) files for [[Help:Cosmetic images|cosmetic image renders]] in [[Help:Model Viewer|HLMV]]<br> | |
− | + | Material ({{code|.vmt}}) files | |
− | + | | rowspan=2 | This {{code|.vpk}} shares a similar file structure to the {{code|/tf/}} folder. | |
− | + | |- | |
− | + | | class="nameplate" align="center" | {{Font colour|white|Miscellaneous files}} | |
− | + | |- | |
+ | | [[File:Heavybot blu.png|100px]] | ||
+ | | rowspan=2 | {{code|tf2_misc_dir.vpk}}<br>Population ({{code|.pop}}) files in {{code|tf\scripts\population}} | ||
+ | | rowspan=2 | Used on [[Robots|Robot]] articles to determine attributes.<br>Used on [[Mann vs. Machine mission|mission]] pages to determine which Robots show up on a wave. | ||
+ | | rowspan=2 | This {{code|.vpk}} shares a similar file structure to the {{code|/tf/}} folder.<br>Split up into two different types:<br>Mission files, containing information about waves (which Robots spawn, credit drops, etc.).<br>Robot template files, stores information about Robots like weapons, name, health, skill, attributes, etc. for use in mission files. | ||
+ | |- | ||
+ | | class="nameplate" align="center" | {{Font colour|white|Mann vs. Machine Robot files}} | ||
+ | |- | ||
+ | | [[File:Ctf 2fort bridge ss.png|100px]] | ||
+ | | rowspan=2 | {{code|steamapps\common\Team Fortress 2\tf\maps}}<br>Stored outside of {{code|.vpk}} files. | ||
+ | | rowspan=2 | Accessing map-specific assets:<br> | ||
+ | Community-made [[List of posters|posters]]<br> | ||
+ | Map-specific announcer voice lines<br> | ||
+ | Loading menu photos | ||
+ | | rowspan=2 | Files cannot be extracted from {{code|.bsp}} files, rather the {{code|.zip}} file needs to be extracted then unpacked. | ||
+ | |- | ||
+ | | class="nameplate" align="center" | {{Font colour|white|Map files}} | ||
+ | |- | ||
+ | | [[File:Edit icon.png|100px]] | ||
+ | | rowspan=2 | Stored in the map's {{code|.bsp}} file.<br>Stored in {{code|.nut}} format. | ||
+ | | rowspan=2 | | ||
+ | [[Template:Zombie Infection abilities|Zombie infection abilities]]<br> | ||
+ | [[Template:Carrier health table|Carrier health table]]<br> | ||
+ | [[Versus Saxton Hale#Gameplay changes|Figuring out gameplay changes in Versus Saxton Hale]] | ||
+ | | rowspan=2 | Written in ''[[w:Squirrel (programming language)|Squirrel]]'' ([http://squirrel-lang.org/#documentation documentation]).<br>If a page has a VScript reference, add {{tl|VScript refnote}} at the top of the references section.<br>Values found in VScript should always be referenced in the following format: {{code|vscripts\folder\file.nut:L1-10}}<br>Example reference: {{code|vscripts\infection\infection.nut:L525-526}}.<br>Function names/specific values are not required, but can be added for extra clarity. | ||
+ | |- | ||
+ | | class="nameplate" align="center" | {{Font colour|white|VScript}} | ||
+ | |} |
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 |