PDA

View Full Version : How to create RES files for Source servers:


ocarD
12-04-2004, 08:07 AM
From Alfred:

For custom maps that have new resources (such as models or sounds) you need a file in the maps directory called <map name>.res that lists all the custom resources required by that map. It should contain the list of files that a client will download when they get the custom map from the server.

The format of the file is:
-----------------------------------------------
"resources"
{
"blabla.txt" "file"
"sounds/blabla2.txt" "file"
}
--------------------------------------------------
Note the "file" parameter, the .res file consists of key values pairs
and each value parameter must be "file" for map resource files.

This file is needed for both in game downloading and for the http
external downloader.

Black ZR-1
12-04-2004, 09:52 AM
I've had this working back in CZ and it appears that there were some changes in the Source version. I've got it working on Source now, but my banner doesn't seem to be showing. I've made a seperate directory called gfx with banner.gif as my banner. Did they leave out the banner option in sv_downloadurl for Source?

*E|M|F*wArgOd
12-04-2004, 10:25 AM
just a clarification:

The res file is "married" to the bsp file. wherever you place the bsp you place the res.

That is, you place the res file with the bsp in the download maps directory AND you place the res file in the game server maps directory.

and you have to restart the srcds instance (server) to get updated res files in use.

Thanks for making this sticky!

wendestam
12-04-2004, 02:08 PM
"

How to create RES files for Source servers:
From Alfred:

For custom maps that have new resources (such as models or sounds) you need a file in the maps directory called <map name>.res that lists all the custom resources required by that map. It should contain the list of files that a client will download when they get the custom map from the server.

The format of the file is:
-----------------------------------------------
"resources"
{
"blabla.txt" "file"
"sounds/blabla2.txt" "file"
}
--------------------------------------------------
Note the "file" parameter, the .res file consists of key values pairs
and each value parameter must be "file" for map resource files.

This file is needed for both in game downloading and for the http
external downloader.

"

Can you try to explain this a little better, im a noob, and Im not good in english too. please, can someone post an example or something?

ocarD
12-04-2004, 08:02 PM
Originally posted by wendestam
can someone post an example or something?
Thanks to nvpscore (link stolen from him)

*url removed - dead link

smokenjoe
12-04-2004, 08:02 PM
tered: Feb 2003
Help making .res file work
I have been reading tons on this and been working at it for hours I can't seem to get the textures to download from the server i have downloaded .res files from punkassfraggers and installed the .res file in the maps folder and also in the downloadlist folder but i still am missing the textures. Do i need to add something in the server.cfg file?? Please help we would like to run one of our servers with just custom maps Thanks smokin

this is dedicated server without the gui pentium4 with a gig of ram

ocarD
12-04-2004, 08:08 PM
Originally posted by smokenjoe
tered: Feb 2003
Help making .res file work
I have been reading tons on this and been working at it for hours I can't seem to get the textures to download from the server i have downloaded .res files from punkassfraggers and installed the .res file in the maps folder and also in the downloadlist folder but i still am missing the textures. Do i need to add something in the server.cfg file?? Please help we would like to run one of our servers with just custom maps Thanks smokin

this is dedicated server without the gui pentium4 with a gig of ram
Nothing is changed in the server.cfg, just create the RES correctly and it will work just fine. See the example from the lnk above.

smokenjoe
12-04-2004, 08:11 PM
i have used the file from above. It says when i go to propertys it is a .res file. Am i putting it in the right places??
I just copyed and pasted into a .res file and changed the name

ocarD
12-04-2004, 08:19 PM
The RES file neds to be called <your_map_name>.res (where your_map_name is the name of the map) like de_dust.res

The map name and res file name MUST MATCH!

Next add your items in the RES file that are needed for your custom map (as doen in the example above). Save the file and place it in the SAME directory as the map is in ... the MAPS directory. So now you have the map.bsp and the map.res in the same place. (this is obvisously on the server side, not client side)

Now restart the map and the custom content *should* get sent to you.

Oh and make sure you are using textpad or notepad ... NOT WORD.

smokenjoe
12-04-2004, 08:24 PM
So the only place i need to add the .res file is in the map directory?? Thanks
Also when i download a .res file from punkassfraggers i need to change the name from iv_scoutzknivez to iv_scoutzknivez.res thanks

ocarD
12-04-2004, 08:40 PM
Yes its only needed in the MAPS directory and they should all end in .res

