SRCDS Steam group


Custom Maps
#1
I apologize if the answer to my question exists elsewhere on this forum, but I can't seem to find it.

In short I have SRCDS running on a LAN and I want clients to be able to download custom maps when they connect. I get a feeling that I'm overlooking something quite simple.

I'm pretty sure I don't want FastDownload as I don't want to have to setup an HTTP server/purchase hosting for something running on a LAN.
All of the machines are in the same broadcast domain as the server. I would think this would be something built-in as it seems ridiculous to have to have an HTTP server set up for something so simple.


My server's config file is as follows:
PHP Code:
//*************************************************************************\\
//*                                                                       *\\
//*                                                                       *\\
//*               SRCDS Team Fortress 2 SERVER CONFIGURATION              *\\
//*                              VERSION 1.0                              *\\
//*                                                                       *\\
//*                                                                       *\\
//*                                                                       *\\
//*************************************************************************\\

say "Loading SRCDS Team Fortress 2 SERVER CONFIGURATION"

//*************************************************************************\\
//*                                                                       *\\
//*                                                                       *\\
//*                          Miscellaneous                                *\\
//*                                                                       *\\
//*                                                                       *\\
//*************************************************************************\\

// Define your ServerName, this is the name there'll be displayed in the Internet tab.
// Defualt: Counter-Strike: Source
hostname "Syndicate TF2 Dedicated Server [All Payload, All Day]"


// Define your RCon(Remote Console) password, this is mostly used for match servers.
// Defualt: None.
rcon_password "turkey"

// Number of minutes to ban users who fail rcon authentication
sv_rcon_banpenalty 5

// Max number of times a user can fail rcon authentication before being banned
sv_rcon_maxfailures 15

// Define your Server password, so only people who knows it can connect.
// Defualt: None.
sv_password "bagels"

// Define your website for FastDownload.

// Defualt: None.
sv_downloadurl ""


// Allow clients to upload their custom decals to the server.
// Default: 1
sv_allowupload 1


// Allow clients to downnload files.
// Default: 1
sv_allowdownload 1      


// Define your servers MAX Frame Per Second(FPS).
// To recieve 1000FPS on Windows, try to use "fps_max 0".
// Defualt: ?
//fps_max "300"

// This controls your server framerate.
// Default: 0
//host_framerate 0


// Amount of time in seconds a player can spray their decal.
// Default: 10
//decalfrequency 10

//Server is a lan server ( no heartbeat, no authentication, no non-class C addresses )
sv_lan 0


// This will define your location in the world, if somebody as Europe ONLY in their filtes and you have USA - then wouldn't be able to find your server.
// Default: 3
// 0 - Us Eastcoast.
// 1 - US Westcoast.
// 2 - South America.
// 3 - Europe.
// 4 - Asia.
// 5 - Australia.
// 6 - Middle East.
// 7 - Africa.
// 255 - World
sv_region 0

// This could be your own email or another email who do business withing this server.
// Defualt: None.        
sv_contact "The Gojulas"

// Enables or disables whether the server can be paused. 0 is off 1 is on
sv_pausable 1

// Forces all clients on the server to use content that matches what is on the server. 0 is off 1 is on
sv_pure 1

// Kicks clients that do not have content that matches what is on the server
sv_pure_kick_clients 1

// Max download file size in Megabytes. Default is 15
//net_maxfilesize 15


//*************************************************************************\\
//*                                                                       *\\
//*                                                                       *\\
//*                          Brandwidth Rates                             *\\
//*                                                                       *\\
//*                                                                       *\\
//*************************************************************************\\

// Maximum allowed brandwidth on your server.
// Default: 0 (unlimited)
//sv_maxrate 30000


// Minimum allowed brandwidth on your server.
// Default: 0 (unlimited)
//sv_minrate 15000  


// Maximum updates per second as the server will allow.
// Default: 60
// Note: If you're using less than 100Tick, change this CVAR to a lower value.
// For 100TICK: sv_maxupdaterate 100
// For 66TICK: sv_maxupdaterate 66
// For 33TICK: sv_maxupdaterate 33
//sv_maxupdaterate 33


