SRCDS Steam group


sv_downloadurl resource.addfile
#1
I have been told to make a resource file to tell my fastdownload url what to send to the clients, firstly where do I put it and whats it called.

Secondly I have thousands of files so can I just put

Code:
resource.AddFile ("materials");

Instead of writing out every single file
Reply
#2
(05-08-2011, 10:52 PM)SL1 CHAOS Wrote:  I have been told to make a resource file to tell my fastdownload url what to send to the clients, firstly where do I put it and whats it called.

Secondly I have thousands of files so can I just put

Code:
resource.AddFile ("materials");

Instead of writing out every single file

You do understand "Server Side", don't you? put the lua file in garrysmod/lua/autorun/server and make sure the files are in your Downloadurl. also, most addons already come with these... but anyway, you can do this with the "AddDir" command: (see the attachment)

Also, be specific with the folders... never add any "general" folders, like materials, models, or sounds. doing so breaks the clientside gmod.


Attached Files
.txt   myfiles.txt (Size: 468 bytes / Downloads: 127)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)