ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.72k stars 625 forks source link

bz2 support #922

Closed R4to0 closed 11 years ago

R4to0 commented 11 years ago

I think it would be a good idea add bzip2 support in hl1, like source games. Mods like Sven Co-op have huge sized maps (~100mb+) which takes a time to download on slow connection speeds, even with downloadurl set...

alfred-valve commented 11 years ago

The download client supports gzip content type, so just setup your download host to gzip files in your served folder.

R4to0 commented 11 years ago

You mean, mime type at webhost? Game ask for "Accept-Encoding: compress, gzip" automatically? Content encoding?

alfred-valve commented 11 years ago

Right

R4to0 commented 11 years ago

Thank you alfred, worked like a charm! A 8mb map used only 1.8mb of my bandwidth with gzip/deflate enabled. I'll tweak my .htaccess and see which formats are good to "on-the-fly" compression.