So, i am having a issue with fastdl. I have the site at [url]http://dogfastdl.site11.com/garrysmod/[/url] My cfg is
sv_downloadurl "http://dogfastdl.site11.com/garrysmod/"
My resource file is
pastebin: [url]http://pastebin.com/aG2cjyJz[/url]
Any help would be greatly appreciated Thanks in advance!
Put that in a pastebin and link the pastebin, please.
There
is this for a gamemode or an addon? Either way you can edit this and use it so you dont have to add every single filename
[code]
local ClientResources = 0;
local function ProcessFolder ( Location )
for k, v in pairs(file.Find(Location .. '*')) do
if file.IsDir(Location .. v) then
ProcessFolder(Location .. v .. '/')
else
local OurLocation = string.gsub(Location .. v, '../gamemodes/HZDM/content/', '')
if string.sub(Location, -2) != 'db' then
ClientResources = ClientResources + 1;
resource.AddFile(OurLocation);
end
end
end
end
if isDedicatedServer() then
ProcessFolder('../gamemodes/HZDM/content/models/');
ProcessFolder('../gamemodes/HZDM/content/materials/');
ProcessFolder('../gamemodes/HZDM/content/sound/');
ProcessFolder('../gamemodes/HZDM/content/resource/');
end
Msg("Sent " .. ClientResources .. " client resources.\n");
[/code]
All the directorys need to be changed for your need but it will make everything easier =D
EDIT: Just realised you have it set to download scripts too, IDK why but if you want it add it with the other ProcessFolder's
[Code]
ProcessFolder('../gamemodes/HZDM/scripts/');
[/code]
Gamemode, And it still isnt working.
Sorry, you need to Log In to post a reply to this thread.