Search
Username:
Password:
Register or Reset Password
Remove the ads!
All about .RES / RES files
Difficulty: Intermediate
Category: CS > MappingAuthor(s): xertnevnI
Did you create this? Request ownership

What is a .RES file?

A .RES file is a text file in the Half-Life maps folder that tells the game the resources that your map is using, including sounds, models, .WADs etc.


Why make a .RES file?

It helps a lot when a client is downloading your custom map.
Have you ever been so frustrated in download a map without having its .WAD and your CS will crash (like the original fy_iceworld requiring de_vegas.wad)?
If you create a .RES file and place it in your maps folder with your map, when a client downloads your map from the server, the server will automatically upload the files like .WADs, sounds etc to the client, letting it have a complete download. The server will also send the .RES file to the client, and the cycle repeats when that client hosts too.


How does a .RES file work?

First, let's take a look at the structure of a .RES file. An example:

halflife.wad
ozzy2.wad
czde_stadium_pi.wad
cz_silox.wad
czcs_office.wad
czcs_militia.wad
hl_truck_collection.wad
gfx/env/havup.tga
gfx/env/havdn.tga
gfx/env/havlf.tga
gfx/env/havrt.tga
gfx/env/havft.tga
gfx/env/havbk.tga
sprites/flare1.spr
sound/ambience/cricket.wav
models/pallet.mdl
models/pallet_with_bags.mdl
overviews/de_nuke_cz.bmp
overviews/de_nuke_cz.txt


As you can see, the .RES file assumes the directory of the cstrike folder as the root folder. Which means, the WADs mentioned will be placed in the cstrike directory, and the havup.tga will be placed in cstrike/gfx/env folder.

So, you can create your own .RES file too. Let's say you created a map called de_fpsbanana that requires fpsb.wad.
  • Open up Notepad.
  • In the file, it should just contain "fpsb.wad" without quotes.
  • Hit "File -> Save As".
  • Make sure the file name is named after your map, like in this case it will be "de_fpsbanana.res" without quotes.
  • In the Save as type box, select All Files.
  • Click Save.
Make sure the .RES file is with your map in the cstrike\maps folder.


Are there any tools to speed up the process?

You can get the RESGEN utility here.


Conclusions

A .RES file isn't compulsory, but it will help clients downloading the new maps a lot. Some servers also don't play custom maps that don't have .RES files as clients can't download all the pieces required to run the map properly like .WAD files.
Added: 2 years agoTags: about, res, files, .res
Feedback (7)
FALCONsw .
BananiteY2M
Posted 1 month ago
Thank you alot
- Bananite
LeRadieux .
existence under doubtY2M
Posted 1 year ago
OK, thanks!
amp .
AMPY2M
Posted 1 year ago
Pros: Easy on the eyes. =] You even included the RESGEN link.
Cons: none found. =]
Notes: I knew all about .RES files before, but I wanted to tell you this is a great simple way to get the idea across.
nesa24casa .
BananiteY2M
Posted 2 years ago
Notes: its cool and i approve
- Bananite
SPNKr .
BannedY2M
Posted 2 years ago
Very informative, nice. This is like the most detailed tutorial written.
- Banned
Raz1r .
Railer for Life.Y2M
Posted 2 years ago
Great tut. Nice fromatting, it made me want to read it.
pope192 .
Balls of s-s-s-steelY2M
Posted 2 years ago
Cool, Nice tutorial! ^_^

I never even knew what the .RES files were for. :I
- Balls of s-s-s-steel
Add Feedback
Provide constructive feedback. What is "constructive"?
You cannot post yet!
Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop.

To post in this submission register or login.
Assessment
The community's verdict.
User Rating [+]
9.2/10
bScore
9.2/10
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This Tutorial in a nutshell...
Detailed & Comprehensive
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.

Added by...
LeRadieux .
existence under doubt
Not ranked

[+] Donate
Related Tutorials