AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl) (https://forums.alliedmods.net/showthread.php?t=102068)

devicenull 09-20-2009 23:21

Re: Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)
 
Remove all the ending ?> tags, and I'm betting it will work.

berni 09-22-2009 12:55

Re: Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)
 
Quote:

Originally Posted by devicenull (Post 939243)
Remove all the ending ?> tags, and I'm betting it will work.

?

devicenull 09-23-2009 17:47

Re: Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)
 
Quote:

Originally Posted by berni (Post 940696)
?

In your PHP files. Remove the ending ?> php tag (which is optional). There are reasons behind this, but it's easier if you just do it :p

bl4nk 09-24-2009 00:48

Re: Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)
 
Isn't it because at the end of the tag whitespace is inserted and that causes problems with headers and such?

PoLoIvAn 03-17-2010 15:59

Re: Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)
 
I can't get this working..

Everytime I get a "Wrong Request". Could you please help me?

Thank you in advance.

DontWannaName 03-18-2010 00:24

Re: Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)
 
Why would you want to upload the full map to your website if you could just upload the bzip which is usually half the size :/ Some people have really bad upload speeds, even cable limits you to 300 or so kb/s.

berni 03-26-2010 08:16

Re: Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)
 
Quote:

Originally Posted by DontWannaName (Post 1121137)
Why would you want to upload the full map to your website if you could just upload the bzip which is usually half the size :/ Some people have really bad upload speeds, even cable limits you to 300 or so kb/s.

On my server I'm pointing my webserver to the gameserver files for specific directories, that means I don't have to upload any files twice.

I'm not supporting this bzip2 tool I made anymore, because I believe it's not working how it should. When compressing parts of a file on the fly, the HL2 client somehow doesn't like it.

NouveauJoueur 09-08-2010 19:53

Re: Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)
 
You don't need to upload it twice, just make a copy of it, bzip2, and make your webserver point at .bz2 files only, skipping .bsp files.

The best if I understood your case would be to create a folder compressedmaps/ where you'll copy and compress all maps you upload to your gameserver and then make your webserver point to this folder.

so http://www.mywebserversformaps.com/cstrike/maps/

would point to yourgameserver/compressedmaps/

You could even make a script that checks every 5 - 10 seconds if a new .bsp file has been uploaded/created in the maps directory to auto-copy it and then auto-bzip2 it in the compressedmaps folder, and set the good chmod wich would make it downloadable from http://www.mywebserversformaps.com/cstrike/maps/ in a few sec with only 1 upload.


All times are GMT -4. The time now is 18:20.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.