SunLit Games -
  
Main Menu 

SLDL 

SunLit Day of Defeat League

Login 




 


 Log in Problems?
 New User? Sign Up!

SunVent 

Lobby
Futurama
Admin
Enforcers
SLDL
Fishbowl
L4D L4D2
Game 1
Game 2
Alien Swarm
Firearms
Connect Now
Help

Chat 


Forums 
LAST FORUM POSTS
goto PostHi all!(6)
 by JonnyLaw
 on 09. Sep at 04:48
goto Post....reguarding Rosie(5)
 by JonnyLaw
 on 09. Sep at 04:40
goto PostMurderGrounds(7)
 by //Trance!
 on 08. Sep at 13:45
goto PostZenith Gaming Team Regist...(10)
 by //Trance!
 on 08. Sep at 13:24
goto PostRosie Away(3)
 by Pvt_John
 on 08. Sep at 10:51
goto PostPretzels and Chocolate Br...(3)
 by Rab
 on 08. Sep at 10:15
goto PostAble 6(3)
 by momentum
 on 07. Sep at 23:31
goto PostTEAM sl(iLLz Registrat...(12)
 by JsP
 on 07. Sep at 20:41

[Access Forum]

MEMBERS ONLINE
Colonel_Krust
ronpaul
There are 10 unlogged users and 2 registered users online

You are an anonymous user. You can register for free by clicking here

Categories Menu 

Past Articles 
Older articles

 

SunLit Games FAQs (frequently-asked questions)


Category: Main -> Server Operator Information

Question

Answer

How do I enable fast in game downloads on my Source server?

Fast in game downloads work for all Source games, DODS, HL2DM and CSS, TF2.

A few things to do:

1) Autodownloads should be from a file download server separate from your game server.
http://www.yourwebsite.com/downloads/modname/auto
Files should be uploaded to their correct directory structures
<modname>/maps
<modname>/sound/<your sounds="sounds" folders="folders">
<modname>/materials - if you have custom skins etc

2)You direct your game server to download from your file server with the following cvars

In your game server.cfg file
//map downloads
sv_allowupload 0
sv_allowdownload 1
sv_downloadurl "http://www.yourwebsite.com/downloads/dods/auto"


If players are having trouble downloading bigger maps, you can also add in
net_maxfilesize 30 (or 40 or 50 just make it bigger than the file that is needed to be downloaded)

3) If there is more than just the *.bsp make a *.res file of the map's other required files. If the map only has a bsp file, go to step #4.
This file is tells the server what files to download to support the bsp file.
The res file can be created manually in this format, in Notepad as *txt and then saved as mapname.res
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.

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

On your file download host server, put map files in actual directory structure
..downloads/modname/auto/maps
..downloads/modname/auto/materials
..downloads/modname/auto/models
etc

4) Source maps are notoriously large. Bzip2 compression makes the file size manageable.
They are downloaded in compressed form to the client and Source itself unzips them.
Download Bzip2

( More info on main site http://www.bzip.org/downloads.html )

====================
SETUP FOR WINDOWS
====================
1. Move the download file (make sure it is for windows) into an empty folder in your default harddisk called "bzip2".

(without the quotes)
So an example of the path to the downloaded file's FOLDER would look like:
C:\bzip2

Change C to your default hardisk

2. Rename the file "bzip2.exe" (don't use the quotes)
3. Add your .BSP files that you want compressed into the bzip2 folder.

=================
BZIPPING for WINDOWS
=================
1. Go to Start menu > Run and enter "cmd" (without quotes) into the text area.
2. Click ok and a black window should open.
3. type:
cd C:\bzip2

Again, changing C to your default harddisk then press ENTER.

4. Now type:
bzip2 -v filename.bsp

Replace filename.bsp with your map name.

5. This will compress your .bsp file. To bzip another, press the up arrow and change the filename.
6. Once you have compressed all of your .bsp files, upload them to your WEBSERVER into the correct location, i.e.

"www.domain.com /game/maps"
and delete the non-zipped versions.

5) Upload the map itself , with all files in the correct directory structure, to the game server
Add the names of the new maps to the mapcycle.txt and maplist.txt files in the root mod directory.
</modname></your></modname></modname>

Back to top
How can I generate a complete list of my server's maps?

This procedure takes about 2 minutes to complete

1) Log onto your Server
Click on Start --> Run
Type in the Open: field,
cmd
This opens the old
MsDos Prompt Window

2) Switch to your map directory by typing in its location and hit Enter
It should look something like this,
cd C:\YourGameServerName\dod\maps
(if you dont know it, right click on the map directory, select properties and copy and paste the line you see in Location)

3)Then copy and paste this line into the command line
dir *.bsp /L /B >filelist.txt
Enter
This will generate a list of ALL .bsp files in the map directory as a file called filelist.txt
The list gives the names of all maps with the .bsp extension.
Remember, the maplist.txt file can not be read with the bsp extension in the name

4) To remove all the .bsp extensions in one step, simply open filelist.txt with Notepad
Click on Edit in the toolbar
Select Replace
Type in the Find What: field, .bsp
Leave Replace with: field empty
Click on Replace All button. Done

5) Save the final document as maplist.txt and paste into the server root dod directory

Thanks to [I&S] Pvt_John for this slick trick. :)



Back to top

Theme creado por dev-postnuke.com