Hey guys,
If I join my server ,I download the map but not the materials or models.
server.cfg
[PHP]// bandwidth rates/settings
sv_minrate 0
sv_maxrate 20000
decalfrequency 10
sv_maxupdaterate 66
sv_minupdaterate 10
sv_downloadurl "http://keyjin.pf-control.de/FastDL/garrysmod/"
sv_allowdownload 0
sv_allowupload 0
net_maxfilesize 64
[/PHP]
[url]http://keyjin.pf-control.de/FastDL/garrysmod/[/url]
Dunno if this will help, add to server.cfg net_maxfilesize 64
no doesn't help...
DiscoBiscut i love you avatar ;D
You need to do resource.AddFile for each material/model/sound. Read more on the [URL="http://wiki.garrysmod.com/?title=Setting_up_sv_downloadurl"]Gmod Wiki[/URL]
realy ? I thinked i don't need this by Fast DL
Yes, you have to. You don't put the resource.AddFile Lua file in the FastDL tho. Put it in the server folder: lua/autorun.
Here's an example:
[CODE]resource.AddFile("models/testdir/testmodel.mdl")
resource.AddFile("materials/models/testdir/testmaterial.vmt")
resource.AddFile("sound/testdir/testsound.wav")[/CODE]
Note: For the ".mdl" file I only have to put "testmodel.mdl" since it will automatically find all the "testmodel.dx80", "testmodel.dx90" etc. For the ".vmt" file it automatically find the "testmaterial.vtf" file with the same name. Note that it wont find all the .vtf file in that dir. It wont find the "testmateral1.vtf" if you put "testmaterial.vmt" for the resource.AddFile.
It's pretty complex I know but once you learn it will be easy as a cake.
hm.. whats about a for loop ? Can you give me for that an example? That will be great :]
[QUOTE=DiscoBiscut;34070828]Dunno if this will help, add to server.cfg net_maxfilesize 64[/QUOTE]
64, no. Use 600. :wink:
Sorry, you need to Log In to post a reply to this thread.