Large Map Downloads

Tutorial collection, comprehensive listings on main site.

Large Map Downloads

Postby Tutorial on Tue Mar 07, 2006 9:02 pm

category
Miscellaneous

description
Allow servers to download large map files to your computer without hassle.

keywords
large, map, maps, download, downloads.

"The server is running my map fine but clients get 'missing BSP' message??"

I write this after spending an entire evening trying to figure out the above problem; why my custom map, whilst seemingly perfect in every way, totally refused to download to clients from my clans server, giving them a 'missing bsp' message.

To cut a long story short, the default config settings that the source dedicated server ships with will only allow files up to 16meg in size to be uploaded to clients. If you have a map larger than this (typically if you have bspzipped your custom content into the map) then you will need the server to set the net_maxfilesize cvar to a value greater than the size of your map in megabytes.

There are two ways to do this:

Code: Select all
Add a text file in with your map instructing the server operator installing the map to change their server.cfg and set net_maxfilesize = >yourmapsize.


Code: Select all
Add a logic_auto and point_servercommand to your map to automatically change the net_maxfilesize whenever your map is played


Needless to say, whilst the first option is probably easier, the second is far better in the grand scheme of things in that it requires no in-depth knowledge of server administration on the part of the person installing your map.

To use this second method in your map add the following two entities anywhere inside it.

Logic_auto

point_servercommand


Give the point_servercommand a name, for this example I will use "set_download_size".

Then under the outputs tab on the logic_auto fill in the following information.
Code: Select all
My output named: 
OnMapSpawn

Target entities named:
set_download_size  (the name of my point_servercommand)

Via this input:
Command

With a parameter override of:
net_maxfilesize XX (where XX is a value larger than the total size of your BSP)


Image

Once the above is set up re-compile/bspzip your map and the job's a good 'un. Every time you map is loaded on the server the net_maxfilesize will be set high enough to allow clients to download it.

/James
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Postby Sauce on Mon Jul 03, 2006 7:15 am

thanks, ive been looking for this.
Image
Blink wrote:Do you watch porn and decide you don't need to have sex because you've seen the ending? :-D

zombie@computer wrote:what retarded countries measure in stones anyway?
or feet? or inches? Your dick is a lot longer in cms
User avatar
Sauce
Senior Member
Senior Member
 
Joined: Sat Nov 26, 2005 4:36 am
Location: Australia

Return to Tutorials

Who is online

Users browsing this forum: No registered users