Batch file / create bz2's in mass quantities
1 Attachment(s)
So, I was compressing tons of custom models, sounds, vmt's and vtf's (custom source materials, etc) this morning, and I mean TONS, doing each manually, getting them ready for my fastdl server. My buddy Squirrel pops into group chat, knows what I'm doing, and throws this batch file at me.
Works like a flipping charm. I thought I'd post it somewhere on these forums, as I feel this is something pretty damn useful for source server owners who compress/upload custom content in large quantities. I'll attach the file below, but this file assumes 2 things... 7zip is installed in C:\Program Files\7-Zip\7z.exe and that you want your files compressed to the .bz2 format. HOW IT WORKS First, you must have 7zip installed. Place the .bat file into a directory containing all the files you wish to compress and drag those files into the .bat file, stand back, and watch as it compresses each file into it's own .bz2. Here's the script, in case you need to change something to suit it for your needs. Simply copy that into a new txt file, and name it whateveryouwant.bat. Code:
@Echo Off |
Re: Batch file / create bz2's in mass quantities
Wow, Imma have to try this. :)
|
Re: Batch file / create bz2's in mass quantities
Does it crawls trough all the directories to? Cause you can allready drag & drop multiple files on the default bzip2.exe
|
Re: Batch file / create bz2's in mass quantities
Quote:
|
Re: Batch file / create bz2's in mass quantities
One thing I miss having moved to a Windows server from a Linux server is the ability to wget maps and things directly to my fast download server, and then be able to bzip2 -k *.bsp to convert them all to bz2.
Edit: -k was to keep the original bsp files so I could then use sftp to upload the files to my game server. |
Re: Batch file / create bz2's in mass quantities
That does sound nice.
|
Re: Batch file / create bz2's in mass quantities
This will save some time for those who do not have a auto bzip on they're cite. Nice share bro.
|
Re: Batch file / create bz2's in mass quantities
This is very nice indeed. What compression level does it use?
EDIT: My friend DHack sent me this link: http://www.brainless.us/downloads.aspx?cid=1 |
Re: Batch file / create bz2's in mass quantities
can you use these compressed files by just putting them in the directory or on a webserver?
|
Re: Batch file / create bz2's in mass quantities
Quote:
Side note: The game server itself doesn't understand bz2, so you must put the uncompressed maps on the game server itself. |
All times are GMT -4. The time now is 02:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.