Repacking your maps

Viemärirotta

sniffer
aa
Feb 5, 2016
1,013
590
I'm having a problem with repacking my map when I enter the input it says "could not find the path specified" can anyone help?
bsp_repack maps/mapname_version.bsp maps/mapname_version.bsp

Also lookout for typos, will mess it up.
 

AsG_Alligator

qhull precision error
aa
Aug 5, 2016
620
1,223
I started gettong error spam with
Code:
ZipFile: LZMA compression failed
both in console with in-game bsp_repack and bspzip ran via command line.

It does compress the file down, but breaks every single reflective surface (and probably more).

Any ideas whats causing that, how to fix it, or how to repack the map without using deafult bspzip?
 
Last edited:

Izotope

Sourcerer
aa
May 13, 2013
698
764
I started gettong error spam with
Code:
ZipFile: LZMA compression failed
both in console with in-game bsp_repack and bspzip ran via command line.

It does compress the file down, but breaks every single reflective surface (and probably more).

Any ideas whats causing that, how to fix it, or how to repack the map without using deafult bspzip?

Hey, I was just starting to get this error as well.
It always worked up until now, did an update break something?
 
Sep 14, 2015
13
147
I started gettong error spam with
Code:
ZipFile: LZMA compression failed
both in console with in-game bsp_repack and bspzip ran via command line.

It does compress the file down, but breaks every single reflective surface (and probably more).

Any ideas whats causing that, how to fix it, or how to repack the map without using deafult bspzip?

This is a bug that snuck in with the recent toolchain updates. It should be fixed in the next client update. Apologies!
 

ics

http://ics-base.net
aa
Jun 17, 2010
841
543
FYI to everyone, this also affects your workshop uploads so if your map starts looking black/pink checkerboard, reupload that after the fix is live.
 
Sep 14, 2015
13
147
I've made an optional update available under the prerelease branch that fixes this. Anyone uploading or compressing workshop maps should switch to this branch until the next TF update ships with this fix:

lrEYcIb.png
knco57H.png


(This fix is the only difference in that branch)
 

Crash

func_nerd
aa
Mar 1, 2010
3,346
5,520
I've made an optional update available under the prerelease branch that fixes this. Anyone uploading or compressing workshop maps should switch to this branch until the next TF update ships with this fix:

lrEYcIb.png
knco57H.png


(This fix is the only difference in that branch)

I am literally minutes away from doing a compile and this saved my butt. Woo!
 

ZeSpice

L2: Junior Member
Mar 17, 2014
94
34
I've made an optional update available under the prerelease branch that fixes this. Anyone uploading or compressing workshop maps should switch to this branch until the next TF update ships with this fix:

lrEYcIb.png
knco57H.png


(This fix is the only difference in that branch)
Oh, idk, maybe this will be lil' offtop. But after last updte, my hammer start doing strange things. He just can't save GameConfig, and if you make one in notepad, he just will delete in moment of launch. (there is more strange things with game after this, like insecure stuff, no refelect and no tfish fonts in game. OS is 32bit|xp, yep.)
 

★UP | Hannes

L1: Registered
Oct 27, 2015
3
0
I tested some stuff with the bspzip tool, because a friend had map differs errors. He compressed his map with the bspzip tool and distributed it through Dropbox and the Steam Workshop. I hope this is interesting or help to someone. Here are the results:

Using "bspzip -repack -compress" over the terminal, the "bsp_repack" command ingame or uploading to Workshop compresses a map exactly the same way.

Using "bspzip -repack" (decompress) on an uncompressed map changes it, but it's almost the same size

Using "bspzip -repack" (decompress) on a compressed map doesn't make it the same map as the original uncompressed input map

Using "bspzip -repack -compress" to compress an already compressed map changes the map, but the file size will be exactly the same

The problem was, that he uploaded the compressed map to the Workshop. Before something gets uploaded to Workshop, it always gets compressed with the bspzip tool. This means you must always upload an uncompressed bsp map file to Workshop. You can bspzip it yourself and distribute it, but you got to pay attention that it's not getting compressed 2 times or that it is getting decompressed and compressed again. I think the best way is uploading the uncompressed map to Workshop, downloading it from there and only distributing the Workshop map file. With that method you are safe from map differs errors.

In conclusion: Valve messed up the bspzip tool a bit, because it doesn't have any fault tolerance. From my view, the bspzip tool should NOT change a compressed bsp file, if you try to compress it again or an uncompressed bsp file if you try to decompress it. Furthermore, it should return the original uncompressed bsp file, when you decompress a compressed map. At the moment the tool just leads to more map differs errors.


On a side note, bspzip can also have some problems when compressing maps with soundscapes. This was a problem I and another mapper discovered on a different map a while ago. The map that it happened on, was a bspzip compressed version of trade_clocktown_v1a. There are lags on the map, when you change soundscapes for the first time. After that it works normally, because it probably gets cached in the "sound.cache" file. Though, what's even worse is, that it also seemed to break and distort sounds and music quite badly after a while.
 

FishyUberMuffin

War Paints Everywhere
Apr 26, 2015
954
186
I can not repack my map. I did what you told me to do but I got this error.

Capture_tf2.PNG
 

FishyUberMuffin

War Paints Everywhere
Apr 26, 2015
954
186

Da Spud Lord

Occasionally I make maps
aa
Mar 23, 2017
1,339
994
I got it to work by using Command Prompt instead of Windows Powershell.
 

Izotope

Sourcerer
aa
May 13, 2013
698
764
Oh lmao is that not the same thing? I thought powershell was cmd.exe for other windows versions. I guess not?
Yeah well try using cmd.exe then, Fishy.