smokenjoe
12-04-2004, 09:12 PM
"resources"
{
"materials/anoz/anoz_logo.vtf" "file"
"materials/anoz/anoz_logo.vmt" "file"
}
this is what is inside the .res file it is in the maps folder its name is cs_twilight.res the map is cs_twilight.bsp and it still will not download anything I dont need to change anything in the downloadslist ?? i have tryed with the res file names cs_twilight.res and cs_twilight . it tells me its still a .res file like that when i check propertys

also the materials are in the materials folder inside the cstrike not inside the map folder??

SuicideDog
12-04-2004, 10:05 PM
is there an easy way for me to tell what is needed by a bsp?

wendestam
12-05-2004, 06:00 AM
Originally posted by smokenjoe
also the materials are in the materials folder inside the cstrike not inside the map folder??



True! =)

Prezident
12-05-2004, 09:56 AM
Well I wasn't about to start making RES files manually, so I bribed my friend to make a new utility to make them automatically.

He has posted the tool at this link:

http://www.srcds.com/forums/showthread.php?tid=171&pid=808#pid808

flickted
12-05-2004, 08:53 PM
I have used it on sevral maps and it works great!!!

jmock2@cox.net
12-11-2004, 03:03 PM
Why the hell did PAF not create the .res files for these damn maps.. this is crap!!!!

jmock2@cox.net
12-11-2004, 03:09 PM
Anyone know where to get the .res creating tool??? The link is dead.

Thanks!!

Jason

jmock2@cox.net
12-12-2004, 08:58 AM
Thanks Prezident, and also I apologize to PAF's as I learned the story behind the .res fiasco and it has nothing to do with them. Basically, mappers need to "finish" their maps and that means including any .res files needed if you don't pack everything into the .bsp.... Otherwise your map becomes a huge pain in the ûûû for us all.......

Thanks for the help!!

jmock2@cox.net
12-12-2004, 07:58 PM
I d/l res maker and everything seemed ok, then I opened on of the .res files to make sure they were going ok and I noticed that it chops off the first letter of every word in the entire file. Here is an example (a few lines of one of the .res files made with program):

