Hello all!
im having trouble getting player models to download via FastDL! It is very frustrating and i cant seem to figure it out.
Here is my server config settings relevant to fast DL
sv_allowupload 1
sv_downloadurl "http://agamingcommunity.com/garrysmod/"
//cl_downloadfilter all
sv_allowdownload 1
Now on to the juicy part. The player models i want downloaded came in like 10 different zip files, the file size is huge and would normally take a bit of time downloading separately. what i did was created a folder "modelpak" and extracted everything into this one folder. I then created my own autorun lua and used fox warrior to create the add file lines. I will add the modelpak.lua below for review.
I get no errors once i upload my model pak but i also dont get ANY thing to download. It sucks, id hate to tell all my players to "DL" the model pack them selves.
the only thing im not sure of is where to put the model pak folder or if i need to split up the lua folder, model folder, and materials folder.
note: all auto run lua that came separately have been removed from the auto run folder, replaced by the modelpak.lua below.
note 2: when i manually add my compiled addon to my personal gmod addons folder, all playermodels work and apply correctly.
note 3: these models are meant for point shop, though pointshop should have nothing to do with why they are not dling.
[CODE]if (SERVER) then
player_manager.AddValidModel( "blockdude", "models/player/blockdude.mdl" )
player_manager.AddValidModel( "Spartan - Blue", "models/player/Halo3/Spartan_blue.mdl" )
player_manager.AddValidModel( "Spartan - Gold", "models/player/Halo3/Spartan_gold.mdl" )
player_manager.AddValidModel( "Spartan - Green", "models/player/Halo3/Spartan_green.mdl" )
player_manager.AddValidModel( "Spartan - Pink", "models/player/Halo3/Spartan_pink.mdl" )
player_manager.AddValidModel( "Spartan - Red", "models/player/Halo3/Spartan_Red.mdl" )
player_manager.AddValidModel( "Spartan - White", "models/player/Halo3/Spartan_white.mdl" )
player_manager.AddValidModel( "Army Power Armor", "models/player/fallout_3/army1_armor.mdl" )
player_manager.AddValidModel( "Black Power Armor", "models/player/fallout_3/black_armor.mdl" )
player_manager.AddValidModel( "Feral Ghoul", "models/player/fallout_3/ghoul.mdl" )
player_manager.AddValidModel( "Glowing One", "models/player/fallout_3/glowing_one.mdl" )
player_manager.AddValidModel( "HEV Power Armor", "models/player/fallout_3/hlflf_armor.mdl" )
player_manager.AddValidModel( "Power Armor", "models/player/fallout_3/power_armor.mdl" )
player_manager.AddValidModel( "Admin Power Armor", "models/player/fallout_3/power_armor_admin.mdl" )
player_manager.AddValidModel( "Blue Power Armor", "models/player/fallout_3/power_armor_blue.mdl" )
player_manager.AddValidModel( "Outcast Power Armor", "models/player/fallout_3/power_armor_outcast.mdl" )
player_manager.AddValidModel( "Pink Power Armor", "models/player/fallout_3/power_armor_pink.mdl" )
player_manager.AddValidModel( "Tribal Power Armor", "models/player/fallout_3/power_armor_tribal.mdl" )
player_manager.AddValidModel( "Woodland Power Armor", "models/player/fallout_3/power_armor_woodland.mdl" )
player_manager.AddValidModel( "T-51b Power Armor", "models/player/fallout_3/t51b.mdl" )
player_manager.AddValidModel( "Tesla Power Armor", "models/player/fallout_3/tesla_power_armor.mdl" )
player_manager.AddValidModel( "Harley Quinn Gmod", "Models/player/slow/arkham_asylum/harley_quinn/slow_gmod.mdl" )
player_manager.AddValidModel( "Harley Quinn CSS", "Models/player/slow/arkham_asylum/harley_quinn/slow.mdl" )
player_manager.AddValidModel("Tali'Zorah", "models/slash/tali/Talizorah.mdl")
player_manager.AddValidModel("Garrus", "models/slash/garrus/Garrus.mdl")
player_manager.AddValidModel("Legion", "models/slash/legion/Legion.mdl")
player_manager.AddValidModel("LOKI Mech", "models/slash/LOKI/loki.mdl")
player_manager.AddValidModel( "MOEGLaDOS", "models/player/moe_glados_p.mdl" )
player_manager.AddValidModel( "Osama Bin Laden", "models/code_gs/player/misc/osamabl1.mdl" )
AddCSLuaFile( 'modelpak.lua' )
list.Set( "PlayerOptionsModel", "Spartan - Blue", "models/player/Halo3/Spartan_blue.mdl" )
list.Set( "PlayerOptionsModel", "Spartan - Gold", "models/player/Halo3/Spartan_gold.mdl" )
list.Set( "PlayerOptionsModel", "Spartan - Green", "models/player/Halo3/Spartan_green.mdl" )
list.Set( "PlayerOptionsModel", "Spartan - Pink", "models/player/Halo3/Spartan_pink.mdl" )
list.Set( "PlayerOptionsModel", "Spartan - Red", "models/player/Halo3/Spartan_Red.mdl" )
list.Set( "PlayerOptionsModel", "Spartan - White", "models/player/Halo3/Spartan_white.mdl" )
list.Set( "PlayerOptionsModel", "Army Power Armor", "models/player/fallout_3/army1_armor.mdl" )
list.Set( "PlayerOptionsModel", "Black Power Armor", "models/player/fallout_3/black_armor.mdl" )
list.Set( "PlayerOptionsModel", "Feral Ghoul", "models/player/fallout_3/ghoul.mdl" )
list.Set( "PlayerOptionsModel", "Glowing One", "models/player/fallout_3/glowing_one.mdl" )
list.Set( "PlayerOptionsModel", "HEV Power Armor", "models/player/fallout_3/hlflf_armor.mdl" )
list.Set( "PlayerOptionsModel", "Power Armor", "models/player/fallout_3/power_armor.mdl" )
list.Set( "PlayerOptionsModel", "Admin Power Armor", "models/player/fallout_3/power_armor_admin.mdl" )
list.Set( "PlayerOptionsModel", "Blue Power Armor", "models/player/fallout_3/power_armor_blue.mdl" )
list.Set( "PlayerOptionsModel", "Outcast Power Armor", "models/player/fallout_3/power_armor_outcast.mdl" )
list.Set( "PlayerOptionsModel", "Pink Power Armor", "models/player/fallout_3/power_armor_pink.mdl" )
list.Set( "PlayerOptionsModel", "Tribal Power Armor", "models/player/fallout_3/power_armor_tribal.mdl" )
list.Set( "PlayerOptionsModel", "Woodland Power Armor", "models/player/fallout_3/power_armor_woodland.mdl" )
list.Set( "PlayerOptionsModel", "T-51b Power Armor", "models/player/fallout_3/t51b.mdl" )
list.Set( "PlayerOptionsModel", "Tesla Power Armor", "models/player/fallout_3/tesla_power_armor.mdl" )
list.Set( "PlayerOptionsModel", "Harley Quinn Gmod", "Models/player/slow/arkham_asylum/harley_quinn/slow_gmod.mdl" )
list.Set( "PlayerOptionsModel", "Harley Quinn CSS", "Models/player/slow/arkham_asylum/harley_quinn/slow.mdl" )
list.Set("PlayerOptionsModel", "Tali'Zorah", "models/slash/tali/Talizorah.mdl")
list.Set("PlayerOptionsModel", "Garrus", "models/slash/garrus/Garrus.mdl")
list.Set("PlayerOptionsModel", "Legion", "models/slash/legion/Legion.mdl")
list.Set("PlayerOptionsModel", "LOKI Mech", "models/slash/LOKI/loki.mdl")
list.Set( "PlayerOptionsModel", "MOEGLaDOS", "models/player/moe_glados_p.mdl" )
list.set("PlayerOptionsModel", "Osama Bin Laden", "models/code_gs/player/misc/osamal1.mdl" )
end
--// File Generated By Fox-Warrior's Resources Generator Version 2.05 \\--
if (SERVER) then
resource.AddFile( "Models/moe_glados.mdl" )
resource.AddFile( "Models/slash/tali/talizorah.mdl" )
resource.AddFile( "Models/slash/LOKI/loki.mdl" )
resource.AddFile( "Models/slash/legion/legion.mdl" )
resource.AddFile( "Models/slash/garrus/garrus.mdl" )
resource.AddFile( "Models/player/blockdude.mdl" )
resource.AddFile( "Models/player/haruhip.mdl" )
resource.AddFile( "Models/player/ironmanp.mdl" )
resource.AddFile( "Models/player/konatap.mdl" )
resource.AddFile( "Models/player/moe_glados_p.mdl" )
resource.AddFile( "Models/player/nalurihdp.mdl" )
resource.AddFile( "Models/player/naluriv3p.mdl" )
resource.AddFile( "Models/player/spechalphap.mdl" )
resource.AddFile( "Models/player/zerop.mdl" )
resource.AddFile( "Models/player/slow/arkham_asylum/harley_quinn/slow.mdl" )
resource.AddFile( "Models/player/slow/arkham_asylum/harley_quinn/slow_gmod.mdl" )
resource.AddFile( "Models/player/halo3/spartan_blue.mdl" )
resource.AddFile( "Models/player/halo3/spartan_gold.mdl" )
resource.AddFile( "Models/player/halo3/spartan_green.mdl" )
resource.AddFile( "Models/player/halo3/spartan_pink.mdl" )
so you are saying i can get rid of everything above the add file lua?
What i am trying achieve is for clients to successfully download these models from the fastDL. As it stands right now, nothing happens. If i add that auto run in a folder with all the models accosciated in it as an addon. It works perfectly fine, as in all the models in the server are "big error sign free" but i dont want people to have to manually install these models.
Also, does it not matter what the auto run file is named? Do i have to use fastdl.lua?
edit: OMFG i see my mistake! ...i think. I will test a fix and reply again if i need any more help.
what i need to fix: on EVERY single resource line, the file destination starts with Models/ .... those god damn capitals man..... editing to models/
Edit 2: fixing the cap M's only fixed about half the models. They show up in point shop and equip but the arms are stuck and they like glitch out when they are equipped. Everything pretty much downloads save for a few models yet they dont work. Could this be because i do not have resource.addfiles for the .phy, dx90 and dx80 file exstentions? Ill test this now. Will take some time manually adding 100+ lines.
edit: also, to the one who has replied. This is all being done on a TTT server.
[QUOTE=djmikey;42094806]so you are saying i can get rid of everything above the add file lua?
What i am trying achieve is for clients to successfully download these models from the fastDL. As it stands right now, nothing happens. If i add that auto run in a folder with all the models accosciated in it as an addon. It works perfectly fine, as in all the models in the server are "big error sign free" but i dont want people to have to manually install these models.
Also, does it not matter what the auto run file is named? Do i have to use fastdl.lua?
edit: OMFG i see my mistake! ...i think. I will test a fix and reply again if i need any more help.
what i need to fix: on EVERY single resource line, the file destination starts with Models/ .... those god damn capitals man..... editing to models/
Edit 2: fixing the cap M's only fixed about half the models. They show up in point shop and equip but the arms are stuck and they like glitch out when they are equipped. Everything pretty much downloads save for a few models yet they dont work. Could this be because i do not have resource.addfiles for the .phy, dx90 and dx80 file exstentions? Ill test this now. Will take some time manually adding 100+ lines.[/QUOTE]
You only need to add the .mdl
[QUOTE=StonedPenguin;42095797]You only need to add the .mdl[/QUOTE]
even if it for a TTT server? Im understanding that i need pretty much everything in the auto run for a TTT server. Also, the few playermodels i did get showing, either glitch out or are T armed. (implying there is no animation, just a player who stands with there arms held up to the side)
edit: im still working on organizing and adding to the code i originally posted. I will test it once im done.
Im fairly new to all of this (didnt even know what lua was 2 weeks ago) so i wont in any way shape or form be offended by dumbed down explanations on how to fix my issues :D
Thank you all in advance.
Edit 2: Id like to note that i am on a linux server and part of my issue my be that alot of these file names have capitals in them.
Just saying, if a model is a t shape, it was coded wrong, or it's a rag doll model
[QUOTE=74pantera;42096748]Just saying, if a model is a t shape, it was coded wrong, or it's a rag doll model[/QUOTE]
i dont know how true that statement is, as i have managed to get some of the player models that had this issue fixed. Still working on the rest of the models.
Again, im on a linux server, half the models i complied has files that were not case sensitive.
Well, tried just about everything under the blue moon. The downloads start but only like half actually make it to the client. This results in just about ever playermodel being purple/black checkard.
Im at a dead end and really need the help at this point.
Console errors read as follows HTTP ERROR downloading http:// MYURL. com/garrysmod/modlels/filepathcontinued
Dj thats because im sure, you are trying to make the files download from addons, Put every individual file in each directory on the root ( Ej. Materials/models/mj... Put it inside there.) Then in the fast dl, it will have it.
[QUOTE=Jellomoto;42106226]Dj thats because im sure, you are trying to make the files download from addons, Put every individual file in each directory on the root ( Ej. Materials/models/mj... Put it inside there.) Then in the fast dl, it will have it.[/QUOTE]
I have managed to fix my problem. This problem turned out be alot more complex then i originally thought.
To start, the code i posted in the OP is completely wrong and broken. This is due to cap letters and missing file extensions. Also, i do not have an addons folder on my webserver. after painstaking review and trial and error I took my models and materials folder and bzipped them. Being that i needed to completely redo my autorun lua anyways.
Long story short, i managed to get the fast dl working, the fixes were microscopic in relation to how large the models are. If you would like me to go indepth about how i fixed my fastDL issue, please let me know.
thank you all for your input and help, its always heart warming knowing there are people willing to help another out!
Came back to inform anyone who was involved here that the fastDL fix i had... for some reason stopped working. It had worked for a couple days. I have become frustrated. I have set up a test server to work things out with a second fast DL though i had a few questions before i started.
first, if everything on my webserver is bzipped, do i need to add that file extension to the auto run lua i create? example resource.AddFile( "models/fallout_3/blackarmor.vmt" ) to resource.AddFile( "models/fallout_3/blackarmor.vmt.bz2" )
Second, what folders must i have in the fast DL, as in are there any folders i can just remove from the webserver.
Third, the only thing actually dling is maps and my pointshop hats. These hats are in the materials and models folder on both the webserver and server. They are also in the addons folder. The only auto run lua for these hats is located in the addons folder. So im not sure how its managing to get to the client.
fourth, just to help reinforce what i belive to be correct. I need to pretty much mimic the server and webservers models and materials folder in regards to its contents, correct?
does the autorun lua need to be named anything specifically?
Can anyone post an up to date AddDir script?
Thank you in advanced for any time you spend helping me out.
Ummmmmmm
you have sv_allowdownload to 1....
It's meant to be 0
[QUOTE=AnonTakesOver;42151885]Ummmmmmm
you have sv_allowdownload to 1....
It's meant to be 0[/QUOTE]
why though? Setting it to 1 enables clients to download. Maybe i misunderstand the fuction of that config?
At any rate, i managed to fix the issue again lmao. Answered alot of the issues. My server is letting people download with sv_allowdownload 1.
Sorry, you need to Log In to post a reply to this thread.