Hello, I want to make a content pack players can download and place in addons in case they have problems with our FastDL. Can I simply make a zip of the fastdl directory (models, materials, etc)? They are all .bz2 compressed. Or do they have to be uncompressed?
is this a workshop pack or something you plan to host externally
They must not be bz2 compressed. The fastdl mechanism only automatically uncompresses on download.
If you want to uncompress all files inside the folders, first copy the folder, then cd to it an run:
[code]find . -type f -exec bzip2 -d {} \;[/code]
[QUOTE=NiandraLades;48844288]is this a workshop pack or something you plan to host externally[/QUOTE]
Externally, but does it make a difference? I might have it on the workshop too.
You will need to make the content into addon form before compressing it. Simply copying your FastDL wont work because the folder structure is not the same as the addon structure. Based on the intelligence of most gmod players they will screw something up if you don't make it simple for them to just place the stuff in the addons folder.
Unless you are talking about a workshop download in that case you can just pack all of the workshop files into a zip and there shouldn't be any problems.
[QUOTE=boxvader;48849732]You will need to make the content into addon form before compressing it. Simply copying your FastDL wont work because the folder structure is not the same as the addon structure. Based on the intelligence of most gmod players they will screw something up if you don't make it simple for them to just place the stuff in the addons folder.
Unless you are talking about a workshop download in that case you can just pack all of the workshop files into a zip and there shouldn't be any problems.[/QUOTE]
ServerContent/(materials, models, etc) is proper addon form is it not? I was just asking if I have to uncompress the .bz2s first.
[url]https://svenskunganka.com/tutorials/other/setup-a-fastdl-for-garrys-mod.html[/url]
[QUOTE]The addons folder is emulated
As the title says, the addons folder is emulated on your server. Everything inside of it is "mounted" on your server, as if their files were in the root of your server. And as so, your server doesn't tell your players this when they join. If you would have a file inside addons/someaddon/models/model.mdl, the server would tell the player to download models/model.mdl, and that's why you have to upload the model directly to the models directory and NOT into addons/someaddon/models on your FastDL. You can keep the model inside the addons directory on the server though.[/QUOTE]
[QUOTE=boxvader;48849778][url]https://svenskunganka.com/tutorials/other/setup-a-fastdl-for-garrys-mod.html[/url][/QUOTE]
What? This has nothing to do with what I asked. My FastDL is fine.
[QUOTE=boxvader;48849732]You will need to make the content into addon form before compressing it. Simply copying your FastDL wont work because the folder structure is not the same as the addon structure. Based on the intelligence of most gmod players they will screw something up if you don't make it simple for them to just place the stuff in the addons folder.
Unless you are talking about a workshop download in that case you can just pack all of the workshop files into a zip and there shouldn't be any problems.[/QUOTE]
FastDL structure must mirror standard folder structure or else it won't work.
[QUOTE=dbk21894;48851865]FastDL structure must mirror standard folder structure or else it won't work.[/QUOTE]
:suicide:
Like I said, my FastDL is working fine. That has nothing to do with my question, which has been solved with Sapd's post.
Okay as nobody is able to answer that:
Make a new folder, you will send this folder to your players.
Put a addon.txt in this folder
[code]
"AddonInfo"
{
"name" "Addon name"
"author_name" "Sweepyoface"
"info" ""
}
[/code]
Put your content in this folder
You can now compress it directly in GMA if you want, and send it to your players, they can put it in addons folder.
But you can also compress it into zip, send it, and tell the players that they should extract it into addons.
(it doesn't matter if you put it as a folder into addons or as a gma)
Sorry, you need to Log In to post a reply to this thread.