Files compressed to bz2/zip/bzip/rar not being extracted after downloaded in GMod
8 replies, posted
Alrighty, so recently I had set up a TTT server for me and my friends to play on together. Along with that, I set up a fastDL server for them to get the maps off of that I had put on the server. The raw bsp files work perfectly fine, download and are installed by GMod for it to use. However, when they are compressed to save upload/download time with the bz2 format, they constantly fail. They download completely, I know since I can watch from the server management console, but from what my friends tell me, and what I have experienced while testing it myself, the files are not extracted from the archive once they are downloaded. Due to this, people are kicked for not having the map installed. I checked my download permissions for servers in GMod, and I have all custom files allowed. I have been searching for an answer to this and all I found was a link leading to a thread on here which had been deleted. I know this is possible, because public servers I've played on, the majority of them have their maps and all other resources compressed to bz2. I have tried restarting my server to see if it was being temperamental, tried other compression types ((zip, bzip, rar)), made sure the server was reachable from an external connection as well as that my server.cfg had the correct link in the sv_downloadurl line as well as the sv_allowupload and the sv_allowdownload settings were both set to 0. Any help would be appreciated. Thank you in advance.
Can we se the code wich with you resource.AddFile'd the files?
[QUOTE=geferon;49355924]Can we se the code wich with you resource.AddFile'd the files?[/QUOTE]
I read many times that maps didn't need to be in resources.lua. And since maps are the only thing being downloaded, I didn't create one. Unless that changed, and now they do. Then we pretty much just solved the problem there.
Who is hosting your FastDL server?
With some companies, they don't like the unusual traffic, and, in my experience, the web host will redirect my client to a 404 web page and download the webpage instead of the file.
So basically I have all of these .wav sounds that are named correctly, but are actually html files.
Try using a different FastDL host.
[QUOTE=Z0mb1n3;49363781]Who is hosting your FastDL server?
With some companies, they don't like the unusual traffic, and, in my experience, the web host will redirect my client to a 404 web page and download the webpage instead of the file.
So basically I have all of these .wav sounds that are named correctly, but are actually html files.
Try using a different FastDL host.[/QUOTE]
I host my own. I can see the files being requested and downloading, but they aren't unpacked afterwards. If I have the normal bsp files in there for maps, they download and work just fine, but the compression helps with download speeds for the clients because it's less for me to upload, and bz2 compresses pretty damn well.
[QUOTE=xuebao61;49363854]I host my own. I can see the files being requested and downloading, but they aren't unpacked afterwards. If I have the normal bsp files in there for maps, they download and work just fine, but the compression helps with download speeds for the clients because it's less for me to upload, and bz2 compresses pretty damn well.[/QUOTE]
Hm... I haven't had that problem before, so unfortunately I'm not sure how to proceed.
[QUOTE=Z0mb1n3;49363866]Hm... I haven't had that problem before, so unfortunately I'm not sure how to proceed.[/QUOTE]
It's alright. Seems to be an uncommon problem, from what I've seen. Only a few posts about it, two link to a thread that no longer exists, unfortunately. The other ones pretty much just stop having people reply to them. Thank you, though.
[editline]21st December 2015[/editline]
[QUOTE=Z0mb1n3;49363866]Hm... I haven't had that problem before, so unfortunately I'm not sure how to proceed.[/QUOTE]
If you followed a guide, can I see it? I want to see if the one I followed missed something.
Try navigating to a bzipped file directly, downloading it, and extracting it from winrar. If that works, there is either an issue with the way your directories are setup, your download url configuration, or your http service is denying the download.
If you can download the file and extract it directly, send it to someone else and ask them to do the same. I think it would be unusual to have differing results, but definitely possible. I think the issue is going to be that the maps are downloading but aren't actually the maps you intended to upload (ex. the downloaded bz2 is 0/1 bytes in size). This is usually caused by a compression or upload error.
And maps don't need to be resourced. The client automatically attempts to DL the map if it doesn't have it.
[QUOTE=zzaacckk;49364193]Try navigating to a bzipped file directly, downloading it, and extracting it from winrar. If that works, there is either an issue with the way your directories are setup, your download url configuration, or your http service is denying the download.
If you can download the file and extract it directly, send it to someone else and ask them to do the same. I think it would be unusual to have differing results, but definitely possible. I think the issue is going to be that the maps are downloading but aren't actually the maps you intended to upload (ex. the downloaded bz2 is 0/1 bytes in size). This is usually caused by a compression or upload error.
And maps don't need to be resourced. The client automatically attempts to DL the map if it doesn't have it.[/QUOTE]
Alright, I was able to download it directly and extract it from the bz2 archive. I went to recreate the bz2 archive, and, because I'm dumb, I forgot the delete the bz2 file I downloaded. However, I think that revealed the issue. It claimed the archive was corrupt. How it got corrupted, I don't know. Maybe I've been archiving it wrong. All I do is right click the bsp file, click "Add to archive" and then replace the .zip extension to .bsp.bz2. Is this what is doing it? If so, how do I properly compress using the bz2 format?
Edit: Nevermind! I downloaded 7Zip, created a bzip2 archive with both that and winRAR, the ones created with winRAR are not able to be opened as bz2 files. The ones created with 7Zip are, however. I will test after the GMod server is done downloading again, because, again, I'm dumb, over reacted and deleted the server and thought a clean install would fix it.
Edit ((again)): Yes! That did it. They now download and unarchive correctly! Thank you all who helped or tried to help.
Sorry, you need to Log In to post a reply to this thread.