Hello, :rolleyes:
I recently was trying to setup FastDL for the models that I loaded into our pointshop addon in TTT.
I am using 000webhost as my host and as for my server I run it off my PC.
Here is my fastDL site: [URL="http://tgtgaming.net84.net/garrysmod/"]http://tgtgaming.net84.net/garrysmod/[/URL]
I added it to my cfg using these commands:
[CODE]
net_maxfilesize "64"
sv_downloadurl "www.tgtgaming.net84.net/garrysmod/"
sv_allowupload "1"
sv_allowdownload "1"
[/CODE]
After that was set I added the files to the autorun/lua folder.
This is what the file looked like inside:
[CODE]
resource.AddFile("models/batman/slow_70s_v2.dx80.vtx")
resource.AddFile("models/batman/slow_70s_v2.dx90.vtx")
resource.AddFile("models/batman/slow_70s_v2.mdl")
resource.AddFile("models/batman/slow_70s_v2.phy")
resource.AddFile("models/batman/slow_70s_v2.sw.vtx")
resource.AddFile("models/batman/slow_70s_v2.vvd")
resource.AddFile("models/batman/slow_70s_v2.xbox.vtx")
ETC...ETC....[/CODE]
But, when I checked the models were not downloading and they showed up as errors in the pointshop.
Does anyone know how to fix this or what I may be doing wrong?
Please Help and Thank you!
~kpj :dance:
The problem is because you put the file in autorun/lua instead of autorun/lua/server
if you don't have the if {server} then thing when you put it in autorun/lua. It won't do anything.
[QUOTE=deraphel;40310112]The problem is because you put the file in autorun/lua instead of autorun/lua/server
if you don't have the if {server} then thing when you put it in autorun/lua. It won't do anything.[/QUOTE]
This is somewhat correct but I use the pointshop items for resource.AddFile insted of having a file in lua/autorun.
I use this code to get my fastdl downloading correctly
[code]if SERVER then
resource.AddSingleFile ("models/batman/slow_70s_v2.mdl")
resource.AddSingleFile ("models/batman/slow_70s_v2.vtx")
end[/code]
If you want to have a simple time resource adding files you can use Fox-Warrior's Resources Generator
you can find it here: [URL="http://facepunch.com/showthread.php?t=904405"]http://facepunch.com/showthread.php?t=904405[/URL]
hope this helps!
Sorry, you need to Log In to post a reply to this thread.