Com hunkmegs errors and resolution
SYMPTOMS When you attempt to load a map or skin that was installed recently, you may receive an error message similar to the following:
Hunk_Alloc failed on 480 with 304 free. Set com_hunkmegs to 48 to fix.
change /seta com_hunkmegs x to /seta com_hunkmegs 48
CAUSE This issue can occur if you have more maps and skins installed on your computer than you have memory allocated for the game.
RESOLUTION To resolve this issue, follow these methods in the order they are presented. Test after each method to determine whether it has resolved the issue.
Method 1: Allocate more memory to the game Open the game. Press the ` key to bring down the Console. In the console, type:
/seta com_hunkmegs x
where x is equal to half the amount of RAM in your computer. Press the ` key to close the Console and exit the game normally. Do NOT type /quit in the console.
Open the game again and the error message should no longer appear.
Method 2: Remove obsolete PK3 files Open Windows Explorer. Navigate to your BaseEF/baseq3 or base folder. Delete any maps or skins that you no longer use. Open the game and the error message should no longer appear.
Method 3: Prevent rarely used PK3 files from being loaded into memory
Open Windows Explorer. Navigate to your BaseEF/baseq3/base folder. Create a new folder called Backup. Move any maps or skins that you use rarely but would still like to keep into the Backup folder. Open the game and the error message should no longer appear.
STATUS This behavior is by design.
MORE INFORMATION When you open Trepidation, it loads up all the PK3 files from the baseEF/baseq3/base folder into the memory allocated for the game. Usually allocating more memory will do the job, but sometimes the amount of memory required exceeds the memory available, in which case you need to decrease the amount of memory required using the above methods.
Setting com_hunkmegs to more than half your RAM is not recommended, but some users have had success doing so. If you decide to setting com_hunkmegs to more than half your RAM, you do so at your own risk. The author of this article will not be held responsible for any adverse effects due to setting com_hunkmegs to more than half your RAM.