Template:PatchDiff/May 13, 2013 Patch/tf/custom/readme.txt

From Team Fortress Wiki
Jump to: navigation, search
1N/AThis folder is automatically scanned when the game boots for VPK files or
2N/Asubfolders. Each subfolder or VPK is added as a search path, so the files
3N/Ainside those VPK's or subfolders will overide the default game files.
N/A1When the game boots, this folder is automatically scanned for VPK files or
N/A2subfolders. Each subfolder or VPK is added as a search path, so the files
N/A3inside those VPK's or subfolders will override the default game files.
44 
55See gameinfo.txt for more details.
66 
1414 tf/custom/another_mod.vpk <<< This VPK will be added as a search path
1515 
1616 
17N/AMounting a VPK to the filesystem is more efficient that adding a subfolder,
18N/Abecause each time the engine neds to open a file, it will need to make a call to the
19N/Aoperating system call to search the folder. VPKs can be searched by the engine much
20N/Amore efficiently. Each subfolder is a new search path that must be checked each
21N/Atime the engine tries to open a file. So for optimal load times, always use VPK files
N/A17Mounting a VPK to the filesystem is more efficient than adding a subfolder,
N/A18as each time the engine needs to open a file, it will need to make a call to the
N/A19operating system to search the folder. VPKs can therefore be searched by the engine
N/A20much more efficiently. Each subfolder is a new search path that must be checked each
N/A21time the engine tries to open a file. So, for optimal load times, always use VPK files
2222and don't make any subfolders in this folder!
2323 
2424 
2828 
2929That will add the directory "tf/custom/models" as a search path, in which case the
3030file my_model.mdl actually exists at the root of the game's virtual filesystem.
N/A31Instead, you would use something like:
N/A32 
N/A33 tf/custom/my_custom_stuff/models/my_model.mdl