7zip-vpk icon indicating copy to clipboard operation
7zip-vpk copied to clipboard

The system cannot allocate the required amount of memory

Open BigGame2004 opened this issue 1 year ago • 6 comments

Extension fails to create a vpk when packing multiple folders containing audio files, such as the many mp3s in folders used for TF2 custom character voice over mods. Here is a picture of the error. Screenshot 2024-01-01 025355

BigGame2004 avatar Jan 01 '24 11:01 BigGame2004

This error happens only when trying to create single file vpk that is larger than 2 GB, or if it fails to allocate 4 MB scratch buffer.

SCell555 avatar Jan 01 '24 15:01 SCell555

This error happens only when trying to create single file vpk that is larger than 2 GB, or if it fails to allocate 4 MB scratch buffer.

well, how do I create files smaller than 2 gigabytes? or how do I check if it fails to allocate a 4MB buffer and fails?

pls help am stupid

jgameryt avatar Jul 30 '24 01:07 jgameryt

This error happens only when trying to create single file vpk that is larger than 2 GB, or if it fails to allocate 4 MB scratch buffer.

so I did get a bit smarter and found out how to split them, however, it only seems to work when I set it to anything but relative pathnames? otherwise it just fails to allocate memory again.

jgameryt avatar Jul 30 '24 08:07 jgameryt

image image image @SCell555 changing between VPKv1 and VPK doesnt change anything

jgameryt avatar Jul 30 '24 08:07 jgameryt

If you are trying to create multi-chunk vpk you will have to use my build of 7-zip (if you aren't already doing so) and set this to appropriate size when creating vpk (should be under 2GB). (Also I'm not sure how Source 2 is going to handle these vpks, in source 1 the parser is pretty lenient) image

SCell555 avatar Jul 30 '24 18:07 SCell555