// Minimum updates per second as the server will allow.
// Default: 10
// Note: If you're using less than 100Tick, change this CVAR to a lower value than "sv_maxupdaterate xx"
// For 100TICK: sv_minupdaterate 75
// For 66TICK: sv_minupdaterate 45
// For 33TICK: sv_minupdaterate 15
//sv_minupdaterate 15


// This controls your cleints maximum cmdrate.
// Do the same with this one like: sv_maxupdaterate
// Default: 40
//sv_maxcmdrate 100


// This controls your cleints minimum cmdrate.
// Do the same with this one like: sv_minupdaterate
// Default: 0
//sv_mincmdrate 75

//*************************************************************************\\
//*                                                                       *\\
//*                                                                       *\\
//*                            Game Settings                              *\\
//*                                                                       *\\
//*                                                                       *\\
//*************************************************************************\\

//*Team Auto Balancing*\\

// 0 is off and 1 is on. if 1 then should be used in conjunction with the following 3 commands
mp_autoteambalance 0

// Teams are unbalanced when one team has this many more players than the other (0 disables)
mp_teams_unbalance_limit 10

//*Ending Team Auto Balancing*\\



//*Round & Game Times*\\

// Enable or disable timers to wait between rounds. 0 is off 1 is on
mp_enableroundwaittime 1

// Time after round win until round restarts (in seconds)
mp_bonusroundtime 20

// Time the current round will restart (in seconds)
mp_restartround 20

// Timelimit (in seconds) of the stalemate round
mp_stalemate_timelimit 240

// Game time per map in minutes
//Default is 0
//0=unlimited
mp_timelimit 30

// Max number of rounds to play before server changes maps
mp_maxrounds 7

// Max number of rounds one team can win before a server changes maps
mp_winlimit 10


//*Ending Round & Game Times*\\



//*Client Specific CVARS*\\

// Force dead clients to first person mode disabling freelook. 0 is off 1 is on
mp_forcecamera 0

// Enable or disable spectators on the server. 0 is off 1 is on
mp_allowspectators 1

// 0 is off and clients can do harm to team mates. 1 is on and players can kill or injure team mates
mp_friendlyfire 0

// Footsteps on or off. 0 is off and 1 is on
mp_footsteps 1

// Allow cheats to be used by the client. 0 is off 1 is on
sv_cheats 0

// The amount of time in seconds that a client is booted for no input
//sv_timeout 300

// Force clients to pass a consistency check for critical files before joining server. 0 is off 1 is on
sv_consistency 0

// The pause in seconds between a decal being sprayed
decalfrequency 10

//*End Client Specific CVARS*\\


//*Communication*\\

// Allow players to use a microphone. 0 is off 1 is on
sv_voiceenable 1

// Toggles whether both teams can hear each others voice comms or not. 0 is off 1 is on. recommend it being off
sv_alltalk 0

// Players can chat for this amount of time (in seconds) after a game is over
mp_chattime 10

//*End Communication*\\

//*************************************************************************\\
//*                                                                       *\\
//*                                                                       *\\
//*                             Log Settings                              *\\
//*                                                                       *\\
//*                                                                       *\\
//*************************************************************************\\

// Enable or disable server logging. on is on off is off
log off

// Log server bans in the server logs
sv_logbans 0

// Echo log information to the console. 0 is off 1 is on
sv_logecho 1

// Log server information in the log file. 0 is off 1 is on
sv_logfile 0

// Log everything in one file
sv_log_onefile 0


//*************************************************************************\\
//*                                                                       *\\
//*                                                                       *\\
//*                          EXECUTING CONFIGS                            *\\
//*                                                                       *\\
//*                                                                       *\\
//*************************************************************************\\

// exec mani_server.cfg
// exec banned_user.cfg
// exec banned_ip.cfg
//writeid
//writeip

//*************************************************************************\\
//*                                                                       *\\
//*                                                                       *\\
//*               SRCDS Team Fortress 2 SERVER CONFIGURATION              *\\
//*                              VERSION 1.0                              *\\
//*                                                                       *\\
//*                                                                       *\\
//*                                                                       *\\
//*************************************************************************\\



