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

Discussion in 'Mapping Questions & Discussion' started by Lucia, Jul 27, 2016.

  1. Lucia

    Lucia L1: Registered

    Messages:
    41
    Positive Ratings:
    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? :/
     
  2. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    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.
     
    • Thanks Thanks x 1
    • Agree Agree x 1
  3. Lucia

    Lucia L1: Registered

    Messages:
    41
    Positive Ratings:
    4
    I love you xD
     
    • Funny Funny x 1
  4. Vel0city

    aa Vel0city func_fish

    Messages:
    1,931
    Positive Ratings:
    1,540
    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.
     
  5. Crowbar

    aa Crowbar perfektoberfest

    Messages:
    1,440
    Positive Ratings:
    1,192
    Actually, in-game console command tends to be better than bspzip.exe.
     
  6. Vel0city

    aa Vel0city func_fish

    Messages:
    1,931
    Positive Ratings:
    1,540
    Afaik the in-game console also cals for bspzip.exe.
     
  7. Another Bad Pun

    Server Staff Another Bad Pun bird of prey

    Messages:
    592
    Positive Ratings:
    1,237
    Both methods are pretty dang easy but with console commands at least you don't have to download anything
     
  8. Yrr

    aa Yrr An Actual Deer

    Messages:
    1,021
    Positive Ratings:
    1,989
    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
     
  9. Crash

    aa Crash func_nerd

    Messages:
    3,190
    Positive Ratings:
    4,916
    Yep, if you saw me doing it on stream, this was the method I use!
     
  10. Vel0city

    aa Vel0city func_fish

    Messages:
    1,931
    Positive Ratings:
    1,540
    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.
     
  11. Pocket

    aa Pocket func_croc

    Messages:
    4,489
    Positive Ratings:
    2,219
    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.
     
Tags: