Raised This Month: $51 Target: $400
 12% 

Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)


Post New Thread Reply   
 
Thread Tools Display Modes
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 09-20-2009 , 23:21   Re: Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)
Reply With Quote #11

Remove all the ending ?> tags, and I'm betting it will work.
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 09-22-2009 , 12:55   Re: Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)
Reply With Quote #12

Quote:
Originally Posted by devicenull View Post
Remove all the ending ?> tags, and I'm betting it will work.
?
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 09-23-2009 , 17:47   Re: Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)
Reply With Quote #13

Quote:
Originally Posted by berni View Post
?
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
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 09-24-2009 , 00:48   Re: Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)
Reply With Quote #14

Isn't it because at the end of the tag whitespace is inserted and that causes problems with headers and such?
bl4nk is offline
PoLoIvAn
SourceMod Donor
Join Date: Apr 2009
Location: @Desk
Old 03-17-2010 , 15:59   Re: Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)
Reply With Quote #15

I can't get this working..

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

Thank you in advance.
PoLoIvAn is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 03-18-2010 , 00:24   Re: Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)
Reply With Quote #16

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.
__________________

DontWannaName is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 03-26-2010 , 08:16   Re: Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)
Reply With Quote #17

Quote:
Originally Posted by DontWannaName View Post
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.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
NouveauJoueur
SourceMod Donor
Join Date: May 2009
Old 09-08-2010 , 19:53   Re: Bzip2 Compression on the fly ! (fastdownload/sv_downloadurl)
Reply With Quote #18

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.
__________________
NouveauJoueur is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:58.


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