|
| 1 | +This folder is automatically scanned when the game boots for VPK files or |
| 2 | +subfolders. Each subfolder or VPK is added as a search custom, so the files |
| 3 | +inside those VPK's or subfolders will overide 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 | + mod_hl2mp/custom/my_custom_stuff/ <<< This subfolder will be added as a search custom |
| 10 | + mod_hl2mp/custom/my_custom_stuff/models/custom_model.mdl |
| 11 | + mod_hl2mp/custom/my_custom_stuff/materials/custom_material.vmt |
| 12 | + mod_hl2mp/custom/my_custom_stuff/materials/vgui/custom_ui_thing.res |
| 13 | + mod_hl2mp/custom/some_mod.vpk <<< This VPK will be added as a search custom |
| 14 | + mod_hl2mp/custom/another_mod.vpk <<< This VPK will be added as a search custom |
| 15 | + |
| 16 | + |
| 17 | +Mounting a VPK to the filesystem is more efficient that adding a subfolder, |
| 18 | +because each time the engine neds to open a file, it will need to make a call to the |
| 19 | +operating system call to search the folder. VPKs can be searched by the engine much |
| 20 | +more efficiently. Each subfolder is a new search custom 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 | + mod_hl2mp/custom/models/my_model.mdl |
| 28 | + |
| 29 | +That will add the directory "hl2mp/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. |
0 commit comments