Hello.
I have never messed with a FastDL server, and was wondering if after i put the downloadurl in the server.cfg will it automaticaly download everything in my FastDL, or do i need to add them to the resources in lua?
In addition i heard there is a way to make the users download bzip2 files, and was wondering how?
Thanks!
What you do after the sv_downlodurl "" is make a file under lua/autorun/server and name it whatever (resources.lua etc.) and begin to add lines for each file using resource.AddFile("")
Example:
[CODE]resource.AddFile( "my/player/model/here.mdl" )[/CODE]
Also some GSPs provide clients with sync buttons where they can upload files to their server via FTP and hit that button. That'll upload the files to the we host and compress them in a .bz2 format.
Here's a resource generator:
[URL="http://facepunch.com/showthread.php?t=904405"]http://facepunch.com/showthread.php?t=904405[/URL]
A more recent one:
[URL="http://facepunch.com/showthread.php?t=1423593"]http://facepunch.com/showthread.php?t=1423593[/URL]
And the bzip tool (if you don't have a compression button on your host or don't have a host):
[URL="http://www.bzip.org"]http://www.bzip.org[/URL]
[QUOTE=Aeternal;46113259]What you do after the sv_downlodurl "" is make a file under lua/autorun/server and name it whatever (resources.lua etc.) and begin to add lines for each file using resource.AddFile("")
Example:
[CODE]resource.AddFile( "my/player/model/here.mdl" )[/CODE]
Also some GSPs provide clients with sync buttons where they can upload files to their server via FTP and hit that button. That'll upload the files to the we host and compress them in a .bz2 format.
Here's a resource generator:
[URL="http://facepunch.com/showthread.php?t=904405"]http://facepunch.com/showthread.php?t=904405[/URL]
A more recent one:
[URL="http://facepunch.com/showthread.php?t=1423593"]http://facepunch.com/showthread.php?t=1423593[/URL]
And the bzip tool (if you don't have a compression button on your host or don't have a host):
[URL="http://www.bzip.org"]http://www.bzip.org[/URL][/QUOTE]
so i just need to add the bzip ?
[editline]1st October 2014[/editline]
(for the fastdl)
Bzip the files you want to download, upload files to your server and web server, then add the files to your resource file under lua/autorun/server.
Add the files with the .bz2, right?
just making sure.
Upload zipped files to web server and default ones to your game server.
ok and then with the resource.addfile just add the file which is .bz2?
Do not add the .bz2 extension. Just search for the file on the server and add that (or take the resource generators, select the directory of addons, and generate the lua file there.)
[QUOTE=Aeternal;46122783]Do not add the .bz2 extension. Just search for the file on the server and add that (or take the resource generators, select the directory of addons, and generate the lua file there.)[/QUOTE]
I know, i made them .bz2 files, but what i am asking is, should i use the resource.addfile on the BZ2 file?
[QUOTE]Do not add the .bz2 extension.[/QUOTE]
Yes, you should use the BZ2 file in the resources file BUT you do not keep the .bz2 extension. Say if you had a model called "model.mdl.bz2" on the fastdl server, in the resources on the game server, it would be resource.AddFile("model.mdl")
[QUOTE=Nick78111;46123614]Yes, you should use the BZ2 file in the resources file BUT you do not keep the .bz2 extension. Say if you had a model called "model.mdl.bz2" on the fastdl server, in the resources on the game server, it would be resource.AddFile("model.mdl")[/QUOTE]
Well it didn't work for me.
I've put the .bz2's in the fastdl, and this is apart of my forcedl file:
resource.AddFile( "models/sickness/gtabus.mdl" )
resource.AddFile( "models/sickness/gtabus.mdl" )
resource.AddFile( "models/sickness/gtabus.phy" )
resource.AddFile( "models/sickness/gtabus.sw.vtx" )
resource.AddFile( "models/sickness/gtabus.vvd" )
do you have your sv_downloadurl set? Make sure you have the uncompressed files that are on the fastdl server on the game server. Make sure you are placing the files on the fastdl server in a public folder.
[QUOTE=Nick78111;46125863]do you have your sv_downloadurl set? Make sure you have the uncompressed files that are on the fastdl server on the game server. Make sure you are placing the files on the fastdl server in a public folder.[/QUOTE]
I did, can i just use fastdl with the regular files intead of .bz2's?
make sure sv_downloadurl was set pretty much exactly like this, idk why but not having it in this format made it not work for me before
[code]
sv_downloadurl "http://mywebsite.com/garrysmod"
[/code]
1. Not really smart to use FastDL without bzipping
2. Make sure your sv_downloadurl is set correctly
3. Make sure you don't have the files you want to download, already downloaded such as in workshop content or under garrysmod/download. Delete the files if you already have them and try again.
[QUOTE=Aeternal;46126936]1. Not really smart to use FastDL without bzipping
2. Make sure your sv_downloadurl is set correctly
3. Make sure you don't have the files you want to download, already downloaded such as in workshop content or under garrysmod/download. Delete the files if you already have them and try again.[/QUOTE]
None are in workshop content or can be uploaded there.
My fastdl link works, should it have a "/" in the end? since mine does. example: [url]www.example.com/fastdl/[/url]
and just making sure.
my fastdl should have the bzipping, but in my server it has the orignial models and such.
[editline]2nd October 2014[/editline]
[QUOTE=tzahush;46130123]None are in workshop content or can be uploaded there.
My fastdl link works, should it have a "/" in the end? since mine does. example: [url]www.example.com/fastdl/[/url]
and just making sure.
my fastdl should have the bzipping, but in my server it has the orignial models and such.[/QUOTE]
Update.
My friend got the models but not the materials.
I've checked and its the same folders,
this is the server fastdl lua file:
resource.AddFile( "materials/models/gtaiv/vehicles/stockade/6.vmt" )
This is the fastdl directory:
materials/models/gtaiv/vehicles/stockade/6.vmt.bz2
Post your FastDL Link?
[QUOTE=Aeternal;46130710]Post your FastDL Link?[/QUOTE]
[url]http://xroleplaycommunity.com/fastdl[/url]
Rename "fastdl" to "garrysmod"
and make sure your server.cfg looks like this
[CODE]sv_downloadurl "http://xroleplaycommunity.com/garrysmod"
sv_allowupload "1"
sv_allowdownload "1"
[/CODE]
[QUOTE=nissedude;46131126]Rename "fastdl" to "garrysmod"
and make sure your server.cfg looks like this
[CODE]sv_downloadurl "http://xroleplaycommunity.com/garrysmod"
sv_allowupload "1"
sv_allowdownload "1"
[/CODE][/QUOTE]
still doesn't work.
[editline]2nd October 2014[/editline]
They get my models, but not my materials..
[QUOTE=nissedude;46131126]Rename "fastdl" to "garrysmod"
and make sure your server.cfg looks like this
[CODE]sv_downloadurl "http://xroleplaycommunity.com/garrysmod"
sv_allowupload "1"
sv_allowdownload "1"
[/CODE][/QUOTE]
renaming the folder won't do anything...
Sorry, you need to Log In to post a reply to this thread.