TF2Maps.net

TF2Maps.net (http://forums.tf2maps.net/index.php)
-   Tutorials & Resources (http://forums.tf2maps.net/forumdisplay.php?f=57)
-   -   [TIP] How to compress .bsp to .bz2 with 7zip (http://forums.tf2maps.net/showthread.php?t=18108)

Fr0Z3n 10-01-2011 07:27 PM

[TIP] How to compress .bsp to .bz2 with 7zip
 
It is not necessary to do this when submitting maps for gamedays, but it makes the uploaders job easier and quicker if you compress your map to a .bz2, so here is a simple and quick guide on how to do it.

Before you compress, you need to make sure your maps custom assets are packed properly. The best programs for this is either Pakrat, or PackBSP. How to pack custom assets is not included in this guide, but should be covered in the programs documentation.

Step 1: Get 7Zip.
If you don't have it, get it here, and install it. If you do have it, skip to step 2.

Step 2:
Go to your tf/maps folder (steam/steamapps/{UserName}/team fortress 2/tf/maps. Here you will see a list of maps that end in .bsp [shown below]
http://dl.dropbox.com/u/8526839/bzip1.png

Step 3:
Right click on the .bsp of the map you wish to compress. Then click, 7Zip > Add to Archive.
http://dl.dropbox.com/u/8526839/bzip2.png

Step 4:
In the window that opens up, click the "archive format" drop-down menu and select the bzip2 file format. Do not adjust anything else. **Do not adjust the name of the file**
http://dl.dropbox.com/u/8526839/bzip3.png

Step 5:
Click ok. You now have, beneath the original map file, a .bz2 compressed map file, ready for you or someone else to upload to the game server(s). You can move this file to your dropbox, or use the fancy file hosting services provided by this site.

Shanghai 10-01-2011 08:15 PM

Isn't there BSPacker or something like that for packaging custom content? You might want to mention that.

Fr0Z3n 10-01-2011 08:25 PM

Done.

grazr 10-01-2011 08:41 PM

It's also nice if you compress at ultra rather than normal. For the sake of fractions of a second on your part you reduce server operaters bandwidth usage (when the map is downloaded from servers or directly from sites), but more importantly reduce the time people wait to download the map ingame which can be significantly slower than downloading from a web host.

I'm probably being pedantic, but it's thoughtful none-the-less.

It might be useful explaining that 7zip is used because it's a compatable compression format used by Source. Always good to teach the kids a little more about stuff.

Sergis 10-02-2011 03:11 AM

cp_finalway_a2???

Fr0Z3n 10-02-2011 07:35 AM

I dont clean out my folder. shush you.

Fr0Z3n 04-10-2015 01:47 PM

Bump, because less and less people are doing this.

It's frustrating to people who have to upload or host files to have to wait an extra 30-40's (or more) per upload because people don't compress their maps. Take the extra 5 seconds yourself, and make everyone elses lives easier. (It'll also save you time uploading it yourself)

Berry 04-10-2015 01:57 PM

Quote:

Originally Posted by Fr0Z3n (Post 324581)
Bump, because less and less people are doing this.

It's frustrating to people who have to upload or host files to have to wait an extra 30-40's (or more) per upload because people don't compress their maps. Take the extra 5 seconds yourself, and make everyone elses lives easier. (It'll also save you time uploading it yourself)

I preach this. Currently I think I'm the one hosting the largest portion of imps regularly and I've noticed that since around 6 (minimum) months ago, the amount of people BZ2ing maps has dropped incredibly (generally because the people regularly in imps has definitely changed) to the point where imps are me BZ2ing every single map that is not uploaded.

Anyone who does not BZ2 your map, you know who you are, and it takes 2 minutes to learn it, and 20 seconds to BZ2 it (it will also upload to dropbox/tf2m's service faster)!

Edit:
The last impromptu not hosted by me was on the 20th of March, 3 weeks ago (21 days) by Egan, and since then there have been 20 impromptus (hosted by me). This means I'm currently hosting a very large portion of impromptus. As of now, all maps in impromptus hosted by me that are not pre-uploaded or BZ2'd will receive lower priority in the test.

UKCS-Alias 04-20-2015 11:40 AM

About the bzip process. The compression level should be as high as possible. Its a 1 step process but on larger maps it can affect the size quite a bit. Even on small maps its better to have 6mb instead of 7mb.
As it can make your pc slow just make sure you keep 2 cores free (when you have 4 or more cores). This makes it barely slow down your pc and even when it would take 5 minutes allow you to proceed as normal during those 5 minutes (instead of having a very laggy pc for 2 minutes).

Although its bad practice i personaly still use .zip as it can be read without the need of a program like 7zip. This is the major advantage .zip has (well.. for map packing its the only advantage), .7z and .bz2 both are more efficient than .zip. I tested it on:
intercept (fully dev textured):
unzipped: 7.294mb
7z: 2.095mb
zip: 2.802mb
bz2: 2.592mb

skullcove (fully textured, more props a few custom textures):
unzipped: 13.019mb
7z: 4.272mb
zip: 5.762mb
bz2: 5.547mb

Still, even using the least effective method its still compressed by over 50%.

Note though that in the case of mvm maps it currently is still better to use a zip file as popfiles packed within the map (other than the 'normal' difficulty mission) cannot be chosen in votes when packed within the map. But putting the bz2'd file within the zip is still fine that way as it keeps its compression.

Sergis 04-20-2015 12:36 PM

Quote:

Originally Posted by Fr0Z3n (Post 324581)
Bump, because less and less people are doing this.

It's frustrating to people who have to upload or host files to have to wait an extra 30-40's (or more) per upload because people don't compress their maps. Take the extra 5 seconds yourself, and make everyone elses lives easier. (It'll also save you time uploading it yourself)

in a supermarket near me, there are two special kinds of lines. one is no cash, cards only, another is "quick" five or less things. five things one isnt being enforced and most people just ignore the rule. no cash one however, if people want to pay with cash the cashier just says "lol we dont do cash here we dont have cash here get your shit and go to another register. i dont give a fuck how long you have been wating in the line". maybe not those exact words but this exact intent. and there aint nothing people can do to ignore that so they stfu, get their chit and go wait again in another line.

moral of the story if you want bz2 you accept bz2 only and tell people with bsp to go bz2 themselves.


All times are GMT -5. The time now is 02:00 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2015, vBulletin Solutions, Inc.
Ad Management by RedTyger