• Is bzip2 only for maps or can you use it for other things to?
    28 replies, posted
Cause im using fastdl but it says that you can use bzip2 to make it faster but i thought that was only for maps
You can use it for all files. But Fast DL only works with certain folders. (cache, maps, materials, models and sound) But never bzip2 the cache file or no one will be able to use the gamemode correctly.
Ok I just did the bzip2 thing to every vtf vtm file but how do i know if it wokrs?
First setup the sv_download url properly and delete one of the vtf files from your client files that's in your Fast DL files then join the server and if it downloads properly then you know. ;)
Wait RJ im kinda confussed, So i set up the Sv download part right cause everything already downloads but i dont understand why deleting one of the files will show if it works
If you download the file and check your files and it's all there in one piece then you'll know that you downloaded the file correctly.
[QUOTE=_RJ_;32689532]You can use it for all files. But Fast DL only works with certain folders. (cache, maps, materials, models and sound) But never bzip2 the cache file or no one will be able to use the gamemode correctly.[/QUOTE] I'm not sure if it causes issues but the game does try to download the .bz2 of the cache. Of course, .bz2ing the cache actually increases the file size.
[QUOTE=Fleamonji;32705833]I'm not sure if it causes issues but the game does try to download the .bz2 of the cache. Of course, .bz2ing the cache actually increases the file size.[/QUOTE] You're correct, the cache will work fine if it's zipped the game extracts it. But it kills the point of compressing the file if it makes it bigger.
it would be cool if we could just like, cache the entire models folder into one bzip2 jus sayin
[QUOTE=DylanWilson;32721668]it would be cool if we could just like, cache the entire models folder into one bzip2 jus sayin[/QUOTE] ya have fun uploading a new model cache every time you add a model
[QUOTE=Fleamonji;32722473]ya have fun uploading a new model cache every time you add a model[/QUOTE] You could use a symbolic link.
[QUOTE=pennerlord;32726763]You could use a symbolic link.[/QUOTE] except that I always have a personal rule to never host a gameserver and website on the same machine
[QUOTE=Fleamonji;32726914]except that I always have a personal rule to never host a gameserver and website on the same machine[/QUOTE] And how are you updating your cache? Are you uploading it manual every time you add/update a clientside/shared lua file? (assumed that you're using a fastdl)
I'd do it, it'd make downloads faster
[QUOTE=pennerlord;32727086]And how are you updating your cache? Are you uploading it manual every time you add/update a clientside/shared lua file? (assumed that you're using a fastdl)[/QUOTE] Yes.... [editline]11th October 2011[/editline] FTP is a pretty cool thing, check it out some time
[QUOTE=Fleamonji;32705833]I'm not sure if it causes issues but the game does try to download the .bz2 of the cache. Of course, .bz2ing the cache actually increases the file size.[/QUOTE] It depends on the server. I've seen some servers with a cache greater than 1MB.
[QUOTE=Teddi Orange;32732777]It depends on the server. I've seen some servers with a cache greater than 1MB.[/QUOTE] ya but I'm fairly sure the cache is already BZ2'd itself, so BZ2ing a BZ2 is just BZ2ception and increases sizes
[QUOTE=Fleamonji;32726914]except that I always have a personal rule to never host a gameserver and website on the same machine[/QUOTE] Then don't host a public website? Just host fastdl. Sure, you're still running a webserver. But the risk is minimal.
[QUOTE=Man Without Hat;32733169]Then don't host a public website? Just host fastdl. Sure, you're still running a webserver. But the risk is minimal.[/QUOTE] yes, but you're also sharing the network port with the gameservers and people downloading, not to mention that your website would go down if the gameservers did. and only hosting the fastdl on the box? jesus christ just upload the lua cache, it's not a big deal
[QUOTE=Fleamonji;32734804]yes, but you're also sharing the network port with the gameservers and people downloading, not to mention that your website would go down if the gameservers did. and only hosting the fastdl on the box? jesus christ just upload the lua cache, it's not a big deal[/QUOTE] And what's the big deal about running apache or nginx in the background with a blank index? I have the site separate from the gameservers, but the fastdl is local. It's the best solution.
[QUOTE=Man Without Hat;32734860]And what's the big deal about running apache or nginx in the background with a blank index? I have the site separate from the gameservers, but the fastdl is local. It's the best solution.[/QUOTE] again, you're sharing connection with the gameservers, and it's something that I never recommend and is pretty much useless
[QUOTE=Fleamonji;32734979]again, you're sharing connection with the gameservers, and it's something that I never recommend and is pretty much useless[/QUOTE] It saves me opening another connection in filezilla when I want to update a lua file. And saves having two map changes instead of one to update lua. And when you have a 1gbit/s connection (10mbit/s of which is used up by gameservers - at a busy time) it's no big deal.
[QUOTE=Man Without Hat;32735038]It saves me opening another connection in filezilla when I want to update a lua file. And saves having two map changes instead of one to update lua. And when you have a 1gbit/s connection (10mbit/s of which is used up by gameservers - at a busy time) it's no big deal.[/QUOTE] or sync the servers via dropbox and run the server on your own PC to generate the lua cache it's just dumb to host fastdl on the gameserver and then host the website elsewhere, it's redundant, host both on the gameserver like an idiot (aka if the box is nullrouted so is your website) or both on a dependent source
It's hardly redundant. With your system 1) the server breaks every time you change something, for at least one mapchange. 2) if your site gets ddos'd nobody will be able to join without missing files With mine: 1) Everything works 2) Gameserver box has enough bandwidth to handle fastdl and gameservers with plenty to spare 3) If gameserver box gets ddos'd, site is still online. 4) If website gets ddos'd, gameservers and fastdl are still online.
[QUOTE=Fleamonji;32733128]ya but I'm fairly sure the cache is already BZ2'd itself, so BZ2ing a BZ2 is just BZ2ception and increases sizes[/QUOTE] It isn't. The cache simply packs the individual files together which is designed to make less HTTP requests overall (the idea is similar to that of [url=http://www.youtube.com/watch?v=EQKT4uVAafI]CSS Sprites[/url]. So you're free to bzip them however you are right that unles they're greater than a few mb it's not worth doing.
[QUOTE=Teddi Orange;32742024]It isn't. The cache simply packs the individual files together which is designed to make less HTTP requests overall (the idea is similar to that of [url=http://www.youtube.com/watch?v=EQKT4uVAafI]CSS Sprites[/url]. So you're free to bzip them however you are right that unles they're greater than a few mb it's not worth doing.[/QUOTE] ya but [img]http://bananatree.im/i/140287092011071210.png[/img] [img]http://bananatree.im/i/350288092011071210.png[/img]
[quote=myself] So you're free to bzip them however you are right that unless they're greater than a few mb it's not worth doing. [/quote] Reread what I said :v:
[QUOTE=Teddi Orange;32742672]Reread what I said :v:[/QUOTE] my point is that it's not worth doing at all, since they only grow in size
[QUOTE=Fleamonji;32747158]my point is that it's not worth doing at all, since they only grow in size[/QUOTE] he said a few megabytes. yours was only 566kb, less than half of a megabyte if it were a few megabytes in size, it would counteract the overhead of the bzip2 format
Sorry, you need to Log In to post a reply to this thread.