Wazanator

Untitled

Jan 8th, 2014
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. When the game boots, this folder is automatically scanned for VPK files or
  2. subfolders. Each subfolder or VPK is added as a search path, so the files
  3. inside those VPK's or subfolders will override the default game files.
  4.  
  5. See gameinfo.txt for more details.
  6.  
  7. For example, you might have the following file structure:
  8.  
  9. tf/custom/my_custom_stuff/ <<< This subfolder will be added as a search path
  10. tf/custom/my_custom_stuff/models/custom_model.mdl
  11. tf/custom/my_custom_stuff/materials/custom_material.vmt
  12. tf/custom/my_custom_stuff/materials/vgui/custom_ui_thing.res
  13. tf/custom/some_mod.vpk <<< This VPK will be added as a search path
  14. tf/custom/another_mod.vpk <<< This VPK will be added as a search path
  15.  
  16.  
  17. Mounting a VPK to the filesystem is more efficient than adding a subfolder,
  18. as each time the engine needs to open a file, it will need to make a call to the
  19. operating system to search the folder. VPKs can therefore be searched by the engine
  20. much more efficiently. Each subfolder is a new search path that must be checked each
  21. time the engine tries to open a file. So, for optimal load times, always use VPK files
  22. and don't make any subfolders in this folder!
  23.  
  24.  
  25. Note that the following directory structure is NOT correct:
  26.  
  27. tf/custom/models/my_model.mdl
  28.  
  29. That will add the directory "tf/custom/models" as a search path, in which case the
  30. file my_model.mdl actually exists at the root of the game's virtual filesystem.
  31. Instead, you would use something like:
  32.  
  33. tf/custom/my_custom_stuff/models/my_model.mdl
Add Comment
Please, Sign In to add comment