engine error/out of memory or address space on repack

Vecc

L1: Registered
Feb 11, 2017
10
24
So i'm at the playtesting phase of my map im working on and i'm looking to repack it.

Every time I make an attempt be it in game or in cmd i get the "engine error, out of memory or address space" shit

im using the "bspzip -repack -compress ../tf/maps/<map_name>"line to do this

using the in game alternative results in the same engine error

is there a fix 4 this? >_<
 

Vecc

L1: Registered
Feb 11, 2017
10
24
Update, I optimized the map, nodrawing shit, func detailing shit, etc and packed the custom shit into it and tried to repack it again today and it still gives me the same "Out of memory or address space. Texture quality may be too high." error in CMD and in game.

IDK what to do, I have 16 gb ram so I genuinely don't think that would be the problem?

I assume it might have something to do with the overall file size of the map?

The map is currently sitting around 1.9gb, which means i'll most likely have to cut shit out, which is fine, at least i hope thats the solution
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,259
1,000
In my experience that error can come up with the map has a lot of lightmap data.

Backup the map, select all brush faces and in the Face Edit Sheet, change their lightmap luxel scale from 16 to 32 and hit Apply. It will take a little bit of time. Then save, compile and see if that helps.
 

Vecc

L1: Registered
Feb 11, 2017
10
24
In my experience that error can come up with the map has a lot of lightmap data.

Backup the map, select all brush faces and in the Face Edit Sheet, change their lightmap luxel scale from 16 to 32 and hit Apply. It will take a little bit of time. Then save, compile and see if that helps.
did this, reduced map size pre-material packing in but the map still sits around 1.9gb, most likely due to the amount of custom mats i made for this. repack results in the same error, I think its just the size. I've repacked the map pre-material packing and it repacks just fine
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,331
990
1.9gb? That seems incredibly large for a tf2 map. I'd try and remove some of these custom assets, to get the filesize to a more reasonable size.