New Problem

CoolCookieCooksCoolCookieCooks Pretty Girl Join Date: 2003-05-18 Member: 16446Members, NS1 Playtester, Contributor, Constellation
<div class="IPBDescription">only just started</div> hey ive just got this problem where it crashes and gives me an error message, ive been playing ns for months and havent touched the computer since and all of a sudden this error message comes up

Comments

  • pielemuispielemuis Join Date: 2002-01-25 Member: 72Members, NS1 Playtester
    edited August 2003
    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->If  "Cache_TryAlloc: xxx is greater than free hunk" pops up on your screen,
    you'll need to obtain more memory space for the game.

    To do so, open DoD shortcut and add "heapsize XXXXX" to the link destination.

    e.g. C:\SIERRA\Half-Life\hl.exe -console -game dod -heapsize XXXXX

    The "XXXXX" differs depending on how many memory you have in your PC.
    (128MB?256MB?512MB?)

    The following sizes are recommended.

    -heapsize 48000 
    -heapsize 64000
    -heapsize 128000

    Try it all and see which one is best for your PC.
    <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    Might want to check your RAM sticks if it just started happening

    some more info on heapsize:
    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->How do I allocate morememory for Half Life (-heapsize)?

    It appears the -heapsize command line switch to allocate the maximum memory cache size for GL Quake & GL QW, also works for Half Life. If you type: developer 1 and then load a map, bring down the console and you will see a line called "data cache". Without -heapsize it was about 26.6MB. If I set -heapsize at 64000, it would report a 59.9MB data cache. For those of you not familiar with the -heapsize switch to allocate a memory cache:

    -heapsize 48000 is roughly 48MB
    -heapsize 64000 is roughly 64MB
    -heapsize 96000 is roughly 96MB

    So your command line would look like this for a 64MB heapsize:

    hl.exe -heapsize 64000

    I would set it as high as possible and leave Win95/98 no less than 32MB. So if you have a 128MB system, then set heapsize to 96MB. Don't worry, if you set it heapsize too high, it won't crash or anything funky. Win95/98 will always take whatever memory it needs to run and then give Half Life what it needs up to the amount you set the heapsize too. Lets say you set your heapsize to 128000 (128MB) and your system has only 128MB of RAM, Win95/98 will still use whatever RAM it needs to run and then give Half Life anything that is left over. Setting the heapsize to some ridiculous number like 256MB on a 384MB system, may make Half Life take an extremely long time to load. Regardless of your system RAM, I would think 128MB heapsize would be enough. Thanks to 3 Fingers for that info!
    <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
  • CoolCookieCooksCoolCookieCooks Pretty Girl Join Date: 2003-05-18 Member: 16446Members, NS1 Playtester, Contributor, Constellation
Sign In or Register to comment.