"resources"
{
"ddons/plugin.vdf" "file"
"in/server.dll" "file"
"in/server_i486.so" "file"
"fg/banned_user.cfg" "file"
"fg/game.cfg" "file"
"fg/server.cfg" "file"
"fg/skill1.cfg" "file"
"fg/valve.rc" "file"
"ownloadLists/aim_map_source.lst" "file"

I checked this against the .res files that I got off of PAF's website in their download section and it should be:

"resources"
{
"addons/plugin.vdf" "file"
"bin/server.dll" "file"
"bin/server_i486.so" "file"
"cfg/banned_user.cfg" "file"
"cfg/game.cfg" "file"
"cfg/server.cfg" "file"
"cfg/skill1.cfg" "file"
"cfg/valve.rc" "file"
"downloadLists/aim_map_source.lst" "file"

I don't know if anyone can fix the tool, but I would hate for a bunch of people to d/l it and it make .res files that are no good.

Thanks!!!

Jason

Prezident
12-12-2004, 08:25 PM
it's been working fine for me.

From the looks of your example, I think you might be using this a little bit wrong. When you extract a map, you should extract it OUTSIDE of your server directory, then run the resMaker tool. I'm pretty sure you don't want people downloading all your cfg files and stuff.

jmock2@cox.net
12-12-2004, 09:54 PM
I will try extracting the map pack from fileplanet in a folder not associated with my server. Also, the other error I got was that there was more than one map in my map directory. Do I have to do each map individually?

Thanks,
Jason

Prezident
12-12-2004, 11:44 PM
Originally posted by jmock2@cox.net
I will try extracting the map pack from fileplanet in a folder not associated with my server. Also, the other error I got was that there was more than one map in my map directory. Do I have to do each map individually?

Thanks,
Jason

Yes, this process should NOT be used with map packs. Doing so will only result in further problems. This tool is meant to be used on individual maps that don't already have res files with them.

jmock2@cox.net
12-13-2004, 12:35 PM
I will not use it on the map pack, but rather extract all the maps from the pack to a folder and create .res files for each of the maps. I will see if this helps the missing letter issue.

Thanks,
Jason

Prezident
12-13-2004, 04:47 PM
Originally posted by jmock2@cox.net
I will not use it on the map pack, but rather extract all the maps from the pack to a folder and create .res files for each of the maps. I will see if this helps the missing letter issue.

Thanks,
Jason

Unless each map was packed seperately, I'm not sure this is going to give you the desired outcome for a large map pack.

What this tool does is inspect all the files and folders that are subdirectories of a main directory, and make a res file with a list of all the files that are there, under the assumption that they are all needed for a particular map. The utility does not actually look in the BSP file to find out what is really needed.

Hope that info helps.

FuLLBreach
12-13-2004, 06:29 PM
Do you need seperate directories on your download url site? or do the files all go in the same directory?

Prezident
12-13-2004, 06:49 PM
All the maps (bsp files) will go in the maps directory.

All the materials and subdirectories will go in the materials folder, but it will have folders beneath that, those sub-folders may have subfolders too.

Same deal with sounds, they all go in sounds, and may have sub-folders and more sub-folders.

Some maps may have even more folders, which I am sure they need to keep their structure intact on the web server to be downloaded from.


maps
-mapname.bsp
-mapname2.bsp
materials
-subfolder
--subfolder
---subfolder
--subfolder
sounds
-subfolder
-files.wav
--subfolder
--files.wav
-files.wav

Hope that helps.

Chupacabra7
12-14-2004, 03:19 PM
So, is this an auto-downloader or what?

*E|M|F*wArgOd
12-17-2004, 04:09 PM
Originally posted by SuicideDog
is there an easy way for me to tell what is needed by a bsp?
Copy your map.vmf file to map.txt.
Open with a text editor.
scroll down to the entities section.
Look for the lines that have the resources you added.

if you can grep then grep on "message"

Too bad autodownload no longer works for anything but the bsp files.

thanks again valve!

tHe neWb
12-17-2004, 04:46 PM
It does work. Sorry, but you are wrong. I personally use it on my server. I have about 6 or 7 res files and all cause the server to d/l the textures and sounds specified.

Acksull
12-30-2004, 08:32 PM
Hmmmm why would they move away from the more simpler format of just..

sound/sound.wav
map/mapname.bsp

Seems like a pain to make sure you've added all the { } and file quotation marks for every resource needed. Just more things to go wrong. Cmon Valve, keep it simple.

Prezident
12-31-2004, 07:31 AM
Originally posted by Acksull
Hmmmm why would they move away from the more simpler format of just..

sound/sound.wav
map/mapname.bsp

Seems like a pain to make sure you've added all the { } and file quotation marks for every resource needed. Just more things to go wrong. Cmon Valve, keep it simple.

Or just use the RES Maker util as posted earlier in this thread. It has been extremely reliable for my so far.

BSODUtensil
01-11-2005, 06:28 AM
hello,
has anyone else had problems with custom models and .vtx files loading from server to client

toastgodsupreme
01-16-2005, 10:20 AM
Haven't tested yet, but will this also cause the BSP (ususally the largest part) to be downloaded from the http server as well?

That's the whole point of me wanting to do this. =)

[ROX] UniSoL
01-16-2005, 11:15 PM
Originally posted by *E|M|F*wArgOd
just a clarification:

The res file is "married" to the bsp file. wherever you place the bsp you place the res.

That is, you place the res file with the bsp in the download maps directory AND you place the res file in the game server maps directory.

and you have to restart the srcds instance (server) to get updated res files in use.

Thanks for making this sticky!

No, you do not need to restart the server to get the res files in use. Just load a map is all you have to do.

BSODUtensil
01-17-2005, 03:59 AM
yep yep yep i know the res file works fine. it is placed in the correct place and works for over 50 custom textures and most of the cusotm models except the vtx ones

look here for my full explanation

http://forums.steampowered.com/forums/showthread.php?s=&threadid=226707

thenuke
01-26-2005, 03:18 AM
great.
all my maps are a mess now , i have lots of maps and i have no idea what resources each map needs.

Sigun
02-07-2005, 10:06 PM
That is my problem to, how do I find out what resources the bps file needs ??

Usually when you download a custom map nothing, there is just one BSP file included and in the readme file there is nothing mentioned about resources !! But when you start the map you get tons of errors asking of models and sounds :(

Couldn´t the developers get a little more serious and add these things to their maps when distributing them

or is there some simple way finding out what resources the map needs ???

Sigun
02-13-2005, 07:53 AM
bump .. can someone please answer this questions.

If there is just a BSP file in the map that you download how do i make a res file for that ?? there is no .vmt file included either.

all maps has been downloaded from http://halflife2.filefront.com/

Iám running a Half Life 2 "Deathmatch server"

natko
02-15-2005, 07:03 AM
Is this still needed if you are using sv_downloadurl? If so why are the mappers not creating these when they release a map? PITA

thenuke
02-24-2005, 10:50 AM
i huerd theres an auto-res-file creator ,,, but i dont think it really works .... try looking for it.

and make sure you put the files in the right place ... you need to locate them on the meterials folder OUTSIDE of the maps folder i seen some1 who put all the files in the map folder and it messed everything up.

tHe neWb
02-24-2005, 11:05 AM
Acually it's resmaker and it seems to work great for me....

Go to www.lawgiver.us

Check the downloads section...

CSS files
CSS misc...get it there...

danny9894
03-20-2005, 10:54 AM
Wow Thanks ;)

Sigun
03-20-2005, 10:28 PM
Resmaker just crashes when I try to launch it on my XP SP2 .

And resmaker also needs to know where the files is, my original question was : how do I make res files with just the BSP file availible ??

I can see all the textures and all missing in the console of my server, but making maps and putting the files where the server wants them doesen´t seem to help.

have also made manual RES files and they work fine but doesen´t help my server. all the error messages are still there.

tHe neWb
03-21-2005, 07:50 AM
Originally posted by Sigun
Resmaker just crashes when I try to launch it on my XP SP2 .

And resmaker also needs to know where the files is, my original question was : how do I make res files with just the BSP file availible ??

I can see all the textures and all missing in the console of my server, but making maps and putting the files where the server wants them doesen´t seem to help.

have also made manual RES files and they work fine but doesen´t help my server. all the error messages are still there.

You have other issues if it is crashing. I have XP SP2 and it works like a champ. It's not a complicated program it just looks at the directory you point it at and makes a file based on what's in it. You might try redownloading it from a different source.

Tathar
05-07-2005, 01:48 PM
Originally posted by Sigun
Resmaker just crashes when I try to launch it on my XP SP2 .

And resmaker also needs to know where the files is, my original question was : how do I make res files with just the BSP file availible ??

I can see all the textures and all missing in the console of my server, but making maps and putting the files where the server wants them doesen´t seem to help.

have also made manual RES files and they work fine but doesen´t help my server. all the error messages are still there.

I to run XPpro SP2. You should make sure that you have the requirements installed as the ReadMe.txt states:

"Requirements:
Only thing required is the .NET Framework 1.1. If you've run Windows Update even remotely recently, you'll have it. If you don't, the program will bomb out with a cryptic message as soon as you launch it."

whutdu
05-17-2005, 01:37 PM
So I made a .res file for one of Fileplanets HL2dm mappack maps. dm_abyss. I did this because clients were unable to download the map from the server.


I followed the proceedure, and the .res came out looking perfect (triple checked for accuracy)

I then deleted my copy of the map, booted it up, and joined the server. It looked like it was working perfectly. Materials and sounds for the map were downloading fine. Then it started downloading the map itself, or so I thought, because a split second after it started downloading abyss, it stopped and said "missing maps dm_abyss. Disconnecting".


I'm at an utter loss. I can't for the life of me get these fileplanet maps to download right. All my other custom maps download great, and the .res files work for them too. It's just these friggin maps. Any ideas?

LazyBoy
05-18-2005, 07:07 PM
umm do i incluce the .bsp and the .nav in it?

nba1341
07-01-2005, 12:12 PM
are you guys using the res maker that calls u a dumba** if u point it to the wrong place?

Prezident
07-02-2005, 01:47 PM
Originally posted by nba1341
are you guys using the res maker that calls u a dumba** if u point it to the wrong place?

Is there any other one?

Trizik
08-09-2005, 01:23 PM
So the *.res file goes on the Source server as well as the sv_downloadurl server?

My sv_downloadurl server has *.bz2 files on it. Does that mean clients connecting to my Source server will download the *.bz2 file and the necessary files listed in the *.res file from my sv_downloadurl server?

jr_G-man
08-13-2005, 01:34 PM
Originally posted by BSODUtensil
hello,
has anyone else had problems with custom models and .vtx files loading from server to client

What web server software are you using? IIS? Apache?

jr_G-man
08-13-2005, 02:22 PM
Originally posted by IoN6
Ok people... Can I get an answer please? It can't be that hard.

I have tested this with sv_downloadurl enabled and it isn't working, with or without the .RES file and I'd really like to know why.

I have tried it with cs_twilight and de_contra, below are the RES files I created for these, so please tell me if made them wrong:


cs_twilight
"resources"
{
"materials/anoz/anoz_logo.vmt" "file"
"materials/anoz/anoz_logo.vft" "file"
}

de_contra
"resources"
{
"materials/de_contra/de_contra_asign.vmt" "file"
"materials/de_contra/de_contra_asign.vft" "file"
"materials/de_contra/de_contra_bsign.vmt" "file"
"materials/de_contra/de_contra_bsign.vft" "file"
"materials/de_contra/de_contra_cred.vmt" "file"
"materials/de_contra/de_contra_cred.vft" "file"
}



Ok, so here's the dealio... And it is a very frustrating one to say the least. I tested this with both twilight and contra. Contra would not download ANYTHING but the bsp file with the above .res file located in /maps/ until I added the rest of the files to the /DownloadList/de_contra.1st file. But the problem is that it is not downloading the VFT files. Only the VMT files... And apparently contra needs the VFT because the as soon as I manually downloaded them the boards to show the bomb sights were no longer purple and black checkerboards. Are the VMT files for the client, and the VFT for the server? Do both need both?


A little insight from Valve here would be nice. I know I am not the only person in the SourceDC community struggling with this. And from the looks of this thread it has been abbandoned. In which case just delete the damn thing so you don't give people a false sense of hope that they might get a real answer from someone who KNOWS and doesn't just guess. Or is that the problem, no one really knows?



If your webserver is running IIS, you will need to explicitly tell IIS to serve those type of files.

gre kamtis
09-06-2005, 06:12 AM
Originally posted by SuicideDog
is there an easy way for me to tell what is needed by a bsp?

just take all files with the same name as the bsp files with u ex.: if the map is de_dust u take all files named de_dust doesnt matter what files

Mizlead
10-16-2005, 08:31 AM
Im up and running but I'm unfamiliar with hosting a dedicated Source server and ige these weird errors when starting the server (even though it actually works)

Attempted to create unknown entity type event_queue_saveload_proxy!

and

Error: Material "sprites/bubble" : proxy "AnimatedTexture" not found!

and finally

couldn't exec server.cfg

(that explains why the hostname in the server list is wrong, etc etc)

I used Lady's server.cfg hmmm any suggestions?

WW2-WARDOG
10-19-2005, 10:42 AM
Originally posted by IoN6
Is this still needed if you are using sv_downloadurl? If so why are the mappers not creating these when they release a map? PITA

Shoddy workmanship,didn't make the map install.exe properly, don't install it.

If they don't include the complete map directorys, other than the .bsp, and their are files needed from these directories, other than stock Source files. Your map will not dl to the client properly, and will be missing stuff.

Better|Off|Dead
04-19-2006, 04:55 AM
Bumped to avoid being purged.

[GT]HaX^
05-08-2006, 05:10 PM
Does anyone know if you are supposed to put the .RES files in the resources folder or maps folder? I'm Running a CSS server and I'm unsure where to put the RES files.

Sigun
05-09-2006, 12:25 AM
.RES files should be in the MAPS folder

unthink
06-13-2006, 06:06 PM
if clients are unable to download the map from the server you need to increase the net_maxfilesize

smash
03-15-2007, 05:05 PM
Bump to avoid yet another purge.

[GT]HaX^
03-15-2007, 06:15 PM
Purge this next time, don't need it anymore ;)

Petruzzi
10-27-2007, 02:40 PM
well i guess ill give this a shot :-P

Petruzzi
10-27-2007, 03:14 PM
"resources"
{
"sound/harborview/komodo.mp3" "file"
"sound/harborview/battleignition.mp3" "file"
}

map is hvr.bsp res is hvr.res created with word pad both are in - source dedicated server\cstrike\Maps - sounds are in - \source dedicated server\cstrike\sound\harborview -

it isnt downloading these sounds with the map, can someone tell me what I am doing wrong here?

XStixsmaster
11-09-2007, 06:17 PM
Is it possible for sumone to make a .res maker program that can make multiple .res files for multiple maps that are in a single maps folder? If you catch my drift...

---Stixsmaster

GimmiLFactorY
03-04-2010, 05:02 AM
I dont know if this has been said yet....

You all work to hard, You dont need to do anything with res and have user install a bunch of crap...Just use PackRat. Finds all custom models/sounds/ect associated with the bsp and you click add, poof, zipped right into mr bsp. Wamm bamm thanks mamm.

Sure you get a large bsp file, But no hassle of loose files.

pizzahut
04-01-2012, 04:34 AM
Just use PackRat.
For anyone trying to find this via Google, the correct spelling is Pakrat (https://developer.valvesoftware.com/wiki/Pakrat).