How do I force downloads? (res file)

CS:S, TF2, DOD:S, etc.
Post Reply
User avatar
Nick|NFo
Former staff
Former staff
Posts: 2252
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Mar 30, 2003 1:56 pm
Location: 127.0.0.1

How do I force downloads? (res file)

Post by Nick|NFo »

Source Server RES file

In the maps directory, you need to create a file named mapname.res that lists all the custom resources required by the map, as explained above.

However, there is a different format for the RES files, in a different structure than explained for Counter-Strike 1.6.

The format is as follows:

Code: Select all

    "resources"
    {
    "materials/de_eftd/rock6.vmt" "file"
    "sounds/misc/yoohoo.wav" "file"
    }

Add all the resources of your map on their own line until you have added them all.

You must have the "file" parameter, because the .res file places each file with the value parameter, "file", which signifies that its a map resource file and must be downloaded.

The RES file must be in the maps directory on the gameserver as well as the maps directory on the HTTP download location, via using sv_downloadurl (metro's tutorial provides more information on how to set that up, or you can use our sync tool on the Website tab of your control panel).
-Nick
Post Reply