• Gmod Force Download not working at all!
    8 replies, posted
Hey guys. I currently have a working FastDL servers where all my maps download properly and at a good speed. Now I have made sure downloading is allowed and stuff and have made my resource.lua with all my resources destinations in it. I have also tried a feature that came with a gamemode that had sv_resource in it. Here are my sv_resource, resource and config: sv_content.lua [CODE]--resource local function AddDir(dir) --copypasta from gmod wiki. local list = file.Find(dir.."/*", "GAME") for _, fdir in pairs(list) do if fdir ~= ".svn" then AddDir(dir.."/"..fdir) end end for k,v in pairs(file.Find(dir.."/*", "GAME")) do if v and v ~= "" then local d = string.gsub(dir,"gamemodes/JailBreak/content/",""); resource.AddSingleFile(d.."/"..v) end end end AddDir("gamemodes/JailBreak/content") [/CODE] This is on both gamemodes/jailbreak/gamemode/core and lua/autorun/server resource.lua [CODE] resource.AddFile( "sound/trizone/joinjb.wav" ) resource.AddFile( "sound/trizone/joinjbsong.wav" ) resource.AddFile( "sound/trizone/joindr.wav" ) resource.AddFile( "sound/trizone/deathrun/runnerswin.wav" ) resource.AddFile( "sound/trizone/deathrun/deathwin.wav" ) resource.AddFile( "sound/trizone/prisoner_win.wav" ) resource.AddFile( "sound/trizone/prisoner_win_explicit.wav" ) resource.AddFile( "sound/trizone/prisoner_winold_data/joinjb.wav" ) resource.AddFile( "sound/trizone/jailbreak/guard_win.wav" ) resource.AddFile( "sound/trizone/jailbreak/guard_winld.wav" ) resource.AddFile( "sound/trizone/jailbreak/knifefigh.wav" ) resource.AddFile( "sound/trizone/jailbreak/prisoner_win.wav" ) resource.AddFile( "sound/trizone/jailbreak/prisoner_winld.wav" ) resource.AddFile( "sound/trizone/jailbreak/shot4shot.wav" ) resource.AddFile( "sound/trizone/jailbreak/wardendead.wav" ) resource.AddFile( "sound/trizone/jailbreak/sfsf/guard_win.wav" ) resource.AddFile( "sound/trizone/jailbreak/sfsf/guard_winld.wav" ) resource.AddFile( "sound/trizone/jailbreak/sfsf/knifefigh.wav" ) resource.AddFile( "sound/trizone/jailbreak/sfsf/prisoner_win.wav" ) resource.AddFile( "sound/trizone/jailbreak/sfsf/prisoner_winld.wav" ) resource.AddFile( "sound/trizone/jailbreak/sfsf/shot4shot.wav" ) resource.AddFile( "sound/trizone/jailbreak/sfsf/wardendead.wav" ) resource.AddFile( "models/weapons/v_fists.mdl" ) resource.AddFile( "models/weapons/v_punch.mdl" ) resource.AddFile( "models/weapons/w_fists.mdl" ) resource.AddFile( "models/weapons/w_fists_t.mdl" ) resource.AddFile( "models/player/blockdude.mdl" ) resource.AddFile( "models/player/danboard.mdl" ) resource.AddFile( "models/PKMN Trainer Red/Ash.mdl" ) resource.AddFile( "models/PKMN Trainer Red/Bwa.mdl" ) resource.AddFile( "models/PKMN Trainer Red/Dsh.mdl" ) resource.AddFile( "models/PKMN Trainer Red/Gen.mdl" ) resource.AddFile( "models/PKMN Trainer Red/Hsh.mdl" ) resource.AddFile( "models/PKMN Trainer Red/Ptn.mdl" ) resource.AddFile( "models/PKMN Trainer Red/red.mdl" ) resource.AddFile( "models/half-dead/nazizombies/1.mdl" ) resource.AddFile( "models/half-dead/nazizombies/10.mdl" ) resource.AddFile( "models/half-dead/nazizombies/11.mdl" ) resource.AddFile( "models/half-dead/nazizombies/12.mdl" ) resource.AddFile( "models/half-dead/nazizombies/13.mdl" ) resource.AddFile( "models/half-dead/nazizombies/14.mdl" ) resource.AddFile( "models/half-dead/nazizombies/15.mdl" ) resource.AddFile( "models/half-dead/nazizombies/16.mdl" ) resource.AddFile( "models/half-dead/nazizombies/17.mdl" ) resource.AddFile( "models/half-dead/nazizombies/18.mdl" ) resource.AddFile( "models/half-dead/nazizombies/2.mdl" ) resource.AddFile( "models/half-dead/nazizombies/3.mdl" ) resource.AddFile( "models/half-dead/nazizombies/4.mdl" ) resource.AddFile( "models/half-dead/nazizombies/5.mdl" ) resource.AddFile( "models/half-dead/nazizombies/6.mdl" ) resource.AddFile( "models/half-dead/nazizombies/7.mdl" ) resource.AddFile( "models/half-dead/nazizombies/8.mdl" ) resource.AddFile( "models/half-dead/nazizombies/9.mdl" ) resource.AddFile( "materials/crysis_arrow.vmt" ) resource.AddFile( "materials/crysis_arrow.vtf" ) resource.AddFile( "materials/crysis_button.vmt" ) resource.AddFile( "materials/crysis_button.vtf" ) resource.AddFile( "materials/qcmd_arrow.vmt" ) resource.AddFile( "materials/qcmd_arrow.vtf" ) resource.AddFile( "materials/qcmd_button.vmt" ) resource.AddFile( "materials/qcmd_button.vtf" ) resource.AddFile( "materials/vgui/background_texture.vmt" ) resource.AddFile( "materials/vgui/background_texture.vtf" ) resource.AddFile( "materials/vgui/jb_banner.vmt" ) resource.AddFile( "materials/vgui/jb_banner.vtf" ) resource.AddFile( "materials/vgui/jb_banner_tz.vmt" ) resource.AddFile( "materials/vgui/jb_banner_tz.vtf" ) resource.AddFile( "materials/prisonbreak/background_texture.vmt" ) resource.AddFile( "materials/prisonbreak/background_texture.vtf" ) resource.AddFile( "materials/prisonbreak/notices/cleanup.vmt" ) resource.AddFile( "materials/prisonbreak/notices/cleanup.vtf" ) resource.AddFile( "materials/prisonbreak/notices/error.vmt" ) resource.AddFile( "materials/prisonbreak/notices/error.vtf" ) resource.AddFile( "materials/prisonbreak/notices/generic.vmt" ) resource.AddFile( "materials/prisonbreak/notices/generic.vtf" ) resource.AddFile( "materials/prisonbreak/notices/hint.vmt" ) resource.AddFile( "materials/prisonbreak/notices/hint.vtf" ) resource.AddFile( "materials/prisonbreak/notices/undo.vmt" ) resource.AddFile( "materials/prisonbreak/notices/undo.vtf" ) resource.AddFile( "materials/prisonbreak/commands/arrows.vmt" ) resource.AddFile( "materials/prisonbreak/commands/arrows.vtf" ) resource.AddFile( "materials/prisonbreak/commands/exclamation.vmt" ) resource.AddFile( "materials/prisonbreak/commands/exclamation.vtf" ) resource.AddFile( "materials/prisonbreak/commands/lineup.vmt" ) resource.AddFile( "materials/prisonbreak/commands/lineup.vtf" ) resource.AddFile( "materials/prisonbreak/commands/questionmark.vmt" ) resource.AddFile( "materials/prisonbreak/commands/questionmark.vtf" ) resource.AddFile( "materials/prisonbreak/commands/xmark.vmt" ) resource.AddFile( "materials/prisonbreak/commands/xmark.vtf" ) resource.AddFile( "materials/HUD/HUD_RED1.vmt" ) resource.AddFile( "materials/HUD/HUD_RED1.vtf" ) resource.AddFile( "materials/HUD/derma/guntoss.vmt" ) resource.AddFile( "materials/HUD/derma/guntoss.vtf" ) resource.AddFile( "materials/HUD/derma/hotpotato.vmt" ) resource.AddFile( "materials/HUD/derma/hotpotato.vtf" ) resource.AddFile( "materials/HUD/derma/knife.vmt" ) resource.AddFile( "materials/HUD/derma/knife.vtf" ) resource.AddFile( "materials/HUD/derma/noscope.vmt" ) resource.AddFile( "materials/HUD/derma/noscope.vtf" ) resource.AddFile( "materials/HUD/derma/race.vmt" ) resource.AddFile( "materials/HUD/derma/race.vtf" ) resource.AddFile( "materials/HUD/derma/shot4shot.vmt" ) resource.AddFile( "materials/HUD/derma/shot4shot.vtf" ) resource.AddFile( "materials/excljailbreak/bob1.vmt" ) resource.AddFile( "materials/excljailbreak/bob1.vtf" ) resource.AddFile( "materials/excljailbreak/bob2.vmt" ) resource.AddFile( "materials/excljailbreak/bob2.vtf" ) resource.AddFile( "materials/excljailbreak/bob3.vmt" ) resource.AddFile( "materials/excljailbreak/bob3.vtf" ) resource.AddFile( "materials/excljailbreak/clark1.vmt" ) resource.AddFile( "materials/excljailbreak/clark1.vtf" ) resource.AddFile( "materials/excljailbreak/clark2.vmt" ) resource.AddFile( "materials/excljailbreak/clark2.vtf" ) resource.AddFile( "materials/excljailbreak/clark3.vmt" ) resource.AddFile( "materials/excljailbreak/clark3.vtf" ) resource.AddFile( "materials/excljailbreak/full.vmt" ) resource.AddFile( "materials/excljailbreak/full.vtf" ) resource.AddFile( "materials/excljailbreak/placeholder.vmt" ) resource.AddFile( "materials/excljailbreak/placeholder.vtf" )[/CODE] server.cfg [CODE]// server name hos
I believe it changed to resource.AddSingleFile Eh, worked for me.
[QUOTE=incognitocob;41462557]I believe it changed to resource.AddSingleFile[/QUOTE] no it didn't, resource.AddFile and resource.AddSingleFile are two different functions and both work
Well I'm not sure whats wrong D:
Just use [URL="http://wiki.garrysmod.com/page/resource/AddWorkshop"]resource.AddWorkshop[/URL]
Even that only works if you restart your GMOD after joining a server I have tested it on my server before.
Well its better than nothing, I will give resource.AddWorkshop a shot. Even if they do need to restart Gmod its better than it never downloading. If that doesn't work its the lua for some reason not starting up.
[QUOTE=legendofrobbo;41463861]no it didn't, resource.AddFile and resource.AddSingleFile are two different functions and both work[/QUOTE] Eh, worked for me when downloads stopped working on all my servers.
Well I haven't tried the AddWorkshop yet but you have to upload all the content as a addon right? How am I going to do that?
Sorry, you need to Log In to post a reply to this thread.