Z malloc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category: Compile Errors]]
[[Category: Compile errors]]
Another insufficient memory or misallocated memory error. Possible causes are many, including too little RAM & also by having a texture perpendicular to the face of the solid with WC. In one case it was a script that shifted models one button. Possible solutions are:
== z_malloc failed on allocation of xxx bytes ==
 
Z_Malloc is an exit error that occurs whenever an overflow in the engine exceeds a designated heap size for the game. The engine tries to render everything but overbounds itself on its allocated memory array, and disgracefully crashes.
 
== Possible solution ==
'''1.''' For memory telling the HL main engine how much memory to use with HL -heapsize # (1024 x number of meg is popular #) or HL -zone # in the shortcut.
Use higher values for '''-heapsize #''' and '''-zone #''' in [[Command_Line_Options|Launch Options]].
 
'''2.''' For texture perpendicular go into WC/Hammer, then you can press alt + p, and select the problem if it is listed, and tell it to fix all of type; then try to compile again.
 
'''3.''' Or go thru the other errors on this page and try them as fixes. It CAN be frustrating! Sorry.

Latest revision as of 11:45, 11 August 2023

z_malloc failed on allocation of xxx bytes

Z_Malloc is an exit error that occurs whenever an overflow in the engine exceeds a designated heap size for the game. The engine tries to render everything but overbounds itself on its allocated memory array, and disgracefully crashes.

Possible solution

Use higher values for -heapsize # and -zone # in Launch Options.