• resource.addfile limit
    8 replies, posted
So what is the actual limit of the number of files that can be downloaded? I think its stupid to make people download stuff from SVN's and Garrysmod.org for my servers content when I can properly set up a functional and fast sv_downloadurl.
The limit is around 1000 files before the client crashes, I believe. The download limit is 64MB for one file from a server directly, not sure about downloadurl. It's generally easier for people to actually have the files than to have a cached version of the files. They can modify them with ease, for example.
Well I saw my server tell my client to download 1536 files, and they looked like they went ok, but I know thats not the total list. I also see this in the wiki: "This function automatically sends the appropriate VTF file if you include a VMT file, and a MDL file will also automatically send all the other files corresponding to the MDL file. (VTX, VVD, ect)" Does that mean that this: resource.AddFile("models/cheeze/buttons2/clock.mdl") resource.AddFile("models/cheeze/buttons2/clock.phy") resource.AddFile("models/cheeze/buttons2/clock.sw.vtx") resource.AddFile("models/cheeze/buttons2/clock.vvd") resource.AddFile("models/cheeze/buttons2/clock_small.dx80.vtx") resource.AddFile("models/cheeze/buttons2/clock_small.dx90.vtx") resource.AddFile("models/cheeze/buttons2/clock_small.mdl") resource.AddFile("models/cheeze/buttons2/clock_small.phy") resource.AddFile("models/cheeze/buttons2/clock_small.sw.vtx") resource.AddFile("models/cheeze/buttons2/clock_small.vvd") Could be reduced to this?: resource.AddFile("models/cheeze/buttons2/clock.mdl") resource.AddFile("models/cheeze/buttons2/clock_small.mdl") Assuming so, does that count against the download count limit? I'm not sure what you mean by cached version of the file. If I tell a client to download models/cheeze/buttons2/clock.mdl, I see it show up in that exact location on the client PC. Is there another folder models and such go?
[QUOTE=odyss3y;18277551]Well I saw my server tell my client to download 1536 files, and they looked like they went ok, but I know thats not the total list. I also see this in the wiki: "This function automatically sends the appropriate VTF file if you include a VMT file, and a MDL file will also automatically send all the other files corresponding to the MDL file. (VTX, VVD, ect)" Does that mean that this: resource.AddFile("models/cheeze/buttons2/clock.mdl") resource.AddFile("models/cheeze/buttons2/clock.phy") resource.AddFile("models/cheeze/buttons2/clock.sw.vtx") resource.AddFile("models/cheeze/buttons2/clock.vvd") resource.AddFile("models/cheeze/buttons2/clock_small.dx80.vtx") resource.AddFile("models/cheeze/buttons2/clock_small.dx90.vtx") resource.AddFile("models/cheeze/buttons2/clock_small.mdl") resource.AddFile("models/cheeze/buttons2/clock_small.phy") resource.AddFile("models/cheeze/buttons2/clock_small.sw.vtx") resource.AddFile("models/cheeze/buttons2/clock_small.vvd") Could be reduced to this?: resource.AddFile("models/cheeze/buttons2/clock.mdl") resource.AddFile("models/cheeze/buttons2/clock_small.mdl") Assuming so, does that count against the download count limit? I'm not sure what you mean by cached version of the file. If I tell a client to download models/cheeze/buttons2/clock.mdl, I see it show up in that exact location on the client PC. Is there another folder models and such go?[/QUOTE] If you add "models/cheeze/buttons2/clock.mdl" then it will automaticly add all the related files, so the later, And if a client downloads the model it will be permanently stored on the PC, so in other server and in singleplayer you still have the files.
I have tested the download speed on listen servers without a setup sv_downloadurl, the download files will be compressed in a .ztmp file then uploaded to the clients. The speed of download is ALLWAYS limited to about 15 KB/s, It doesn't care what PC or Internet you have.
Note that you should NEVER host a game with your normal gmod installation if you care about your clients. That is because you would make them download every single addon and lua script that you have installed. Most of the time you'll send them stuff they won't even be able to use.
my server has plenty of bandwidth. [URL=http://www.speedtest.net][IMG]http://www.speedtest.net/result/438007509.png[/IMG][/URL]
[QUOTE=odyss3y;18345691]my server has plenty of bandwidth. [URL=http://www.speedtest.net][IMG]http://www.speedtest.net/result/438007509.png[/IMG][/URL][/QUOTE] 27.3.2009 heh? Looks quite old. And as #2 said, you can let the clients load more than 900 (was my highest) files.
i dont run speedtest that often obviously and lately ive had more bandwidth than the local testing servers (verified by ubuntu torrent, etc)
Sorry, you need to Log In to post a reply to this thread.