Difference between revisions of "Resource list"

From Valve Developer Community
Jump to: navigation, search
m (Just always use quotes around in KV files.)
 
(5 intermediate revisions by 3 users not shown)
Line 11: Line 11:
 
  "materials/vdc/some_material.vmt" "file"
 
  "materials/vdc/some_material.vmt" "file"
 
  "materials/vdc/some_material.vtf" "file"
 
  "materials/vdc/some_material.vtf" "file"
  }</code>).
+
  }
  
 
{{tip|.txt, .res, .ain and .nav files with the same name as the map are automatically pushed, and don't need to be included.}}
 
{{tip|.txt, .res, .ain and .nav files with the same name as the map are automatically pushed, and don't need to be included.}}
Line 17: Line 17:
 
*{{todo|What data types are there beside <code>file</code>?}}
 
*{{todo|What data types are there beside <code>file</code>?}}
 
*{{todo|Can a .res be safely [[BSPZIP]]ped?}}
 
*{{todo|Can a .res be safely [[BSPZIP]]ped?}}
 +
 +
==VGUI Resource Files==
 +
 +
Some resource files can be found in your /resource folder. Most of them are for [[VGUI]].
  
 
== See also ==
 
== See also ==
 
+
*[[VGUI2]]
 
*[[BSPZIP]]
 
*[[BSPZIP]]
 
*[[PackBSP]]
 
*[[PackBSP]]
 
*[[Map Analyst]]
 
*[[Map Analyst]]
 
*[[Pakrat]]
 
*[[Pakrat]]
 +
*[[Map_Resource_Extractor]]
  
[[Category:Level Design]] [[Category:Glossary]]
+
[[Category:Level Design]] [[Category:Glossary]] [[Category:File formats]]

Latest revision as of 12:30, 22 January 2019

A Resource list (.res file) accompanies a map. When the map is running, it directs the server to push arbitrary files to connecting clients.

While it is generally preferable to achieve this by using BSPZIP to embed the files into the map itself, there are occasional situations where only loose files and a .res will work.

Note:A resource list must be located in the \maps folder with the same name as the associated BSP.

Example

Resources
{ 
	"materials/vdc/some_material.vmt"	"file"
	"materials/vdc/some_material.vtf"	"file"
}
Tip:.txt, .res, .ain and .nav files with the same name as the map are automatically pushed, and don't need to be included.
  • To do: What data types are there beside file?
  • To do: Can a .res be safely BSPZIPped?

VGUI Resource Files

Some resource files can be found in your /resource folder. Most of them are for VGUI.

See also