How do i reduce map Size after paking custom stuff in it?

Lucia

L1: Registered
Jul 21, 2016
41
4
So, i just saw UEAKCrash's stream, he paked his map with VIDE it went up to like 240 mb. He putted it in bat file as it seemed, a cmd opend and suddenly the map size was only 64 mb.
What programm did he use to make the size smaller? :/
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,257
999
Hi, Lucia.

After you have packed custom content and built your cubemaps, you can perform a repack to compress your map before you distribute it.

The easiest way to repack a map is to open the console in TF2 and type the following:

bsp_repack maps/mymap.bsp maps/mymap.bsp

Replace mymap.bsp with the name of your map. This command string will compress your map and keep the same filename. The results will be printed in the console, and it will show the old file size and the new size. It will take longer to compress a large file. If you want to have a different filename for the compressed version, change it in the second parameter. make sure you make a backup of your map before you compress it.

For more detailed information about repacking, see this thread.
 

Lucia

L1: Registered
Jul 21, 2016
41
4
Hi, Lucia.

After you have packed custom content and built your cubemaps, you can perform a repack to compress your map before you distribute it.

The easiest way to repack a map is to open the console in TF2 and type the following:

bsp_repack maps/mymap.bsp maps/mymap.bsp

Replace mymap.bsp with the name of your map. This command string will compress your map and keep the same filename. The results will be printed in the console, and it will show the old file size and the new size. It will take longer to compress a large file. If you want to have a different filename for the compressed version, change it in the second parameter. make sure you make a backup of your map before you compress it.

For more detailed information about repacking, see this thread.
I love you xD
 

Vel0city

func_fish
aa
Dec 6, 2014
1,947
1,589
Here, have this: https://www.dropbox.com/sh/30f30lhx1izvejd/AAAE7WqFsEbb0XnxX0NRTbKra?dl=0

What this really is is just a command I copied from the information thread of the repacking feature on this forum (thanks YM!).

There are two .bat files in the folder. One is called bsprepack.bat, the other is bspunpack.bat. The first one compresses your map, the second one uncompresses it (handy if you want to used a compressed map in something like SFM that still hasn't been updated to support repacked bsp files). To use it, select your map in the tf/maps folder, simply drag your completely finished map (that is: packed with all custom content (materials, models, sounds, particles and their manifest, nav files, etc) and has cubemaps in it (for both LDR and HDR if you compiled with both) onto bsprepack.bat, and watch it do its thing. When it's done it'll ask you to press a key, and it'll replace the unpacked map with the new repacked one. You'll know it worked when you see the file size jump down. If you want to uncompress a map, drag a compressed map onto bspunpack.bat, watch it do its thing, and then see the map's file size jump up when it's done.
 

Crowbar

Spiritual preprocessor
aa
Dec 19, 2015
1,455
1,297
Actually, in-game console command tends to be better than bspzip.exe.
 

Vel0city

func_fish
aa
Dec 6, 2014
1,947
1,589
Afaik the in-game console also cals for bspzip.exe.
 

Another Bad Pun

In the shadows, he saw four eyes lit by fire
aa
Jan 15, 2011
801
1,845
Both methods are pretty dang easy but with console commands at least you don't have to download anything
 

Yrr

An Actual Deer
aa
Sep 20, 2015
1,308
2,743
you can just copy and paste
Code:
"..\..\bin\bspzip" -repack -compress %1
@pause
into a txt and save it as a .bat in your maps folder

i use the bat cause i worry i'll typo the console command and break the bsp
 

Crash

func_nerd
aa
Mar 1, 2010
3,315
5,499
you can just copy and paste
Code:
"..\..\bin\bspzip" -repack -compress %1
@pause
into a txt and save it as a .bat in your maps folder

i use the bat cause i worry i'll typo the console command and break the bsp

Yep, if you saw me doing it on stream, this was the method I use!
 

Vel0city

func_fish
aa
Dec 6, 2014
1,947
1,589
Yep, if you saw me doing it on stream, this was the method I use!
you can just copy and paste
Code:
"..\..\bin\bspzip" -repack -compress %1
@pause
into a txt and save it as a .bat in your maps folder

i use the bat cause i worry i'll typo the console command and break the bsp
Which is what I do here: https://www.dropbox.com/sh/30f30lhx1izvejd/AAAE7WqFsEbb0XnxX0NRTbKra?dl=0

A folder containing a bat file for both repacking and unpacking. Drag 'n drop, and you're done.
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
Keep in mind that a lot of the Frontline assets are already way bigger than they needed to be and they're working to fix this.