• Client can't get server's models while connecting
    9 replies, posted
Hello. Not so far time ago I installed Gmod 13' server. New system of downloading is unfair a bit, but that does not matter. However, I have installed some addons, gamemodes and models. All the addons work now, but not models. Since I own a DarkRP server, I am adding some new jobs, you know. So, well, adding jobs required some models for these jobs, which I uploaded. Here goes the problem: when client without these models connects to server, he [B][I]does not download models and textures[/I][/B], sees errors. I've been searching how-to-solve, found some advices, but nothing helped. That's why I am asking here now. So, first time I put [B]/models/[/B] and [B]/materials/[/B] up to [B]/garrysmod/ root folder[/B] (contains /bin/, /addons/, etc.). Didn't worked — file was not downloaded. Next time I put them up to /custom/modpack/ folder, didn't worked. I was stuck. Then I found some advices (that I sould use forced download), i made script, but this also not helped. Using FastDL also didn't helped, /maps/ were downloaded, but not the addons (I mean models and materials). Than I tried to add workshop collection, but this did't helped — collection works just for people with already subsribed addons, not for all. I've been searching for solution, here are all that I tried to: [list] [*]Forcing download with lua scripts [*]Forcing download with ULX admin plugin [*]Putting files up to different folders [*][s]Dancing with tambourine[/s] [/list] And nothing helped. FastDL server logs show up just that files are not called at all, here was a request for /maps/, but not for /models/ or /materials/. It seems that these models are not precached or added to downloadtables. So, here I ask your help, cause this error was seen not just for me. I am sorry if I posted wrong forum. [highlight](User was banned for this post ("Wrong section" - postal))[/highlight]
Go to Garrysmod -> lua -> Autorun -> Server and make a file called resources.lua ( Name doesn't really matter ) Put [QUOTE]resource.AddFile( "WHERE MODELS ARE LOCATED" )[/QUOTE], 1 per line. [QUOTE]resource.AddWorkshop( "Workshopid" )[/QUOTE] can also be used now. This is the socalled Forcedownload.
[QUOTE=PvM_marcus;41389731]Go to Garrysmod -> lua -> Autorun -> Server and make a file called resources.lua ( Name doesn't really matter ) Put , 1 per line. can also be used now. This is the socalled Forcedownload.[/QUOTE] That's the way I used to. Maybe I made a file destination mistake, I'll try now agan, but would this be correct than? [code]resource.AddFile( "models" )[/code]
[QUOTE=Night Fury;41389754]That's the way I used to. Maybe I made a file destination mistake, I'll try now agan, but would this be correct than? [code]resource.AddFile( "models" )[/code][/QUOTE] This is for example an iron man model: [code] resource.AddFile( "models/player/slow/tk/ironman/slow_v3.mdl" )[/code]
[QUOTE=PvM_marcus;41389790]This is for example an iron man model: [code] resource.AddFile( "models/player/slow/tk/ironman/slow_v3.mdl" )[/code][/QUOTE] No, that didn't worked. Look at the [url="http://savepic.org/3990275.png"]screenshot[/url]. [code]resource.AddFile( "models/Mass Effect 2/player/geth_trooper.mdl" )[/code]
resource.AddFile( "models/Mass_Effect 2/player/geth_trooper.mdl" ) Would this work perhaps?
[QUOTE=PvM_marcus;41390170]resource.AddFile( "models/Mass_Effect 2/player/geth_trooper.mdl" ) Would this work perhaps?[/QUOTE] No, it does not. Folder contains spaces. I think I should remove them, huh? Anyway, nothing helpes.
I have to ask, Are you using FastDL or just downloading from the server?
I am using FastDL for all the files are custom.
Well, anyway, I fixed it: First of all: ULX's downloads.txt didn't work for some reason (now it works), also I configured vmts and model paths so that they look alike.
Sorry, you need to Log In to post a reply to this thread.