//SourceMod Plugins

//fastrespawn
//sm_fastrespawn_enabled 1
//sm_fastrespawn_blu 2
//sm_fastrespawn_red 2 

Thank you in advance for your help.
Reply
#2
// Defualt: None.
sv_downloadurl "Input location of LAN files here...."


// Allow clients to downnload files.
// Default: 1
sv_allowdownload 1
PLEASE! Search before you make a thread!
http://forums.srcds.com/viewtopic/10412 - How To Make A Help Thread!

Post server.cfg information, and specific information on how you are running your server!

Ensure you add REP! if they solved your problem Smile
Reply
#3
You have set it so people can download, but there is no location.
PLEASE! Search before you make a thread!
http://forums.srcds.com/viewtopic/10412 - How To Make A Help Thread!

Post server.cfg information, and specific information on how you are running your server!

Ensure you add REP! if they solved your problem Smile
Reply
#4
But is that only for HTTP? HTTP isn't running on the server, the only file sharing protocol running is Samba. I mean, what does it want specifically? A directory in relation to the srcds executable?

The machine is running Windows Server 2008 x64 since I guess that's pertinent once we start talking about directory structure.
Reply
#5
Not sure on the exact file download criteria needed for the line, and also the below line will need to be changed to suit your install:


// Defualt: None.
sv_downloadurl "c:/hlserver/orangebox/tf/maps/"


// Allow clients to downnload files.
// Default: 1
sv_allowdownload 1
PLEASE! Search before you make a thread!
http://forums.srcds.com/viewtopic/10412 - How To Make A Help Thread!

Post server.cfg information, and specific information on how you are running your server!

Ensure you add REP! if they solved your problem Smile
Reply
#6
nvm, found my answer
Reply
#7
Alright KFC, I think you've answered my question. I don't have access to the server right now, but I will check it tomorrow morning.

My main confusion was over all of this talk about purchasing hosting. Honestly I never tried that because I thought it would automatically look in the standard nested directories for files.
Reply
#8
True, however it is not smart Toungue it needs to be directed Big Grin
PLEASE! Search before you make a thread!
http://forums.srcds.com/viewtopic/10412 - How To Make A Help Thread!

Post server.cfg information, and specific information on how you are running your server!

Ensure you add REP! if they solved your problem Smile
Reply
#9
Editing that line in the config worked for me so thanks a lot. Now the problem is the transfer speed. The client is connected to the server via a gigabit uplink and I know the line conditions are fine so I'm not sure why the transfer speed is moving so slowly. The file that needs to be transferred is approximately 20MB. As of now the config file is the same with the exception of these changes:

PHP Code:
// Defualt: None.
sv_downloadurl "D:\SRCDS\orangebox\tf\maps"

// Max download file size in Megabytes. Default is 15
net_maxfilesize 500 
Reply
#10
It's funny that it worked that way for you. I use a remote http server and I had to use the folder ABOVE maps to make it work.

For example, my maps are stored in: http://xxxx.com/files/tf/maps/

My config says:

sv_downloadurl "http://xxxx.com/files/tf/"

anything other than that cvar failed to work.
Reply
#11
Oddly enough the cvar wouldn't work without that for me... Frankly, I'm not going to complain because it works (sort of). The speed is my primary problem as based on the network configuration there is no reason it should take that long...
Reply
#12
are you using bz2?
Reply
#13
No the files are not compressed. Simply stored in the directory that the line points to. I didn't think they needed to be compressed considering the time it should take to transfer 20MB over 100BASE...
Reply
#14
Ok, the way srcds and hlds upload maps to the client is called a trickle download, maybe around 10kb/s, which is why fastdl was made. They have the trickle download so the performance of the server is not affected. All you need is to make a webserver like IIS and make the home directory your tf folder in orangebox. Then set the download url to your lan ip. (cant be localhost) Then you should have a fast dl, I don't remeber if you have to bzip the files.
[Image: b_350x20_C002748-004880-FFFFFF-000000.png]
Reply
#15
You don't have to bzip them, but it is a pretty stellar compression for bsps. I'd recommend using it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)