You can upload or add any number of resources either in the Assets folder or in the configuration file and it will automatically precache them when the map starts.
你可以上传或添加任意数量的资源,无论是在 Assets 文件夹还是配置文件里,地图开始时会自动预缓存它们。
These files are supported:
支持以下文件:
"vmdl", "vmdl_c",
"vpcf", "vpcf_c",
"vmat", "vmat_c",
"vcompmat", "vcompmat_c",
"vtex", "vtex_c",
"vsnd", "vsnd_c",
"vdata", "vdata_c",
"vpost", "vpost_c",
"vsurf", "vsurf_c",
"vanmgrph", "vanmgrph_c",
"vmix", "vmix_c",
"vnmclip", "vnmclip_c",
"vrman", "vrman_c",
"vrr_c", "vrr_c",
"vsc",
"vsmart", "vsmart_c",
"vsnap", "vsnap_c",
"vsndevts", "vsndevts_c",
"vsndgrps",
"vsndstck", "vsndstck_c",
"vsvg", "vsvg_c",
"vts", "vts_c",
"vxml", "vxml_c"
It cannot download the resources for the clients.
它无法为客户端下载资源。
Upload your workshop packages (the ones that you have uploaded to workshop) into the "Assets" folder inside the plugin folder. (plugins/ResourcePrecacher/Assets) You don't have to list these, each of them will be checked so you can upload as many as possible.
把你已经上传到创意工坊的套件,上传到插件文件夹里的“Assets”文件夹里。( plugins/ResourcePrecacher/Assets ) 你不必列出这些,每一个都会被勾选,以便你尽可能多地上传。
Folder Structure: 文件夹结构:
plugins 插件
- ResourcePrecacher 资源预缓存
- Assets 资产
- 123456789.vpk
- 987654321.vpk
- assets.vpk
- models.vpk
- Assets 资产
OR 或
Add your resources in the configuration:
在配置中添加你的资源:
You can use both ways even together, just dont include resources that is already in an uploaded vpk.
你也可以同时使用这两种方式,只要不要包含已经在上传的 VPK 里的资源。
Warning 警告
Hotreloading this plugin has no effect because the resources can only be precached on map start. If you hotreload the plugin you are supposed to change the map atleast to take effect.
热重载这个插件没有效果,因为资源只能在地图开始时预缓存。如果你热重载插件,至少应该修改地图才能生效。
{ "Resources": [ "models/props_office/file_cabinet_03.vmdl", "models/props_exteriors/guardrail512.vmdl", // .. // .. // .. ] }