• Files are not downloading when joining
    17 replies, posted
Hello, i'm having a problemwith some props/effects for pac3, i added them into my server, i made this file : [lua]if ( SERVER ) then AddCSLuaFile("classycutedl.lua") resource.AddFile( "materials/models/captainbigbutt/skeyler/hats/cat_hat/cat_black.vmt." ) resource.AddFile( "materials/models/captainbigbutt/skeyler/hats/cat_hat/cat_black.vtf." ) resource.AddFile( "materials/models/captainbigbutt/skeyler/hats/cat_hat/cat_norm.vtf." ) resource.AddFile( "materials/models/captainbigbutt/skeyler/hats/cat_hat/cat_white.vmt." ) resource.AddFile( "materials/models/captainbigbutt/skeyler/hats/cat_hat/cat_white.vtf." ) resource.AddFile( "materials/models/captainbigbutt/skeyler/hats/maid_headband/maidfrills.vmt." ) resource.AddFile( "materials/models/captainbigbutt/skeyler/hats/maid_headband/maidfrills.vtf." ) resource.AddFile( "materials/models/captainbigbutt/skeyler/hats/maid_headband/maidfrills_norm.vtf." ) resource.AddFile( "materials/models/captainbigbutt/skeyler/hats/santa/santa.vmt." ) resource.AddFile( "materials/models/captainbigbutt/skeyler/hats/santa/santa.vtf." ) resource.AddFile( "materials/models/captainbigbutt/skeyler/hats/santa/santa_norm.vtf." ) resource.AddFile( "materials/models/gmod_tower/aviators.vmt." ) resource.AddFile( "materials/models/gmod_tower/aviators.vtf." ) resource.AddFile( "materials/models/gmod_tower/catears.vmt." ) resource.AddFile( "materials/models/gmod_tower/catears.vtf." ) resource.AddFile( "materials/models/gmod_tower/fairywings.vmt." ) resource.AddFile( "materials/models/gmod_tower/fairywings.vtf." ) resource.AddFile( "materials/models/gmod_tower/fedorahat.vmt." ) resource.AddFile( "materials/models/gmod_tower/fedorahat.vtf." ) resource.AddFile( "models/captainbigbutt/skeyler/hats/cat_ears.mdl." ) resource.AddFile( "models/captainbigbutt/skeyler/hats/cat_hat.mdl." ) resource.AddFile( "models/captainbigbutt/skeyler/hats/maid_headband.mdl." ) resource.AddFile( "models/captainbigbutt/skeyler/hats/santa.mdl." ) resource.AddFile( "models/gmod_tower/catears.mdl." ) resource.AddFile( "models/gmod_tower/fairywings.mdl." ) resource.AddFile( "models/gmod_tower/fedorahat.mdl." ) end[/lua] I asked when people joined if they see my new pac3 outfit, and they said they don't. What kind of fix i need ?
Do you have sv_allowdownload set to 0?
Yes, and my server host recommend to not change it. Also, files are .bz2 Ideal ? [code]// DO NOT SET A RCON PASSWORD IN HERE, A GMOD EXPLOIT CAN EXPOSE IT. USE THE COMMANDLINE. log off hostname "[FR] Fun-Build by Nekomi (Wire/PropProtect/Pac3/Ulx)" sv_password "" sv_region 255 sv_lan 0 sv_allowcslua 0 sv_log_onefile 0 sv_noclipspeed 5 sv_noclipaccelerate 5 //fastdl settings do not touch unless you know what you are doing sv_downloadurl "hidden for facepunch" sv_allowdownload 0 sv_allowupload 0 sbox_allownpcs 0 sbox_godmode 0 sbox_plpldamage 0 sbox_playergod 0 sbox_noclip 1 sbox_weapons 1 // Server limits view the forum for wire limits sbox_maxprops 140 sbox_maxragdolls 3 sbox_maxnpcs 0 sbox_maxballoons 5 sbox_maxeffects 0 sbox_maxdynamite 0 sbox_maxlamps 20 sbox_maxthrusters 20 sbox_maxwheels 20 sbox_maxhoverballs 10 sbox_maxvehicles 15 sbox_maxbuttons 10 sbox_maxsents 10 sbox_maxemitters 2 sbox_maxspawners 1 sbox_maxturrets 2 sv_alltalk 3 // Dont touch these unless you know what you are doing net_maxfilesize 64 sv_minrate 100000 sv_maxrate 0 // execute ban files exec banned_ip.cfg exec banned_user.cfg [/code]
instead of making a "if server then.." check, make the file in lua/autorun/server and just already put that in
Does it give you any html error when joining? It should. Also, you may put your full server.cfg (i say it beacouse you hid the downloadurl). We can only check if you have it right or wrong with it. We cant hak you with that, so please put it. If you want us to help.
[QUOTE=Nekomi;48859209]server.cfg[/QUOTE] [code]sv_downloadurl "hidden for facepunch"[/code] You do realise the client can see the downloadurl cause it uses it to download stuff? :v:
[QUOTE=Kevlon;48862070][code]sv_downloadurl "hidden for facepunch"[/code] You do realise the client can see the downloadurl cause it uses it to download stuff? :v:[/QUOTE] Yeah, if someone wanted your downloadurl (other than checking gametracker) they could join your server and type "sv_downloadurl" into console and it would output the url.
I did what whitestar has mentionned, it works. Now i have another lua problem, this concern my public playermodels not showing up into the playermodels menu. They are downloaded but they do not show up. :/ Here's the file of one of them into lua/autorun : [Code]if (SERVER) then player_manager.AddValidModel( "WhiteRabbit", "models/player/whiterabbit.mdl" ) AddCSLuaFile( "Whiterabbit_pm.lua" ) end list.Set( "PlayerOptionsModel", "WhiteRabbit", "models/player/whiterabbit.mdl" ) [/code] [QUOTE=YourStalker;48862380]Yeah, if someone wanted your downloadurl (other than checking gametracker) they could join your server and type "sv_downloadurl" into console and it would output the url.[/QUOTE] [url]http://fastdl.eu.phy.sx/stevenv/3152/garrysmod/[/url]
Did you put AddCSLuaFile() at the top of that file? Also couldn't you just set the variable when someone joins? [lua] hook.Add( "PlayerInitialSpawn", "some_unique_name", function(ply) ply:ConCommand("sv_downloadurl www.google.dk") end) [/lua]
I said the cfg thing beacouse if the link is like: [url]http://example.com/fastdl[/url] you have to put at the end of it another / and it would finish as [url]http://example.com/fastdl/[/url]
[QUOTE=geferon;48863826]I said the cfg thing beacouse if the link is like: [url]http://example.com/fastdl[/url] you have to put at the end of it another / and it would finish as [url]http://example.com/fastdl/[/url][/QUOTE] funny that I have no / at the end, and mine works fine, the old FastDL tutorial is outdated, you dont even have to put /garrysmod/ in the url anymore.
[QUOTE=whitestar;48863864]funny that I have no / at the end, and mine works fine, the old FastDL tutorial is outdated, you dont even have to put /garrysmod/ in the url anymore.[/QUOTE] Mine didnt work till i did that. I guess they fixed it now.
[QUOTE=Nak;48863588]Did you put AddCSLuaFile() at the top of that file?[/QUOTE] You mean just before "if (SERVER) then" ?
[QUOTE=Nekomi;48866749]You mean just before "if (SERVER) then" ?[/QUOTE] Yes, else its not sent to the client.
Ok, i did and playermodels are still not visible into the playermodels menu. :( And about : [QUOTE=Nak;48863588][lua] hook.Add( "PlayerInitialSpawn", "some_unique_name", function(ply) ply:ConCommand("sv_downloadurl www.google.dk") end) [/lua][/QUOTE] Shall i add it ? If so. Where ?
[QUOTE=Nekomi;48866950]Ok, i did and playermodels are still not visible into the playermodels menu. :( And about : Shall i add it ? If so. Where ?[/QUOTE] its useless to do so.. the player cant run serverside comments, just put sv_downloadurl "yourfastdlurlhere" in the server.cfg/autorun.cfg. Are you sure the model path is right in the menu?
materials/models/player : [img]http://puu.sh/kEjF7.png[/img] models/player : [img]http://puu.sh/kEjAM.png[/img] redrabbitX.vtf is associated with 1 name each, like redrabbit, to redrabbit.mdl etc redrabbit2.vtf to bluerabbit.mdl etc..
Fixed. :3
Sorry, you need to Log In to post a reply to this thread.