Server rentals :: NFOservers.com

Forums

All times are UTC - 8 hours



Author Message
PostPosted: Thu Apr 12, 2012 9:09 pm 
Offline
New to forums
New to forums

Joined: Thu Apr 12, 2012 9:03 pm
Posts: 4
Alright, so I've set up a forceDL file, and custom content like materials/models download flawless, but maps simply will not download for the client and they get disconnected. I've used resource.AddFile("maps/rp_townsend_v2.bsp") in my forceDL file and it STILL does not download, even though the rest of the files do. I have sv_allowdownload and sv_allowupload set to 1 and my net_maxfilesize set to 600. If anyone knows what the problem is, please tell me because I couldn't get this file to download for clients if my life depended on it.


Top
 Profile  
 
PostPosted: Thu Apr 12, 2012 9:29 pm 
Offline
A regular
A regular

Joined: Mon Apr 02, 2012 1:10 pm
Posts: 48
Location: Canada, British Columbia
I think I have a fix for you.

Code:
if SERVER then
AddCSLuaFile( "download.lua" )
resource.AddFile("maps/rp_townsend_v2.bsp")
end


When using this make sure to make the file called download

Move this file into

garrysmod/garrysmod/lua/autorun/server/

If this does not work please post again.
This is untested btw.

_________________
Image


Top
 Profile  
 
PostPosted: Thu Apr 12, 2012 9:52 pm 
Offline
New to forums
New to forums

Joined: Thu Apr 12, 2012 9:03 pm
Posts: 4
This did not work, but thanks for trying to help.


Top
 Profile  
 
PostPosted: Thu Apr 12, 2012 10:04 pm 
Offline
Founder
Founder
User avatar

Joined: Thu Apr 18, 2002 11:04 pm
Posts: 9234
Location: Seattle
The map should automatically go to clients whenever it's loaded, based on the behavior of the base game itself.

Is the game trying to download and having it fail? In the access log for your webhosting, do you see the attempt?


Top
 Profile  
 
PostPosted: Thu Apr 12, 2012 10:15 pm 
Offline
New to forums
New to forums

Joined: Thu Apr 12, 2012 9:03 pm
Posts: 4
I don't have access to the log but when I join in the corner it says the map is downloading for a split second, then it just goes onto the next download without downloading the map.


Top
 Profile  
 
PostPosted: Thu Apr 12, 2012 10:21 pm 
Offline
Founder
Founder
User avatar

Joined: Thu Apr 18, 2002 11:04 pm
Posts: 9234
Location: Seattle
Please have the renter check that log through his "File manager" page for the webhosting, right after connecting and trying to load the map. It could be that the map name needs to be renamed to have a different upper/lowercase combination and the download is failing because of this, for instance.


Top
 Profile  
 
PostPosted: Thu Apr 12, 2012 10:43 pm 
Offline
New to forums
New to forums

Joined: Thu Apr 12, 2012 9:03 pm
Posts: 4
Thanks Edge, I renamed the map files and it worked perfectly. :)


Top
 Profile  
 
PostPosted: Thu Apr 12, 2012 10:53 pm 
Offline
Founder
Founder
User avatar

Joined: Thu Apr 18, 2002 11:04 pm
Posts: 9234
Location: Seattle
Awesome :)


Top
 Profile  
 
PostPosted: Tue Aug 28, 2012 4:46 pm 
Offline
A semi-regular
A semi-regular

Joined: Tue Aug 28, 2012 4:33 pm
Posts: 24
There is a file size limit on gmod downloads. If a file exceeds the limit it's skipped. There's a Convar for it net_maxdownload or something. It's in kb I think. I'd set it to arround 128000


Top
 Profile  
 
PostPosted: Tue Aug 28, 2012 8:19 pm 
Offline
Staff
Staff
User avatar

Joined: Thu Jul 22, 2004 12:24 am
Posts: 1028
Location: Big Bear, CA
The setting you are thinking of is net_maxfilesize and it is in MB. For example, this will allow downloading of files up to 64MB in size: net_maxfilesize 64

_________________
TimeX


Top
 Profile  
 
PostPosted: Tue Aug 28, 2012 9:03 pm 
Offline
A semi-regular
A semi-regular

Joined: Tue Aug 28, 2012 4:33 pm
Posts: 24
Thanks for clarification. I think I was thinking of net max packet size from those figures.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
It is currently Wed May 22, 2013 1:48 am
Powered by phpBB® Forum Software © phpBB Group