SRCDS Steam group


Garrysmod 10 Fast download problem
#1
Hi there! so Im having problem with it not downloading the folder i put in my lua/autorun/addfile.lua

Code:
function AddDir(dir) // recursively adds everything in a directory to be downloaded by client
    local list = file.FindDir("../"..dir.."/*")
    for _, fdir in pairs(list) do
        if fdir != ".svn" then // don't spam people with useless .svn folders
            AddDir(fdir)
        end
    end

    for k,v in pairs(file.Find("../"..dir.."/*")) do
        resource.AddFile(dir.."/"..v)
    end
end

AddDir("materials/models/player/elis/fs")
AddDir("models/player/elis/fsv2")
AddDir("models/renamon")
AddDir("materials/models/renamon")
AddDir("sound/custom")
AddDir("sound/Pet")

It Downloads all except for the 2 first folders... but the rest it added to download.. I've checked the paths 1000 times now but still it refuses to download and they are correct on both fast download and the game server. cause I copied the path aswell.
I also tried adding
Code:
resource.AddFile("models/player/elis/fsv2/fisher.mdl")
resource.AddFile("models/player/elis/fsv2/fischer.dx80.vtx")
resource.AddFile("models/player/elis/fsv2/fischer.dx90.vtx")
resource.AddFile("models/player/elis/fsv2/fischer.mdl")
resource.AddFile("models/player/elis/fsv2/fischer.phy")
resource.AddFile("models/player/elis/fsv2/fischer.sw.vtx")
resource.AddFile("models/player/elis/fsv2/fischer.vvd")
resource.AddFile("materials/models/player/elis/fs/f4.vmt")
resource.AddFile("materials/models/player/elis/fs/f4.vtf")
resource.AddFile("materials/models/player/elis/fs/f4_norm.vtf")
resource.AddFile("materials/models/player/elis/fs/t_guerilla.vmt")
resource.AddFile("materials/models/player/elis/fs/t_guerilla.vtf")
resource.AddFile("materials/models/player/elis/fs/t_guerilla_normal.vtf")
resource.AddFile("materials/models/player/elis/fs/t_phoenix.vmt")
resource.AddFile("materials/models/player/elis/fs/t_phoenix.vtf")
resource.AddFile("materials/models/player/elis/fs/t_phoenix_normal.vtf")
resource.AddFile("materials/models/player/elis/fs/tac_light.vmt")
resource.AddFile("materials/models/player/elis/fs/tac_light.vtf")
resource.AddFile("materials/models/player/elis/fs/tac_light_normal.vtf")
resource.AddFile("materials/models/player/elis/fs/zsgogs_d.vmt")
resource.AddFile("materials/models/player/elis/fs/zsgogs_d.vtf")
resource.AddFile("materials/models/player/elis/fs/zsgogs_d_normal.vtf")
resource.AddFile("materials/models/player/elis/fs/t_guerilla.vmt")
resource.AddFile("materials/models/player/elis/fs/t_guerilla.vmt")
resource.AddFile("materials/models/player/elis/fs/t_guerilla.vmt")

But it didnt download it :S I updated the cache folder and it downloads everything else i change but not the model and materials... so now im coming here to ask if somone might have a better way or maybe can point out something i missed

Sincerly KaMiKaZe
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)