I set up FastDL and it works just fine with everything, but first time i join a server without that map i get kicked because map is missing, and if i connect again without restarting game it will be fine. Is there any way to fix this?
I have also tried resource.AddFile for map but that didn't help either.
My cfg:
[CODE]sv_downloadurl "http://fastdl.nitrous-networks.co.uk/RodolfoG/5131/garrysmod/"
sv_allowdownload 0
sv_allowupload 0
net_maxfilesize 64[/CODE]
You need to use resource.AddFile - [URL]http://wiki.garrysmod.com/page/resource/AddFile[/URL]
[CODE]resource.AddFile( "maps/map_name.bsp" )[/CODE]
Also make sure you run it serverside! Place the file in: garrysmod/lua/autorun/server/
I did try that too and still nothing.
Edit:
Is there a way to force server to not force client to download files like map graphs?Because my fasdl server won't sync map graphs and server is forcing client to download it every time they join...
[QUOTE=CodingBeast;45824480]You need to use resource.AddFile - [URL]http://wiki.garrysmod.com/page/resource/AddFile[/URL]
[CODE]resource.AddFile( "maps/map_name.bsp" )[/CODE]
Also make sure you run it serverside! Place the file in: garrysmod/lua/autorun/server/[/QUOTE]
You don't need to do that for maps, it does it automatically when a client attempts to join
Ye but it still doesn't work when someone joins for the first time.
Sorry but this shouldn't be on 1? sv_allowdownload 0
Okay so here is some shit to make sure you have when you setup FastDL.
sv_allowdownload and sv_allowupload don't have to be 0 but they [u]really[/u] should be set to it to avoid exploits.
Make sure you also have the map saved on your server too. So say the map you wanted was rp_example.bsp, that map should be found in
yourserver/garrysmod/maps/rp_example.bsp
and in
[url]http://fastdl.nitrous-networks.co.uk/RodolfoG/5131/garrysmod/maps/rp_example.bsp[/url]
as well as a zipped bz2 file (although not required).
[QUOTE=gonzalolog;45825742]Sorry but this shouldn't be on 1? sv_allowdownload 0[/QUOTE]
sv_allowdownload is used by SRCD to send custom maps/materials/ect to the client. This is not used by FastDL as sv_downloadurl does not require it to be enabled.
[QUOTE=YourStalker;45825927]Okay so here is some shit to make sure you have when you setup FastDL.
sv_allowdownload and sv_allowupload don't have to be 0 but they [u]really[/u] should be set to it to avoid exploits.
Make sure you also have the map saved on your server too. So say the map you wanted was rp_example.bsp, that map should be found in
yourserver/garrysmod/maps/rp_example.bsp
and in
[url]http://fastdl.nitrous-networks.co.uk/RodolfoG/5131/garrysmod/maps/rp_example.bsp[/url]
as well as a zipped bz2 file (although not required).[/QUOTE]
Everything is set up nicely. Map gets downloaded but still, first time when some random player/client joins without this map he gets kicked. Every time i upload new map i sync server files with fasdl, so i don't need to make sure that files are there even tho i do it all the time. This is only happening with main map that is set when server starts, when i change map in game or via console using 'changelevel' every client download map without problems.
Edit:
So what about sv_allowdownload and sv_allowupload? Should i set them to 1 or 0? Or shall i just remove them?
[QUOTE=Belly136;45826889]
So what about sv_allowdownload and sv_allowupload? Should i set them to 1 or 0? Or shall i just remove them?[/QUOTE]
0
That still doesn't help at all.
Hey mate so the problem is that you have a broken map. Trust me at me it was the same. Just find another one and replace it. A lot of maps work but some dont.
Well map works perfect when it's downloaded via workshop. Well i can try that too.
[QUOTE=Belly136;45835031]Well map works perfect when it's downloaded via workshop. Well i can try that too.[/QUOTE]
Create a collection and put the map in the collection, then.
Have you websynced?
No because i don't want all maps to be downloaded. And yes i did websync.
Probably map was fucked up, i changed map and every client is spawning in server without getting kicked.
Sorry, you need to Log In to post a reply to this thread.