And again.... FASTDL

Hey guys,

If I join my server ,I download the map but not the materials or models.
server.cfg

// 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

http://keyjin.pf-control.de/FastDL/garrysmod/

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 Gmod Wiki

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:


resource.AddFile("models/testdir/testmodel.mdl")
resource.AddFile("materials/models/testdir/testmaterial.vmt")
resource.AddFile("sound/testdir/testsound.wav")

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 :]

64, no. Use 600. :wink: