Engine Hunk Overflow

From Valve Developer Community
Revision as of 13:18, 3 February 2019 by Speedvoltage (talk | contribs) (Created page with "== What Does It Mean? == === Engine Error === This is an engine error message that occurs when attempting to load the map in-game. This is typically related to Lightmap...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

What Does It Mean?

Engine Error

This is an engine error message that occurs when attempting to load the map in-game. This is typically related to Lightmap values being modified to an odd value.

What Is Hunk Allocation

This is described as the memory allocated for light data.

  • 0 = to normal "program memory" with alloc
  • 1 = to Valve's seemingly limited to certain size "MemoryStack memory" with Hunk_Alloc

How To Fix

There are two ways of fixing this error:

  • +r_hunkalloclightmaps 0
    • This will eliminate the error altogether. Insert this command into your game's launch options. For multiplayer maps, this command also needs to be inserted in the start up command line for game servers.
  • Finding faces with odd lightmap values.
    • If you have not changed any lightmap value at any given time, the fastest way to reset the lightmap value back is to select the entire map, open the face edit sheet and input 16 in the lightmap/luxels value.
    • Check your displacements. If they are large, the lightmap value will automatically change (sometimes, to an undesired value).