I've looked through every forum I could find and I couldn't find a solution.
My server is using fastdl but for everyone that joins the playermodels are invisible.
I've tried a couple of things but they didn't seem to work.
They download in the loading screen, but I guess they aren't mounting or anything. I'm not sure.
I have a fair bit of items so I'd rather stick with fastdl rather then going through the steam workshop.
Resources.lua: [url]https://pastebin.com/0APHR0yD[/url]
Please help. :(
I don't think they are downloading in the loading screen, it may display the names - but it will skip them if not found.
What's your sv_downloadurl?
[Edit]
Also the workshop is much faster these days than fastdl, which is quite slow.
To get around frequent modifications, stick all your large stuff which is unlikely to change in a base addon and then make another for the new/frequently changing content.
[url]http://138.128.17.170/ChristianD/24682/garrysmod/[/url]
I've always heard it was slower.
I'll look into it again though.
When you type in sv_downloadurl into the server, does it have the value of "http://138.128.17.170/ChristianD/24682/garrysmod/"? That link looks fine, indexing enabled, everything .bz2, that's good.
It used to be when I last was developing - back then the workshop servers were slow & unreliable. Now on my 200mbps connection, there is a massive bottleneck for fastdl. It may be to do with a new transaction for each file, poorly configured webservers, bad file transfer implementation via http in garrysmod, using a single stream to download, etc.
When you type in sv_downloadurl into the server, does it have the value of "http://138.128.17.170/ChristianD/24682/garrysmod/"? That link looks fine, indexing enabled, everything .bz2, that's good.
It used to be when I last was developing - back then the workshop servers were slow & unreliable. Now on my 200mbps connection, there is a massive bottleneck for fastdl. It may be to do with a new transaction for each file, poorly configured webservers, bad file transfer implementation via http in garrysmod, using a single stream to download, etc.
[B]Here's how to create a new addon[/B]:
1) Add the garrysmod/bin directory to your environment path. Either for your user or all system users.
2) Create a directory with the icon (512x512 jpg called logo.jpg) in it and then make a subdirectory called addon, go into this addon directory and make a addon.json file. Put all your files in there under the correct garrysmod root files, just like fastdl.
3) Go back to the prior directory which contains logo.jpg as we're going to make some batch files.
4) Make a file called create.bat and edit. You only need to run this when creating a new addon, updating is different.
[CODE]gmad.exe create -folder "addon" -out "addon.gma"
gmpublish.exe create -addon "addon.gma" -icon "logo.jpg"
rm "addon.gma"
[/CODE]
5) Go to your files in workshop and make the addon public, note the id in the url as this is needed for your server's '[B]resource.AddWorkshop()[/B]' and for updating the addon.
6) Make a file called update.bat and edit.
[CODE]gmad.exe create -folder "addon" -out "addon.gma"
gmpublish.exe update -addon "addon.gma" -id "WORKSHOP_ID" :: Replace this WORKSHOP_ID with the value in the prior step
rm "addon.gma"[/CODE]
Now all you need to do is run update.bat to update this addon. You could make one for each individual addon.
If fastdl doesn't end up working soon I'll just switch to workshopdl.
It returns this "sv_downloadurl" = "http://138.128.17.170/ChristianD/24682/garrysmod" ( def. "" )
replicated
By the way thank you for helping me through this. It means a lot. :)
I've only got one more idea what it could be, and that's whether your server has access to these files. 'resource.AddSingleFile' only works if the server is able to find them.
If you do go the workshop route, it also compresses everything in one solid archive using the .rar format I believe. (Not that you can easily tell)
[QUOTE=Immortalized;52376669]
By the way thank you for helping me through this. It means a lot. :)[/QUOTE]
That's alright. I'm sure you're still recovering from your new President.
Sorry, you need to Log In to post a reply to this thread.