FastDL issue. Only downloads some files/folders.

So, I’ve used some form of FastDL on all my servers for years. However this 1 model set simply won’t download to client.

The map downloads, the other models & weapons download. But the NYPD folder won’t even try and download.
The files are there and working: http://mc.bybservers.co.uk/fastdl/rp2/models/Humans/NYPD/badge.vmt.bz2

but clients simply won’t even try and download them.

I added the resource using the Wiki code



function AddDir(dir)
	local list = file.FindDir("../"..dir.."/*")
	for _, fdir in pairs(list) do
		if fdir != ".svn" then // don't spam people with useless .svn folders
			AddDir(dir.."/"..fdir)
		end
	end
 
	for k,v in pairs(file.Find("../"..dir.."/*")) do
		resource.AddFile(dir.."/"..v)
	end
end
 
AddDir("models/player/Humans/NYPD")


Now you say, I had some missing models when I joined the server. As far as I know, there is a way to force download, some lia file you’ve to edit, I thought.

That would be the example I posted ruben :wink:

As far as I know, you use “resource.AddFile” or “resource.AddSingleFile” instead of “AddDir”. So that’d be resource.AddFile(“models/player/Humans/NYPD”) instead. Just a thought.

My bad.
But I thought there was a script, or something, where you can add a line like:
Add.File("<path>"), but I’ve seen that somewhere else, so I don’t know. All I read was that that was for forcing downloads.

[editline]8th February 2011[/editline]

But it’s for single files only. And you’re only mising a few models, like the cop, 1 car, and something else.

you could try a manual listing rather than the script to see if it makes a difference

This worked.

Very annoying that for some reason the adddir function broke.