Ok, i've made a text file in garrysmod/lua/autorun/{.lua text i made} In it is some Resource.AddSingleFile's. Now in my fastdl host, i've made a garrysmod/maps and a addons. I've dragged every whole addon into the addons and uploaded it. In my servercfg.
[CODE]sv_downloadurl "http://mydownloadurl.com/garrysmod/"
sv_allowupload "0"
sv_allowdownload "0" [/CODE]
I am uploading skin models and weapons.
[CODE] resource.AddSingleFile( "models/player/balls/balls_1.dx80.vtx" )[/CODE]
So, what should i do ? I have ulx force download, but now when i join my server it shows that its trying to download content but the content end up not downloaded...
reread op you cant force a client to download from the addons folder you have to extract them to their respective folders within garrysmod/garrysmod
[QUOTE=bender180;39729036]reread op you cant force a client to download from the addons folder you have to extract them to their respective folders within garrysmod/garrysmod[/QUOTE]
well i have models (what are not addons) and all worked fine untill update
hmmm ive never used Resource.AddSingleFile i know that garry changed where downloads go when you download them from a server in this update maybe thats a factor only thing i can think of is have you tried Resource.AddFile?
Same thing i'm pretty sure
*gentle bump*
Make sure your sv_allowdownload is 1.
What is not downloading? The map or the materials, nothing?
Apparently i noticed that bz2 does not work anymore, wonder have anyone else noticed that, and i wonder am i the only one to have that problem..
[QUOTE=Lerpaderp;39730800]Make sure your sv_allowdownload is 1.
What is not downloading? The map or the materials, nothing?[/QUOTE]
Ok, if you read what I wrote, I clearly state I am uploading skin models and weapons. The maps are working fine, just not the addon. sv_allowdownload 1 does NOTHING unless you want it for stuff like sprays
Ugh, anyone? Lol
[QUOTE=wii1mii;39732691]Apparently i noticed that bz2 does not work anymore, wonder have anyone else noticed that, and i wonder am i the only one to have that problem..[/QUOTE]
I believe I'm having the same issue as you, I currently have a topic on that [url=http://facepunch.com/showthread.php?t=1250354]here[/url].
Sorry about hijacking your thread, NoIAmNotHere... maybe our problems are related, even though they appear to be different.
Sadly still no answer
I think we need more information to answer you. My FastDL works perfectly.
[QUOTE=Aaron113;39744430]I think we need more information to answer you. My FastDL works perfectly.[/QUOTE]
I've given enough essential information, if you needed info why dont you post it?
[QUOTE=NoIamNotHere;39727553]Now in my fastdl host, i've made a garrysmod/maps and a addons.[/QUOTE]
Extract the content from your addons into their appropriate content folders, ie: materials, models, sound, resource.
[QUOTE=hemirox;39752191]Extract the content from your addons into their appropriate content folders, ie: materials, models, sound, resource.[/QUOTE]
Doesnt work.
[editline]28th February 2013[/editline]
[QUOTE=hemirox;39752191]Extract the content from your addons into their appropriate content folders, ie: materials, models, sound, resource.[/QUOTE]
Are you talking about making materials, models, sound etc folders in the fastdl? Or in orangebox/garrysmod
You should not have an addons folder on the fastdl server, you should only have: materials, models, sound, resource, and maps. All the content from the addons should be moved into these folders.
-snip-
Got the same problem with fastdl, after this 158 update, nearly every dl is broken
I just recently fixed my FastDL, so I'll try to help you out. So, for example, I wanted custom skins in my TTT gamemode.
So let's start with a Batman model.
First, I go to gamemodes/terrortown/content on the GAMESERVER. In that directory, create the corresponding directories that come with the models. For a model, it would be /content/models/ and /content/materials/.
In the models folder, put the models of the skin. (Ex: content/models/batman/batman.mdl. Please include the dx80.vtx, dx.90.vtx, and whatnot.) Then, put the materials in the content/materials/ folder. (Ex: content/materials/batman/batmanbody.vmt. Also include all other materials files.)
Now, go back to your main server directory, and put the models and materials for the thing into their corresponding directory. (Ex: models/batman/batman.mdl, materials/batman/batman.vmt) Now, the model is on your gameserver. But we want the client to be able to download it too.
Go to your WEBSERVER. (For me, it's /public_html/gmod_ttt_dl/) In this directory, it should look like your GAMESERVER. (models, materials, etc.) Put the models for the skin or whatever into the right places. (models/batman/batman.mdl, materials/batman/batman.vmt, etc.)
In your GAMESERVER, go to lua/autorun/server. Inside, create a file named FastDL.lua, or whatever you like. Inside it, put THIS CODE (obviously, replace it with the correct files paths):
[lua]
if SERVER then
resource.AddSingleFile("materials/batman/batman.vmt")
resource.AddSingleFile("othermaterialfile")
resource.AddSingleFile("othermaterialfile")
resource.AddSingleFile("othermaterialfile")
resource.AddSingleFile("models/batman/batman.mdl")
resource.AddSingleFile("othermodelfile")
resource.AddSingleFile("othermodelfile")
resource.AddSingleFile("othermodelfile")
resource.AddSingleFile("othermodelfile")
resource.AddSingleFile("othermodelfile")
end
[/lua]
Vuala! Your clients should now be able to download the files in the FastDL.lua files correctly. If you need any more help, feel free to add me on Steam and I'll try again.
~|SZ| LilSumac [Search]
Hope this works!
I use this. It works fine for me.
-- FastDL
"sv_downloadurl" "http://www.xiteroleplay.nn.pe/"
"sv_allowupload" "1"
"sv_allowdownload" "1"
[QUOTE=LilSumac;39775959]
[lua]
if SERVER then
resource.AddSingleFile("materials/batman/batman.vmt")
resource.AddSingleFile("othermaterialfile")
resource.AddSingleFile("othermaterialfile")
resource.AddSingleFile("othermaterialfile")
resource.AddSingleFile("models/batman/batman.mdl")
resource.AddSingleFile("othermodelfile")
resource.AddSingleFile("othermodelfile")
resource.AddSingleFile("othermodelfile")
resource.AddSingleFile("othermodelfile")
resource.AddSingleFile("othermodelfile")
end
[/lua]
[/QUOTE]
So, resource.AddFile("model") wont work?
[B]EDIT:[/B]
I tested both, I can't get either to work. Garry's Mod acts like it is downloading the file, but doesn't actually download it.
Are you using bz2 files or just the uncompressed files on the web server?
There is an open bug ticket for using compressed files atm.
They are compressed, so if I uncompress them they will work? Is Garry working on this, because we have a lot of content that would take forever uncompressed..
For a single model, you would put this in the FastDL.lua:
[lua]
if SERVER then
resource.AddSingleFile("models/batman/batman.dx80.vtx")
resource.AddSingleFile("models/batman/batman.dx90.vtx")
resource.AddSingleFile("models/batman/batman.mdl")
resource.AddSingleFile("models/batman/batman.phy")
resource.AddSingleFile("models/batman/batman.sw.vtx")
resource.AddSingleFile("models/batman/batman.vvd")
end
[/lua]
You COULD just do:
[lua]
if SERVER then
resource.AddFile("models/batman/batman.mdl")
end
[/lua]
resource.AddFile adds ALL files associated with that file. So for a .mdl files, it would include the .dx80.vtx, .vvd, etc. I use AddSingleFile just to make sure though. A little extra work, but I don't mind. :P Also, be SURE to include the .vtx extension on the .dx80, .dx90, and all other Microsoft Visio Document files.
Just curious, what's your sv_downloadurl?
[QUOTE=Bambam152;39787404]They are compressed, so if I uncompress them they will work? Is Garry working on this, because we have a lot of content that would take forever uncompressed..[/QUOTE]
He's trying to blame valve, but it works fine on TF2 so I'm not sure :)
[QUOTE=Pantho;39796938]He's trying to blame valve, but it works fine on TF2 so I'm not sure :)[/QUOTE]
That's exactly what I said in the other thread about this (in the Development section), honestly if he can't figure it out why not just go back to the old system, until Valve fixes it.
Sorry, you need to Log In to post a reply to this thread.